Skip to content

Commit f6e11f5

Browse files
authored
Merge pull request #541 from phparkitect/claude/check-php-versions-ci-016YgqrXnKdHqWWscsW6BHTw
Adds support to php 8.5
2 parents 7a40eed + e4bc9f7 commit f6e11f5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
16+
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
1717
coverage-driver: [ 'pcov' ]
1818

1919
steps:
@@ -97,7 +97,7 @@ jobs:
9797
runs-on: "ubuntu-22.04"
9898
strategy:
9999
matrix:
100-
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
100+
php-versions: [ '7.4', '8.0', '8.1', '8.2', '8.3', '8.4', '8.5' ]
101101
steps:
102102
- name: Install PHP
103103
uses: shivammathur/setup-php@v2

src/CLI/TargetPhpVersion.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class TargetPhpVersion
1414
public const PHP_8_2 = '8.2';
1515
public const PHP_8_3 = '8.3';
1616
public const PHP_8_4 = '8.4';
17+
public const PHP_8_5 = '8.5';
1718

1819
public const VALID_PHP_VERSIONS = [
1920
'7.4',
@@ -22,6 +23,7 @@ class TargetPhpVersion
2223
'8.2',
2324
'8.3',
2425
'8.4',
26+
'8.5',
2527
];
2628

2729
private string $version;
@@ -42,7 +44,7 @@ private function __construct(string $version)
4244

4345
public static function latest(): self
4446
{
45-
return new self(self::PHP_8_4);
47+
return new self(self::PHP_8_5);
4648
}
4749

4850
public static function create(?string $version): self

0 commit comments

Comments
 (0)