Skip to content

Commit f5ad07e

Browse files
committed
PHPStan baseline
1 parent 7d81c08 commit f5ad07e

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

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

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\\\\Methods\\\\CallMethodsRule\\:\\:class is not covered by backward compatibility promise\\. The class might change in a minor PHPStan version\\.$#"
5+
count: 1
6+
path: tests/Rules/NonexistentInputBagClassTest.php
7+
8+
-
9+
message: "#^Accessing PHPStan\\\\Rules\\\\Comparison\\\\ImpossibleCheckTypeMethodCallRule\\:\\:class is not covered by backward compatibility promise\\. The class might change in a minor PHPStan version\\.$#"
10+
count: 1
11+
path: tests/Type/Symfony/ImpossibleCheckTypeMethodCallRuleTest.php

phpstan.neon

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ includes:
55
- vendor/phpstan/phpstan-phpunit/rules.neon
66
- vendor/phpstan/phpstan-strict-rules/rules.neon
77
- phar://phpstan.phar/conf/bleedingEdge.neon
8+
- phpstan-baseline.neon
89

910
parameters:
1011
excludePaths:

0 commit comments

Comments
 (0)