<!-- First, thank you for making a request. That takes time and we appreciate that! --> ## Before ```php if (1 == version_compare(PHP_VERSION, '7.2', '<')) { // do something1 } else if (1 == version_compare(PHP_VERSION, '7.3', '<')) { // do something2 } else { // do something3 } ``` ## After running with min php version = 7.3 ``` // do something3 ``` Inspired by https://github.com/redaxo/redaxo/blob/46d0ace6cd1ca0d40fa233abd637bea53c694daa/redaxo/src/core/pages/setup.php#L147 Similar issue https://github.com/rectorphp/rector/issues/2574
Before
After running with min php version = 7.3
Inspired by https://github.com/redaxo/redaxo/blob/46d0ace6cd1ca0d40fa233abd637bea53c694daa/redaxo/src/core/pages/setup.php#L147
Similar issue #2574