contributte / console

:boom: Best minimal console (symfony/console) to Nette Framework (@nette)

Home Page:https://contributte.org/packages/contributte/console.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ConsoleExtension doesn't support `Nette\DI\Statement`

silen-z opened this issue · comments

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

Version: 0.5.0

Good catch. Can you prepare PR? Some test would be excellent.