how to set a version starting point #8786
-
I have a large set of php74 code that I need to update to php83. Simple enough with rector, or so I thought. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You can define by each list if needed withSets([
SetList::PHP_74,
SetList::PHP_80,
// etc
]) |
Beta Was this translation helpful? Give feedback.
-
I matched the function declaration arguments, and set only the version flags I wanted: [WARNING] The "withPhpSets()" method uses named arguments. Its suitable for PHP 8.0+. Use more explicit [ERROR] Pick only one version target in "withPhpSets()". All rules up to this version will be used. The Error message implies that I still have the same problem: it's not starting at 7.4, but 5.3 instead. Is there no way around this? |
Beta Was this translation helpful? Give feedback.
-
Tried that before and got errors. Now I see I omitted use line. ok, seems to be working now. |
Beta Was this translation helpful? Give feedback.
You can define by each list if needed