Skip to content

Upgrade project from php 7.3 to PHP 7.4. afterwords upgrade to PHP 8.0. #8749

Answered by samsonasik
Morpheus-ro asked this question in Q&A
Discussion options

You must be logged in to vote

If you still on php 7.x, you can use LevelSetList instead:

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 :)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by samsonasik
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants