Skip to content

Commit 7a3052e

Browse files
authored
Adjust PHPStan settings for ORM 3 (#467)
1 parent d8cfe54 commit 7a3052e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

phpstan.neon.dist

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,14 @@ parameters:
44
paths:
55
- src
66
- tests
7+
excludePaths:
8+
- tests/Mock/ForwardCompatibleEntityManager.php
79

810
ignoreErrors:
9-
# ORM 3 forward compatibility
10-
- '~^Parameter \$assoc of method Doctrine\\Common\\DataFixtures\\Purger\\ORMPurger\:\:getJoinTableName\(\) has invalid type Doctrine\\ORM\\Mapping\\ManyToManyOwningSideMapping\.$~'
11+
# ORM 2 backwards compatibility
12+
-
13+
message: '#^Call to an undefined static method Doctrine\\ORM\\ORMSetup\:\:createAnnotationMetadataConfiguration\(\)\.$#'
14+
path: tests/Common/DataFixtures/BaseTestCase.php
1115

1216
includes:
1317
- phpstan-baseline.neon

0 commit comments

Comments
 (0)