diff --git a/.github/workflows/cgl.yaml b/.github/workflows/cgl.yaml index 0401fad1..87bbe14e 100644 --- a/.github/workflows/cgl.yaml +++ b/.github/workflows/cgl.yaml @@ -21,7 +21,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: 8.2 tools: composer:v2, composer-require-checker, composer-unused coverage: none diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 1e8b0e61..c816064f 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -75,7 +75,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: 8.1 + php-version: 8.2 tools: composer:v2 coverage: none diff --git a/rector.php b/rector.php index 6de4bcf1..465af111 100644 --- a/rector.php +++ b/rector.php @@ -23,6 +23,7 @@ use EliasHaeussler\RectorConfig\Config\Config; use Rector\Config\RectorConfig; +use Rector\Core\ValueObject\PhpVersion; use Rector\Php80\Rector\Class_\AnnotationToAttributeRector; use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector; use Rector\Privatization\Rector\Class_\FinalizeClassesWithoutChildrenRector; @@ -31,7 +32,7 @@ use Rector\Symfony\Rector\Class_\CommandPropertyToAttributeRector; return static function (RectorConfig $rectorConfig): void { - Config::create($rectorConfig) + Config::create($rectorConfig, PhpVersion::PHP_81) ->in( __DIR__ . '/Classes', __DIR__ . '/Configuration',