Open senguttuvang opened 4 years ago
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 require
d 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) ✗