diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4be1f86..6d98c60 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,8 +17,8 @@ jobs: strategy: matrix: php-version: - - "8.3" - "8.4" + - "8.5" steps: - name: "Checkout" diff --git a/.github/workflows/code_coverage.yml b/.github/workflows/code_coverage.yml index fe2c396..49d468c 100644 --- a/.github/workflows/code_coverage.yml +++ b/.github/workflows/code_coverage.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v5 - uses: shivammathur/setup-php@master with: - php-version: 8.3 + php-version: 8.5 coverage: xdebug - name: Load dependencies from cache id: composer-cache @@ -23,9 +23,9 @@ jobs: - uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-php8.3-composer-${{ hashFiles('**/composer.json') }} + key: ${{ runner.os }}-php8.5-composer-${{ hashFiles('**/composer.json') }} restore-keys: | - ${{ runner.os }}-php8.3-composer- + ${{ runner.os }}-php8.5-composer- - run: composer install --prefer-dist --no-progress --no-suggest - run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml diff --git a/composer.json b/composer.json index 52705c1..5a24fc1 100644 --- a/composer.json +++ b/composer.json @@ -10,17 +10,17 @@ } ], "require": { - "php": "^8.3" + "php": "^8.4" }, "require-dev": { - "brainbits/phpcs-standard": "^8.0.0", - "ergebnis/phpstan-rules": "^2.11.0", - "thecodingmachine/phpstan-safe-rule": "^v1.4.1", - "phpstan/phpstan-phpunit": "^2.0.7", - "squizlabs/php_codesniffer": "^3.13.2", - "phpstan/phpstan": "^2.1.22", - "phpunit/phpunit": "^12.3.6", - "rector/rector": "^2.1.4" + "brainbits/phpcs-standard": "^8.0.1", + "ergebnis/phpstan-rules": "^2.13.1", + "thecodingmachine/phpstan-safe-rule": "^1.4.3", + "phpstan/phpstan-phpunit": "^2.0.16", + "squizlabs/php_codesniffer": "^4.0.1", + "phpstan/phpstan": "^2.1.40", + "phpunit/phpunit": "^13.0.5", + "rector/rector": "^2.3.8" }, "autoload": { "psr-4": { diff --git a/rector.php b/rector.php index e487f31..376f196 100644 --- a/rector.php +++ b/rector.php @@ -4,7 +4,6 @@ use Rector\Config\RectorConfig; use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector; -use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector; use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitSelfCallRector; use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector; use Rector\PHPUnit\Set\PHPUnitSetList; @@ -22,7 +21,7 @@ $rectorConfig->phpstanConfig(__DIR__ . '/phpstan.neon.dist'); $rectorConfig->sets([ - LevelSetList::UP_TO_PHP_82, + LevelSetList::UP_TO_PHP_84, PHPUnitSetList::PHPUNIT_40, PHPUnitSetList::PHPUNIT_50, @@ -31,13 +30,14 @@ PHPUnitSetList::PHPUNIT_80, PHPUnitSetList::PHPUNIT_90, PHPUnitSetList::PHPUNIT_100, + PHPUnitSetList::PHPUNIT_110, + PHPUnitSetList::PHPUNIT_120, PHPUnitSetList::PHPUNIT_CODE_QUALITY, PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES, SetList::CODE_QUALITY, SetList::CODING_STYLE, SetList::DEAD_CODE, - SetList::STRICT_BOOLEANS, SetList::NAMING, SetList::PRIVATIZATION, SetList::TYPE_DECLARATION, @@ -46,7 +46,6 @@ ]); $rectorConfig->rules([ - AddLiteralSeparatorToNumberRector::class, DeclareStrictTypesRector::class, PreferPHPUnitSelfCallRector::class, ]);