Closed silen-z closed 8 months ago
When using global functions in NEON config like: not(%debugMode%) they get created by DI as Nette\DI\Statement but here ConsoleExtension is casting them to bool which silently fails and evaulates to true regardless of the statement value
not(%debugMode%)
Nette\DI\Statement
true
Version: 0.5.0
Good catch. Can you prepare PR? Some test would be excellent.
When using global functions in NEON config like:
not(%debugMode%)
they get created by DI asNette\DI\Statement
but here ConsoleExtension is casting them to bool which silently fails and evaulates totrue
regardless of the statement valueVersion: 0.5.0