Skip to content

Commit e561843

Browse files
authored
Merge pull request #6 from pl-github/fix/updates-20260313
fix: Raise minimum PHP version to 8.4
2 parents 9c45989 + 21aedb0 commit e561843

4 files changed

Lines changed: 16 additions & 17 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
strategy:
1818
matrix:
1919
php-version:
20-
- "8.3"
2120
- "8.4"
21+
- "8.5"
2222

2323
steps:
2424
- name: "Checkout"

.github/workflows/code_coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: actions/checkout@v5
1515
- uses: shivammathur/setup-php@master
1616
with:
17-
php-version: 8.3
17+
php-version: 8.5
1818
coverage: xdebug
1919
- name: Load dependencies from cache
2020
id: composer-cache
@@ -23,9 +23,9 @@ jobs:
2323
- uses: actions/cache@v4
2424
with:
2525
path: ${{ steps.composer-cache.outputs.dir }}
26-
key: ${{ runner.os }}-php8.3-composer-${{ hashFiles('**/composer.json') }}
26+
key: ${{ runner.os }}-php8.5-composer-${{ hashFiles('**/composer.json') }}
2727
restore-keys: |
28-
${{ runner.os }}-php8.3-composer-
28+
${{ runner.os }}-php8.5-composer-
2929
3030
- run: composer install --prefer-dist --no-progress --no-suggest
3131
- run: vendor/bin/phpunit --coverage-clover build/logs/clover.xml

composer.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
}
1111
],
1212
"require": {
13-
"php": "^8.3"
13+
"php": "^8.4"
1414
},
1515
"require-dev": {
16-
"brainbits/phpcs-standard": "^8.0.0",
17-
"ergebnis/phpstan-rules": "^2.11.0",
18-
"thecodingmachine/phpstan-safe-rule": "^v1.4.1",
19-
"phpstan/phpstan-phpunit": "^2.0.7",
20-
"squizlabs/php_codesniffer": "^3.13.2",
21-
"phpstan/phpstan": "^2.1.22",
22-
"phpunit/phpunit": "^12.3.6",
23-
"rector/rector": "^2.1.4"
16+
"brainbits/phpcs-standard": "^8.0.1",
17+
"ergebnis/phpstan-rules": "^2.13.1",
18+
"thecodingmachine/phpstan-safe-rule": "^1.4.3",
19+
"phpstan/phpstan-phpunit": "^2.0.16",
20+
"squizlabs/php_codesniffer": "^4.0.1",
21+
"phpstan/phpstan": "^2.1.40",
22+
"phpunit/phpunit": "^13.0.5",
23+
"rector/rector": "^2.3.8"
2424
},
2525
"autoload": {
2626
"psr-4": {

rector.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use Rector\Config\RectorConfig;
66
use Rector\Naming\Rector\Class_\RenamePropertyToMatchTypeRector;
7-
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
87
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitSelfCallRector;
98
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
109
use Rector\PHPUnit\Set\PHPUnitSetList;
@@ -22,7 +21,7 @@
2221
$rectorConfig->phpstanConfig(__DIR__ . '/phpstan.neon.dist');
2322

2423
$rectorConfig->sets([
25-
LevelSetList::UP_TO_PHP_82,
24+
LevelSetList::UP_TO_PHP_84,
2625

2726
PHPUnitSetList::PHPUNIT_40,
2827
PHPUnitSetList::PHPUNIT_50,
@@ -31,13 +30,14 @@
3130
PHPUnitSetList::PHPUNIT_80,
3231
PHPUnitSetList::PHPUNIT_90,
3332
PHPUnitSetList::PHPUNIT_100,
33+
PHPUnitSetList::PHPUNIT_110,
34+
PHPUnitSetList::PHPUNIT_120,
3435
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
3536
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
3637

3738
SetList::CODE_QUALITY,
3839
SetList::CODING_STYLE,
3940
SetList::DEAD_CODE,
40-
SetList::STRICT_BOOLEANS,
4141
SetList::NAMING,
4242
SetList::PRIVATIZATION,
4343
SetList::TYPE_DECLARATION,
@@ -46,7 +46,6 @@
4646
]);
4747

4848
$rectorConfig->rules([
49-
AddLiteralSeparatorToNumberRector::class,
5049
DeclareStrictTypesRector::class,
5150
PreferPHPUnitSelfCallRector::class,
5251
]);

0 commit comments

Comments
 (0)