Skip to content

Commit e4bc9f7

Browse files
committed
Add PHP 8.5 support to PHPArkitect parser
- Added PHP_8_5 constant to TargetPhpVersion - Added 8.5 to VALID_PHP_VERSIONS array - Updated latest() method to return PHP 8.5 - Removed continue-on-error from CI workflow This fixes all 28 test failures on PHP 8.5 caused by the parser rejecting PHP 8.5 as an invalid version. Fixes #541
1 parent 24b029b commit e4bc9f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)