Skip to content
This repository was archived by the owner on Jul 18, 2018. It is now read-only.

Commit 0696f2b

Browse files
zfy0701lialan
authored andcommitted
skip large file by treat it as empty file
1 parent 7aee1de commit 0696f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpDocumentLoader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function load(string $uri): Promise
110110
$content = yield $this->contentRetriever->retrieve($uri);
111111
$size = strlen($content);
112112
if ($size > $limit) {
113-
throw new ContentTooLargeException($uri, $size, $limit);
113+
return $this->create($uri, "");
114114
}
115115

116116
if (isset($this->documents[$uri])) {

0 commit comments

Comments
 (0)