🏆 A full-stack component-based MVC kernel for PHP that helps you write powerful and modern web applications. Write less, have cleaner code and your work will bring you joy.
On nette forum in this post: https://forum.nette.org/cs/36685-latte-addfilter-neni-tam-chyba#p227757 was reported error - mismatch between typehints of parameter $name in methods addFilter() in Nette\Bridges\ApplicationLatte\Template and Latte\Engine, the correct typehint is defined by typehint of second parameter of php function preg_match() which is string. Consequently the correct typehint of parameter $name in method Nette\Bridges\ApplicationLatte\Template::addFilter() is pure string not nullable string
bug fix
BC break - theoretically yes, but any use of null parameter $name leads to exception so fixing the bug makes anybody no harm
On nette forum in this post: https://forum.nette.org/cs/36685-latte-addfilter-neni-tam-chyba#p227757 was reported error - mismatch between typehints of parameter $name in methods addFilter() in Nette\Bridges\ApplicationLatte\Template and Latte\Engine, the correct typehint is defined by typehint of second parameter of php function preg_match() which is string. Consequently the correct typehint of parameter $name in method Nette\Bridges\ApplicationLatte\Template::addFilter() is pure string not nullable string