Skip to content

Commit 34a6bb5

Browse files
committed
PHPStan baseline
1 parent 0509872 commit 34a6bb5

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

Diff for: Makefile

+4
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 8 -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

Diff for: phpstan-baseline.neon

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Accessing PHPStan\\\\Rules\\\\Comparison\\\\ImpossibleCheckTypeMethodCallRule\\:\\:class is not covered by backward compatibility promise\\. The class might change in a minor PHPStan version\\.$#"
5+
count: 1
6+
path: tests/Rules/PHPUnit/AssertSameMethodDifferentTypesRuleTest.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/Rules/PHPUnit/AssertSameStaticMethodDifferentTypesRuleTest.php

Diff for: phpstan.neon

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ includes:
33
- rules.neon
44
- vendor/phpstan/phpstan-strict-rules/rules.neon
55
- phar://phpstan.phar/conf/bleedingEdge.neon
6+
- phpstan-baseline.neon
67

78
parameters:
89
excludePaths:

0 commit comments

Comments
 (0)