diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index bbc468ab..7f843130 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] # windows-latest symfony: ['7.3'] - php: ['8.3', '8.4'] + php: ['8.3', '8.4', '8.5'] dependency_version: [prefer-stable] name: PHP ${{ matrix.php }} - Symfony ^${{ matrix.symfony }} - ${{ matrix.os }} - ${{ matrix.dependency_version }} diff --git a/rector.php b/rector.php index 49c56f8a..3ec9fb23 100644 --- a/rector.php +++ b/rector.php @@ -4,6 +4,7 @@ declare(strict_types=1); use Rector\CodingStyle\Rector\FunctionLike\FunctionLikeToFirstClassCallableRector; use Rector\Config\RectorConfig; +use Rector\TypeDeclaration\Rector\ClassMethod\NarrowObjectReturnTypeRector; use Rector\TypeDeclaration\Rector\ClassMethod\ReturnNeverTypeRector; return RectorConfig::configure() @@ -14,6 +15,7 @@ return RectorConfig::configure() __DIR__.'/src/Plugins/Parallel/Paratest/WrapperRunner.php', ReturnNeverTypeRector::class, FunctionLikeToFirstClassCallableRector::class, + NarrowObjectReturnTypeRector::class, ]) ->withPreparedSets( deadCode: true,