Skip to content

Commit 7d61e7d

Browse files
SanderMullerclaude
andcommitted
Allow PHP 8.6 as max version
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent d9bba36 commit 7d61e7d

9 files changed

Lines changed: 21 additions & 15 deletions

File tree

‎conf/parametersSchema.neon‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,10 @@ parametersSchema:
117117
loadLimit: schema(float(), nullable())
118118
])
119119
phpVersion: schema(anyOf(
120-
schema(int(), min(70100), max(80599)),
120+
schema(int(), min(70100), max(80699)),
121121
structure([
122-
min: schema(int(), min(70100), max(80599)),
123-
max: schema(int(), min(70100), max(80599))
122+
min: schema(int(), min(70100), max(80699)),
123+
max: schema(int(), min(70100), max(80699))
124124
])
125125
), nullable())
126126
polluteScopeWithLoopInitialAssignments: bool()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
\PHPStan\Testing\assertType('int<80100, 80599>', PHP_VERSION_ID);
3+
\PHPStan\Testing\assertType('int<80100, 80699>', PHP_VERSION_ID);
44
\PHPStan\Testing\assertType('8', PHP_MAJOR_VERSION);
5-
\PHPStan\Testing\assertType('int<1, 5>', PHP_MINOR_VERSION);
5+
\PHPStan\Testing\assertType('int<1, 6>', PHP_MINOR_VERSION);
66
\PHPStan\Testing\assertType('int<0, max>', PHP_RELEASE_VERSION);

‎e2e/composer-min-version/test.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
\PHPStan\Testing\assertType('int<80100, 80599>', PHP_VERSION_ID);
3+
\PHPStan\Testing\assertType('int<80100, 80699>', PHP_VERSION_ID);
44
\PHPStan\Testing\assertType('8', PHP_MAJOR_VERSION);
5-
\PHPStan\Testing\assertType('int<1, 5>', PHP_MINOR_VERSION);
5+
\PHPStan\Testing\assertType('int<1, 6>', PHP_MINOR_VERSION);
66
\PHPStan\Testing\assertType('int<0, max>', PHP_RELEASE_VERSION);

‎e2e/composer-no-versions/test.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
\PHPStan\Testing\assertType('int<50207, 80599>', PHP_VERSION_ID);
3+
\PHPStan\Testing\assertType('int<50207, 80699>', PHP_VERSION_ID);
44
\PHPStan\Testing\assertType('int<5, 8>', PHP_MAJOR_VERSION);
55
\PHPStan\Testing\assertType('int<0, max>', PHP_MINOR_VERSION);
66
\PHPStan\Testing\assertType('int<0, max>', PHP_RELEASE_VERSION);

‎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 = 80599;
16+
public const MAX_PHP_VERSION = 80699;
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, 80599>',
18+
'int<80000, 80699>',
1919
__DIR__ . '/data/scope-constants-global.php',
2020
],
2121
[
22-
'int<80000, 80599>',
22+
'int<80000, 80699>',
2323
__DIR__ . '/data/scope-constants-namespace.php',
2424
],
2525
];

‎tests/PHPStan/Analyser/nsrt/node-callback-scope.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ function doFoo(): void {
479479
}
480480

481481
function (): void {
482-
assertType('int<50207, 80599>', PHP_VERSION_ID);
482+
assertType('int<50207, 80699>', PHP_VERSION_ID);
483483
};
484484

485485
function (int $i) {

‎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, 80599>', PHP_VERSION_ID);
10+
assertType('int<50207, 80699>', 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
@@ -93,8 +93,14 @@ public static function dataCreate(): array
9393
[
9494
null,
9595
'8.6',
96-
80599,
97-
'8.5.99',
96+
80600,
97+
'8.6',
98+
],
99+
[
100+
null,
101+
'8.7',
102+
80699,
103+
'8.6.99',
98104
],
99105
];
100106
}

0 commit comments

Comments
 (0)