bitExpert / phpstan-magento

Magento specific extension for PHPStan
MIT License
134 stars 24 forks source link

Incompatibility with phpstan & rector and 2.4.6 #305

Closed rommelfreddy closed 1 year ago

rommelfreddy commented 1 year ago

when using

and configure rector to use phpstan

you will lead into the issue, that the container is not available in the magento-autoloader.php.

Digging a little around results into that rector/rector:0.15.19 is required, but only 0.15.17 is installable cause phpstan/phpstan:1.10.1 is required, but bitExpert/phpstan-magento requires phpstan/phpstan:1.9.

The Magento core will allow phpstan/phpstan.1.10 so this repo should also allow this.

Requiring bitExpert/phpstan-magento will lead into that rector and phpstan got downgraded.

Can you reproduce this?

rommelfreddy commented 1 year ago

nevermind. it seems like that my dependencies where broken.

This occurs after magento-upgrade. Cleaned a little bit up, now it works.