Skip to content

Commit b98fe59

Browse files
authored
feat: drop PHP 8.2, allow PHP 8.5 (#441)
1 parent 2739eee commit b98fe59

26 files changed

Lines changed: 47 additions & 12 deletions

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
- "locked"
2121
- "highest"
2222
php-version:
23-
- "8.2"
2423
- "8.3"
2524
- "8.4"
25+
- "8.5"
2626
composer-version:
2727
- "2.4"
2828
- "2.5"
@@ -87,15 +87,15 @@ jobs:
8787
run: "composer license:check -- --provider-id=licenses -v"
8888

8989
- name: "Run coding style"
90-
if: ${{ matrix.dependencies == 'locked' && matrix.php-version == '8.2' }}
90+
if: ${{ matrix.dependencies == 'locked' && matrix.php-version == '8.3' }}
9191
run: "composer code-style:check"
9292

9393
- name: "Run PHPStan"
9494
if: ${{ matrix.dependencies == 'locked' }}
9595
run: "composer phpstan"
9696

9797
- name: "Run Rector"
98-
if: ${{ matrix.dependencies == 'locked' && matrix.php-version == '8.2' }}
98+
if: ${{ matrix.dependencies == 'locked' && matrix.php-version == '8.3' }}
9999
run: "composer rector:check"
100100

101101
- name: "Unit tests"

.php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
->setRules([
1212
'@PER-CS2.0' => true,
1313
'@PER-CS2.0:risky' => true,
14-
'@PHP82Migration' => true,
14+
'@PHP83Migration' => true,
1515
'@DoctrineAnnotation' => true,
1616
'align_multiline_comment' => true,
1717
'array_indentation' => true,

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "~8.2.0 || ~8.3.0 || ~8.4.0",
13+
"php": "~8.3.0 || ~8.4.0 || ~8.5.0",
1414
"composer-runtime-api": "^2.2",
1515
"symfony/console": "^5.4 || ^6.0 || ^7.0",
1616
"symfony/process": "^5.4.46 || ^6.4.14 || ^7.1.7"
@@ -47,7 +47,7 @@
4747
"ergebnis/composer-normalize": true
4848
},
4949
"platform": {
50-
"php": "8.2.13"
50+
"php": "8.3"
5151
},
5252
"sort-packages": true
5353
},

composer.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
->withPHPStanConfigs([__DIR__.'/phpstan-rector.neon'])
1414
->withCache(__DIR__.'/tmp/rector', FileCacheStorage::class)
1515
->withPreparedSets(codeQuality: true)
16-
->withPhpSets(php82: true)
16+
->withPhpSets(php83: true)
1717
->withSets(
1818
[
1919
PHPUnitSetList::PHPUNIT_100,

src/ComposerRunner/SymfonyProcessComposerRunner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
final class SymfonyProcessComposerRunner implements ComposerRunner
1212
{
13+
#[\Override]
1314
public function licenses(string $projectPath, bool $ignoreDev): string
1415
{
1516
$process = Process::fromShellCommandline(

src/InMemoryPackagesProviderLocator.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ public function __construct(private array $providers) {}
1616
/**
1717
* @return list<non-empty-string>
1818
*/
19+
#[\Override]
1920
public function ids(): array
2021
{
2122
return \array_keys($this->providers);
2223
}
2324

25+
#[\Override]
2426
public function locate(string $id): PackagesProvider
2527
{
2628
return $this->providers[$id] ?? throw PackagesProviderNotLocated::withId($id);

src/LicenseChecker.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public function __construct(
3737
);
3838
}
3939

40+
#[\Override]
4041
protected function configure(): void
4142
{
4243
$this
@@ -73,6 +74,7 @@ protected function configure(): void
7374
);
7475
}
7576

77+
#[\Override]
7678
protected function execute(InputInterface $input, OutputInterface $output): int
7779
{
7880
try {

src/Licenses.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function isEmpty(): bool
2626
return $this->licenses === [];
2727
}
2828

29+
#[\Override]
2930
public function getIterator(): \Traversable
3031
{
3132
return new \ArrayIterator($this->licenses);

src/Output/DisplayOutputSubscriber.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
{
1919
public function __construct(private Display $display) {}
2020

21+
#[\Override]
2122
public function subscriptions(): iterable
2223
{
2324
yield new Subscription(Started::class, $this->onStarted(...));

0 commit comments

Comments
 (0)