Skip to content

Commit b67734a

Browse files
committed
Require PHPStan 1.8.0
1 parent 724e062 commit b67734a

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,7 @@ cs-fix:
2121
.PHONY: phpstan
2222
phpstan:
2323
php vendor/bin/phpstan analyse -l 9 -c phpstan.neon src tests
24+
25+
.PHONY: phpstan-generate-baseline
26+
phpstan-generate-baseline:
27+
php vendor/bin/phpstan analyse -l 8 -c phpstan.neon src tests -b phpstan-baseline.neon

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "^7.2 || ^8.0",
10-
"phpstan/phpstan": "^1.7.15"
10+
"phpstan/phpstan": "^1.8.0"
1111
},
1212
"require-dev": {
1313
"nikic/php-parser": "^4.13.0",

phpstan-baseline.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ parameters:
44
message: "#^Creating new ReflectionObject is a runtime reflection concept that might not work in PHPStan because it uses fully static reflection engine\\. Use objects retrieved from ReflectionProvider instead\\.$#"
55
count: 1
66
path: src/Type/WebMozartAssert/AssertTypeSpecifyingExtension.php
7+
8+
-
9+
message: "#^Accessing PHPStan\\\\Rules\\\\Comparison\\\\ImpossibleCheckTypeStaticMethodCallRule\\:\\:class is not covered by backward compatibility promise\\. The class might change in a minor PHPStan version\\.$#"
10+
count: 1
11+
path: tests/Type/WebMozartAssert/ImpossibleCheckTypeMethodCallRuleTest.php

0 commit comments

Comments
 (0)