Skip to content

How to upgrade php version keeping backward compatibility ? #7520

Answered by TomasVotruba
beeyev asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

the 2nd line changes PHP version to PHP 7.1:

$rectorConfig->phpVersion(PhpVersion::PHP_70);
$rectorConfig->import(LevelSetList::UP_TO_PHP_71);

Change the order:

$rectorConfig->import(LevelSetList::UP_TO_PHP_71);
$rectorConfig->phpVersion(PhpVersion::PHP_70);

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@TomasVotruba
Comment options

@Offspring2099
Comment options

@TomasVotruba
Comment options

@Offspring2099
Comment options

@TomasVotruba
Comment options

Answer selected by beeyev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants