Skip to content

Instantly share code, notes, and snippets.

@mateuszfl
Created January 12, 2026 09:59
Show Gist options
  • Select an option

  • Save mateuszfl/847000a998ddae56b5db65b20ab51977 to your computer and use it in GitHub Desktop.

Select an option

Save mateuszfl/847000a998ddae56b5db65b20ab51977 to your computer and use it in GitHub Desktop.
rector-upgrade-advisory-84.php
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\SetList;
return static function (RectorConfig $rectorConfig): void {
$paths = array_values(array_filter([
is_dir('src') ? 'src' : null,
is_dir('tests') ? 'tests' : null,
]));
$rectorConfig->paths($paths);
$rectorConfig->sets([
SetList::PHP_82,
SetList::PHP_83,
SetList::PHP_84,
]);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment