Upgrade project from php 7.3 to PHP 7.4. afterwords upgrade to PHP 8.0. #8749
-
Hello everybody, I am new into using Rector and I want to get my project upgraded to the latest PHP version. Current version is PHP 7.3.
my goal here is to get to PHP 7.4 and then to PHP 8.0 and so on. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
If you still on php 7.x, you can use use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
return RectorConfig::configure()
->withPaths([ __DIR__ . '/application', __DIR__ . '/model' ])
->withSets([
LevelSetList::UP_TO_PHP_53
]); start with lower php 5.3 to see the change per level :) |
Beta Was this translation helpful? Give feedback.
-
in my case, another colleague did this several years ago so we are now at php 7.3 so we just need to upgrade the version to php 8.3 at the end. Thank you for you reply and have a nice day :) |
Beta Was this translation helpful? Give feedback.
If you still on php 7.x, you can use
LevelSetList
instead:start with lower php 5.3 to see the change per level :)