Ignore PHPStan error

These surfaced after merging #473
One of the errors can only be ignored using excludePaths
This commit is contained in:
Grégoire Paris
2025-10-04 17:47:54 +02:00
parent 6b675438e9
commit c9b4677ca0
2 changed files with 2 additions and 13 deletions

View File

@@ -313,19 +313,7 @@ parameters:
path: tests/Common/DataFixtures/DependentFixtureTest.php
-
message: '#^Call to method expects\(\) on an unknown class Doctrine\\ODM\\PHPCR\\DocumentManager\.$#'
identifier: class.notFound
count: 5
path: tests/Common/DataFixtures/Executor/PHPCRExecutorTest.php
-
message: '#^Method Doctrine\\Tests\\Common\\DataFixtures\\Executor\\PHPCRExecutorTest\:\:getDocumentManager\(\) has invalid return type Doctrine\\ODM\\PHPCR\\DocumentManager\.$#'
identifier: class.notFound
count: 2
path: tests/Common/DataFixtures/Executor/PHPCRExecutorTest.php
-
message: '#^Parameter \#1 \$dm of class Doctrine\\Common\\DataFixtures\\Executor\\PHPCRExecutor constructor expects Doctrine\\ODM\\PHPCR\\DocumentManagerInterface, Doctrine\\ODM\\PHPCR\\DocumentManager&PHPUnit\\Framework\\MockObject\\MockObject given\.$#'
message: '#^Parameter \#1 \$dm of class Doctrine\\Common\\DataFixtures\\Executor\\PHPCRExecutor constructor expects Doctrine\\ODM\\PHPCR\\DocumentManagerInterface, Doctrine\\Tests\\Mock\\PHPCRDocumentManager&PHPUnit\\Framework\\MockObject\\MockObject given\.$#'
identifier: argument.type
count: 5
path: tests/Common/DataFixtures/Executor/PHPCRExecutorTest.php

View File

@@ -6,6 +6,7 @@ parameters:
- tests
excludePaths:
- tests/Mock/ForwardCompatibleEntityManager.php
- tests/Mock/PHPCRDocumentManager.php
ignoreErrors:
# ORM 2 backwards compatibility