-
-
Notifications
You must be signed in to change notification settings - Fork 112
Description
Version: 2.10
Bug Description
With new version of Latte there is a bug with filter stripHtml - when used, it show large stack trace in page instead of show classic Tracy with error, and exception file is created.
Fatal error:
Uncaught TypeError: is_file(): Argument #1 ($filename) must be of type string, null given in ...\vendor\tracy\tracy\src\Bridges\Nette\Bridge.php:73\n
Stack trace:\n
0 ...\vendor\tracy\tracy\src\Bridges\Nette\Bridge.php(73): is_file(NULL)\n
1 ...\vendor\tracy\tracy\src\Tracy\BlueScreen\BlueScreen.php(199): Tracy\Bridges\Nette\Bridge::renderLatteUnknownMacro(Object(Latte\CompileException))\n
2 ...\vendor\tracy\tracy\src\Tracy\BlueScreen\BlueScreen.php(156): Tracy\BlueScreen->renderActions(Object(Latte\CompileException))\n
3 ...\vendor\tracy\tracy\src\Tracy\BlueScreen\BlueScreen.php(100): Tracy\BlueScreen->renderTemplate(Object(Latte\CompileException), 'C:\localhost\we...')\n
4 ...\vendor\tracy\tracy\src\Tracy\Debugger\Debugger.php(327): Tracy\BlueScreen->render(Object(Latte\CompileException))\n
5 ...\vendor\tracy\tracy\src\Tracy\Debugger\Debugger.php(206): Tracy\Debugger::exceptionHandler(Object(Latte\CompileException))\n
6 [internal function]: Tracy\Debugger::Tracy{closure}(Object(Latte\CompileException))\n
7 {main}\n
Steps To Reproduce
{='<p>one < two</p>'|stripHtml} or standard {$foo|stripHtml}
Tested on PHP 8.0.1 and latest versions of Nette packages.
Expected Behavior
Same behavior as in version 2.9