Skip to content

Commit 3491ea3

Browse files
committed
Allow running on PHP 8.4
1 parent 8b5a27a commit 3491ea3

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

conf/parametersSchema.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ parametersSchema:
145145
minimumNumberOfJobsPerProcess: int(),
146146
buffer: int()
147147
])
148-
phpVersion: schema(anyOf(schema(int(), min(70100), max(80399))), nullable())
148+
phpVersion: schema(anyOf(schema(int(), min(70100), max(80499))), nullable())
149149
polluteScopeWithLoopInitialAssignments: bool()
150150
polluteScopeWithAlwaysIterableForeach: bool()
151151
propertyAlwaysWrittenTags: listOf(string())

src/Php/PhpVersionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function create(): PhpVersion
2626
$parts = explode('.', $this->composerPhpVersion);
2727
$tmp = (int) $parts[0] * 10000 + (int) ($parts[1] ?? 0) * 100 + (int) ($parts[2] ?? 0);
2828
$tmp = max($tmp, 70100);
29-
$versionId = min($tmp, 80399);
29+
$versionId = min($tmp, 80499);
3030
$source = PhpVersion::SOURCE_COMPOSER_PLATFORM_PHP;
3131
} else {
3232
$versionId = PHP_VERSION_ID;

tests/PHPStan/Php/PhpVersionFactoryTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,14 @@ public function dataCreate(): array
7474
[
7575
null,
7676
'8.4',
77-
80399,
78-
'8.3.99',
77+
80400,
78+
'8.4',
79+
],
80+
[
81+
null,
82+
'8.5',
83+
80499,
84+
'8.4.99',
7985
],
8086
[
8187
null,

0 commit comments

Comments
 (0)