[Downgrade] Composer's platform check must use the PHP version below#4879
[Downgrade] Composer's platform check must use the PHP version below#4879TomasVotruba merged 2 commits intomasterfrom
Conversation
rules/symfony5/src/Rector/New_/PropertyAccessorCreationBooleanToFlagsRector.php
Show resolved
Hide resolved
rules/symfony5/src/Rector/New_/PropertyAccessorCreationBooleanToFlagsRector.php
Show resolved
Hide resolved
It is indeed unrleated to PR, but we should fix it for next PRs. |
|
Thank you |
There's no broken rule. It's just Rector Rectify working properly, on 1 file (for rule I guess when this happens again, we can switch to master, and do some simple change just to trigger Rector Rectify, and commit the rectified code so it doesn't spill over the other PRs |
|
The rule can do better. It should be fixed now, because it changes our code for worse |
|
Ok, hopefully I get it now. The problem is that if there are 2 or more variables ( Then, Is this right? |
|
Yes, exactly. |
|
Added now in #4898. But I wonder if I got it right? The tests are failing in a different way to Rector Rectify's behavior... |
rectorphp/rector-src@beffd07 ReturnTypeFromStrictParamRector: Fix typo in test-fixture (#4879)
When using set
downgrading-php80, we're downgrading from PHP 8.0 to its previous version, i.e. 7.4. Hence, Composer's platform check (onvendor/composer/platform_check.php) must doif (!(PHP_VERSION_ID >= 70400)) {(not80000).Fixed for all downgrade sets.