Rule for safely prepare for upgrade to new version of PHP #8285
-
The pre-condition: the project uses PHP version it needs to migrate from. For the sake of discussion let's upgrade from 7.1 to 8.0. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 11 replies
-
Your question highly depends on the codebase. I would recommend adding a PHP8.0 PHPStan check, and pick rector rules based on the PHPStan errors you get |
Beta Was this translation helpful? Give feedback.
-
You can do step by step, use The rules you want to skip will always depends on your needs. |
Beta Was this translation helpful? Give feedback.
-
This is a very sensible request. I would argue that it would greatly add to rector's usefulness with older, large codebases. |
Beta Was this translation helpful? Give feedback.
-
Is there a list of those rules ? We need to list all required rules to migrate from 7.2 to 8.2 (or version one-by-one). |
Beta Was this translation helpful? Give feedback.
-
Is there any update on this? It's exactly what I'm looking for! |
Beta Was this translation helpful? Give feedback.
-
Safe or not is always depends of project needs, philosophy, architectural, and personal preference, once we define the "safe" rules, other will argue that not that safe, so end up we are doing nothing :) Run php sets one by one, step by step, and just skip that what you don't want :) |
Beta Was this translation helpful? Give feedback.
Safe or not is always depends of project needs, philosophy, architectural, and personal preference, once we define the "safe" rules, other will argue that not that safe, so end up we are doing nothing :)
Run php sets one by one, step by step, and just skip that what you don't want :)