Skip to content

Commit a3a306c

Browse files
committed
PHPStan baseline
1 parent bd67a35 commit a3a306c

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ tmp export-ignore
88
Makefile export-ignore
99
phpcs.xml export-ignore
1010
phpstan.neon export-ignore
11+
phpstan-baseline.neon export-ignore
1112
phpunit.xml export-ignore

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 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

phpstan-baseline.neon

Lines changed: 11 additions & 0 deletions
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/Type/BeberleiAssert/ImpossibleCheckTypeMethodCallRuleTest.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/BeberleiAssert/ImpossibleCheckTypeStaticMethodCallRuleTest.php

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ includes:
44
- vendor/phpstan/phpstan-phpunit/rules.neon
55
- vendor/phpstan/phpstan-strict-rules/rules.neon
66
- vendor/phpstan/phpstan/conf/bleedingEdge.neon
7+
- phpstan-baseline.neon
78

89
parameters:
910
excludePaths:

0 commit comments

Comments
 (0)