Closed forgie1 closed 1 year ago
Version: 3.0.4
For example PHP function unset() can not be called in {do} macro:
unset()
Error Call to undefined function unset(), did you mean reset()?
In Latte Cache file it is prefixed : namespace\unset($abc).
namespace\unset($abc)
{do unset($abc)}
$abc is unset.
$abc
I'll find out why this is happening, however to use unset you need to install RawPhpExtension.
See https://latte.nette.org/en/syntax#toc-php-limitations-in-latte
Thank you
Version: 3.0.4
Bug Description
For example PHP function
unset()
can not be called in {do} macro:In Latte Cache file it is prefixed :
namespace\unset($abc)
.Steps To Reproduce
{do unset($abc)}
Expected Behavior
$abc
is unset.