You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had the same problem. I solved it by adding require_once (__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); to the config file.
This caused a redeclare error at first, because the file was required again in the phpstan bootstrap file. Changing that to a require_once solved it.
It seems to me that this extension tries to load the config file before the phpstan bootstrap file is loaded. Is that possible?
➜ MMR git:(PHP-Static-Code-Analysis) ✗ vendor/bin/phpstan analyse frontend
➜ MMR git:(PHP-Static-Code-Analysis) ✗
The text was updated successfully, but these errors were encountered: