PHPStan 0.12.4 compatibility updates#2575
PHPStan 0.12.4 compatibility updates#2575TomasVotruba merged 3 commits intorectorphp:masterfrom ondrejmirtes:fixes
Conversation
|
There are still some failures which I don't what caused them. |
|
Wow, thanks a lot Ondřej! I'll look at it after lunch. |
|
The ECS is fail is related to coding standard. It can be fixed with: composer fix-csImportant thing is that test are passing ✔️ |
|
I made it work except compiling of phar. https://travis-ci.org/rectorphp/rector/jobs/633198099#L569 Any idea what is causing it? |
|
This class is prefixed in PHPStan's PHAR. Not sure where you're referring it? |
|
It is not. phpstan.phar cannot be used inside rector.phar, so phpstan-src is used instead. Seems like our prefixing of PHPStan |
|
Any idea what has changed since 0.12.3 that might have influence this? |
|
IMHO you should take This is exactly what I'm talking about - at some point you probably took my file https://github.com/phpstan/phpstan-src/blob/master/compiler/build/scoper.inc.php and reused it. But I kept changing it, see the history: https://github.com/phpstan/phpstan-src/commits/master/compiler/build/scoper.inc.php |
|
That's it, thanks!
That might work. But it would add extra step of rewriting whole PHPStan code in Rector with current phpstan prefix. I can't imagine how I'd do that in saint way. It would be much easier to re-use PHPStan's |
|
|
Ah, I forgot that 🤦♂️ I can't imagine where would I extract the PHPStan code and how I'd merge it with Rector code. Somewhere in vendor? |
|
I don’t know, you’d have to experiment on that 😊 To have everything under vendor/phpstan/phpstan (including PHPStan’s dependencies) might work. |
|
So I'd have to include I won't have time to play with this, so I'll wait for future bugs to give me the motivation |
rectorphp/rector-src@59ed848 [TypeDeclaration] Add more precise array type doc (#2575)

No description provided.