Skip to content

Commit

Permalink
Adjust PHPStan settings for ORM 3
Browse files Browse the repository at this point in the history
  • Loading branch information
derrabus committed Mar 8, 2024
1 parent d8cfe54 commit 6bf0634
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ parameters:
paths:
- src
- tests
excludePaths:
- tests/Mock/ForwardCompatibleEntityManager.php

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

includes:
- phpstan-baseline.neon

0 comments on commit 6bf0634

Please sign in to comment.