starter-plugin icon indicating copy to clipboard operation
starter-plugin copied to clipboard

rector.php to update everything to PHP 7.4

Open szepeviktor opened this issue 1 year ago • 0 comments

<?php

use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;

return static function (RectorConfig $rectorConfig): void {
    $rectorConfig->paths([
        __DIR__ . '/plugin-name.php',
        __DIR__ . '/src',
        __DIR__ . '/tests',
    ]);

    $rectorConfig->importNames();

    $rectorConfig->sets([
        LevelSetList::UP_TO_PHP_74,
    ]);
};

szepeviktor avatar Feb 14 '25 10:02 szepeviktor