Closed oliverklee closed 2 years ago
@oliverklee You should not install rector/rector 0.13.10 and ssch/typo3-rector v0.11.46 at the same time. Please install rector/rector 0.13.4 without requiring ssch/typo3-rector. If you already use PHP 7.4 in your CI you can now switch to ssch/typo3-rector version 1.0 and remove the dependency from rector or use rector/rector in version 0.14
@sabbelasichon Thanks! Will do.
Bug Report
Used package versions
PHP 8.1.8 with these packages installed as global Composer packages:
Used configuration file
The problem also occurs with the configuration file copied from
./vendor/ssch/typo3-rector/templates/rector.php.dist
.A minimal configuration file in my project to reproduce the problem looks like this:
Steps to reproduce
or
Expected results
Either
Rector 0.13.10
, or the possible changes to the code.Actual results
Additional information
The problem occurs with any
Typo3SetList
orTypo3LevelSetList
set I've tried.Using set constants from Rector itself like
LevelSetList::UP_TO_PHP_73
does not lead to this crash, though.Adding a single TYPO3 Rector rule also does not lead to this crash, e.g.: