Skip to content

Commit 70b3a06

Browse files
authored
chore: @phpstan-ignore for php version check (#8920)
1 parent ec5fff8 commit 70b3a06

File tree

3 files changed

+3
-11
lines changed

3 files changed

+3
-11
lines changed

dev-tools/phpstan/baseline/_loader.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@
1111
__DIR__ . '/plus.leftNonNumeric.php',
1212
__DIR__ . '/plus.rightNonNumeric.php',
1313
__DIR__ . '/return.type.php',
14-
__DIR__ . '/smaller.alwaysFalse.php',
1514
]];

dev-tools/phpstan/baseline/smaller.alwaysFalse.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

php-cs-fixer

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ set_error_handler(static function (int $severity, string $message, string $file,
3535
exit(1);
3636
}
3737

38+
// PHPStan knows our min PHP version, but we want to check the min version here
39+
// because entrypoint file allows wider PHP range than project itself
40+
// @phpstan-ignore smaller.alwaysFalse
3841
if (\PHP_VERSION_ID < (int) '70400') {
3942
fwrite(\STDERR, "PHP needs to be a minimum version of PHP 7.4.0.\n");
4043
fwrite(\STDERR, 'Current PHP version: '.\PHP_VERSION.".\n");

0 commit comments

Comments
 (0)