Skip to content

Commit f038fad

Browse files
authored
PHPStan: use min/max phpVersion (#298)
1 parent bf6c463 commit f038fad

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

composer.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpstan.neon.dist

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ includes:
99
- ./rules.neon
1010

1111
parameters:
12-
phpVersion: 70400
12+
phpVersion:
13+
min: 70400
14+
max: 80499
1315
internalErrorsCountLimit: 1
1416
paths:
1517
- src
@@ -52,6 +54,11 @@ parameters:
5254
path: src/Rule/BackedEnumGenericsRule.php
5355
reportUnmatched: false # fails only for PHP < 8 https://github.com/phpstan/phpstan/issues/6290
5456

57+
-
58+
message: "#Call to method PHPStan\\\\Reflection\\\\ClassReflection::isEnum\\(\\) will always evaluate to false\\.#"
59+
path: src/Rule/ForbidProtectedEnumMethodRule.php
60+
reportUnmatched: false # fails only for PHP < 8 https://github.com/phpstan/phpstan-src/pull/3925/files#diff-df58b1c8117cfa9b77453fb2cc8fdeeb0803ad0acfd2dec85a441a8fa5a53c06R24
61+
5562
-
5663
message: "#but it's missing from the PHPDoc @throws tag\\.$#" # allow uncatched exceptions in tests
5764
path: tests/*

0 commit comments

Comments
 (0)