Skip to content

Commit 174b8e9

Browse files
committed
Allow PHP 8.5 as max version
1 parent 90f8b11 commit 174b8e9

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

conf/parametersSchema.neon

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ parametersSchema:
8787
buffer: int()
8888
])
8989
phpVersion: schema(anyOf(
90-
schema(int(), min(70100), max(80499)),
90+
schema(int(), min(70100), max(80599)),
9191
structure([
92-
min: schema(int(), min(70100), max(80499)),
93-
max: schema(int(), min(70100), max(80499))
92+
min: schema(int(), min(70100), max(80599)),
93+
max: schema(int(), min(70100), max(80599))
9494
])
9595
), nullable())
9696
polluteScopeWithLoopInitialAssignments: bool()

src/Php/PhpVersionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ final class PhpVersionFactory
1313
{
1414

1515
public const MIN_PHP_VERSION = 70100;
16-
public const MAX_PHP_VERSION = 80499;
16+
public const MAX_PHP_VERSION = 80599;
1717
public const MAX_PHP5_VERSION = 50699;
1818
public const MAX_PHP7_VERSION = 70499;
1919

tests/PHPStan/Analyser/ScopePhpVersionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ public static function dataTestPhpVersion(): array
1515
{
1616
return [
1717
[
18-
'int<80000, 80499>',
18+
'int<80000, 80599>',
1919
__DIR__ . '/data/scope-constants-global.php',
2020
],
2121
[
22-
'int<80000, 80499>',
22+
'int<80000, 80599>',
2323
__DIR__ . '/data/scope-constants-namespace.php',
2424
],
2525
];

tests/PHPStan/Analyser/nsrt/predefined-constants.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
assertType('int<5, 8>', PHP_MAJOR_VERSION);
88
assertType('int<0, max>', PHP_MINOR_VERSION);
99
assertType('int<0, max>', PHP_RELEASE_VERSION);
10-
assertType('int<50207, 80499>', PHP_VERSION_ID);
10+
assertType('int<50207, 80599>', PHP_VERSION_ID);
1111
assertType('string', PHP_EXTRA_VERSION);
1212
assertType('0|1', PHP_ZTS);
1313
assertType('0|1', PHP_DEBUG);

tests/PHPStan/Php/PhpVersionFactoryTest.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,15 +81,21 @@ public static function dataCreate(): array
8181
[
8282
null,
8383
'8.5',
84-
80499,
85-
'8.4.99',
84+
80500,
85+
'8.5',
8686
],
8787
[
8888
null,
8989
'8.0.95',
9090
80095,
9191
'8.0.95',
9292
],
93+
[
94+
null,
95+
'8.6',
96+
80599,
97+
'8.5.99',
98+
],
9399
];
94100
}
95101

0 commit comments

Comments
 (0)