diff --git a/src/PhpDocumentLoader.php b/src/PhpDocumentLoader.php index e683180..9d7b642 100644 --- a/src/PhpDocumentLoader.php +++ b/src/PhpDocumentLoader.php @@ -110,7 +110,7 @@ class PhpDocumentLoader $content = yield $this->contentRetriever->retrieve($uri); $size = strlen($content); if ($size > $limit) { - throw new ContentTooLargeException($uri, $size, $limit); + return $this->create($uri, ""); } if (isset($this->documents[$uri])) {