nette/code-checker

Checking Latte templates >4kB

garncarz opened this issue · 1 comments

I hope I'm not creating another false issue, but isn't there a bug in checking Latte templates with size >4kB? At least it seems it's trying to take a content of it as a filename.

PHP Warning:  is_file(): File name is longer than the maximum allowed path length on this platform (4096): {block breadcrumbs}...<20 more lines from a Latte file>
 in /srv/http/code-checker/vendor/latte/latte/src/Latte/exceptions.php on line 33
PHP Stack trace:
PHP   1. {main}() /srv/http/code-checker/src/code-checker.php:0
PHP   2. CodeChecker->run() /srv/http/code-checker/src/code-checker.php:288
PHP   3. {closure:/srv/http/code-checker/src/code-checker.php:226-238}() /srv/http/code-checker/src/code-checker.php:98
PHP   4. Latte\Engine->compile() /srv/http/code-checker/src/code-checker.php:231
PHP   5. Latte\CompileException->setSource() /srv/http/code-checker/vendor/latte/latte/src/Latte/Engine.php:136
PHP   6. is_file() /srv/http/code-checker/vendor/latte/latte/src/Latte/exceptions.php:33

That is actually bug in Latte. Thanks for reporting.