I am using this widget in our projects: https://github.com/dmstr/yii2-prototype-module/blob/master/src/widgets/TwigWidget.php
PHP Notice – yii\base\ErrorException
Trying to get property of non-object
Error is thrown here: https://github.com/yiisoft/yii2-twig/blame/397e711da9aae8b813778e3504b23d80fb1a86f2/ViewRenderer.php#L169
Looks like my $view is empty, this should be checked here or as an alternative we could pass the whole view to the method and check it in the fallback method.
added conflicting version for yii2-twig
- see yiisoft/yii2-twig#61
Yes, there should be a check for object existence. Could you send a pull request?
Fixes #61, check object existence
Fixes #61: Added missing view object existence check