Skip to content

Commit 98531ae

Browse files
committed
Use baseline to ignore a bug in loading constant from phpcs
1 parent 4407327 commit 98531ae

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

phpstan-baseline.neon

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
parameters:
2+
ignoreErrors:
3+
-
4+
message: "#^Constant T_OPEN_PARENTHESIS not found\\.$#"
5+
count: 1
6+
path: src/Cdn77/Sniffs/NamingConventions/ValidVariableNameSniff.php
7+
8+
-
9+
message: "#^Used constant T_OPEN_PARENTHESIS not found\\.$#"
10+
count: 1
11+
path: src/Cdn77/Sniffs/NamingConventions/ValidVariableNameSniff.php
12+

phpstan.neon.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ parameters:
99
- %currentWorkingDirectory%
1010

1111
includes:
12+
- phpstan-baseline.neon
1213
- vendor/phpstan/phpstan-phpunit/rules.neon
1314
- vendor/phpstan/phpstan-strict-rules/rules.neon

0 commit comments

Comments
 (0)