Skip to content

Commit 7035ba3

Browse files
committed
Tell PHPStan to ignore missing regexp methods in older versions of PHPUnit
Issue #62
1 parent b839dce commit 7035ba3

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

phpstan.phpunit7.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ parameters:
1717
-
1818
message: '/Call to an undefined static method .+Assert::assertStringNotEqualsFileIgnoringCase/'
1919
path: %currentWorkingDirectory%/src/Verify.php
20+
-
21+
message: '/Call to an undefined static method .+Assert::assertMatchesRegularExpression/'
22+
path: %currentWorkingDirectory%/src/Verify.php
23+
-
24+
message: '/Call to an undefined static method .+Assert::assertDoesNotMatchRegularExpression/'
25+
path: %currentWorkingDirectory%/src/Verify.php
2026
-
2127
message: '/Call to an undefined static method .+Assert::assertFileEqualsIgnoringCase/'
2228
path: %currentWorkingDirectory%/src/VerifyFile.php

phpstan.phpunit8.neon

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Ignorable errors specific to PHPUnit 8
2+
3+
includes:
4+
- phpstan.neon.dist
5+
6+
parameters:
7+
ignoreErrors:
8+
-
9+
message: '/Call to an undefined static method .+Assert::assertMatchesRegularExpression/'
10+
path: %currentWorkingDirectory%/src/Verify.php
11+
-
12+
message: '/Call to an undefined static method .+Assert::assertDoesNotMatchRegularExpression/'
13+
path: %currentWorkingDirectory%/src/Verify.php

0 commit comments

Comments
 (0)