Skip to content

Commit b83a046

Browse files
committed
Dismiss new PHPStan issues
Running the latest PHPStan produces this output: ``` ------ -------------------------------------------------------------------------------------------------------------- Line Loader/SymfonyFixturesLoader.php ------ -------------------------------------------------------------------------------------------------------------- 62 Call to an undefined static method Doctrine\Bundle\FixturesBundle\Loader\SymfonyBridgeLoader::addFixture(). 96 Call to an undefined static method Doctrine\Bundle\FixturesBundle\Loader\SymfonyBridgeLoader::getFixtures(). ------ -------------------------------------------------------------------------------------------------------------- ------ ------------------------------------------------------------------------------------------------------------------------------------------------ Line Tests/Command/LoadDataFixturesDoctrineCommandTest.php ------ ------------------------------------------------------------------------------------------------------------------------------------------------ 27 Class Doctrine\Bundle\FixturesBundle\Loader\SymfonyFixturesLoader does not have a constructor and must be instantiated without any parameters. 50 Class Doctrine\Bundle\FixturesBundle\Loader\SymfonyFixturesLoader does not have a constructor and must be instantiated without any parameters. ------ ------------------------------------------------------------------------------------------------------------------------------------------------ ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Line Tests/IntegrationTest.php ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 467 Return type mixed of method Doctrine\Bundle\FixturesBundle\Tests\ForwardCompatibleEntityManager::wrapInTransaction() is not covariant with return type mixed of method Doctrine\ORM\EntityManagerInterface::wrapInTransaction(). ------ ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- ``` All of them happen in the context of compatibility layers. The last one cannot be ignored for some reason.
1 parent 6c3253b commit b83a046

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

phpstan-baseline.neon

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
parameters:
2+
excludePaths:
3+
# Contains an error that is impossible to ignore
4+
- Tests/IntegrationTest.php
5+
26
ignoreErrors:
7+
-
8+
message: "#^Call to an undefined static method Doctrine\\\\Bundle\\\\FixturesBundle\\\\Loader\\\\SymfonyBridgeLoader\\:\\:addFixture\\(\\)\\.$#"
9+
count: 1
10+
path: Loader/SymfonyFixturesLoader.php
11+
12+
-
13+
message: "#^Call to an undefined static method Doctrine\\\\Bundle\\\\FixturesBundle\\\\Loader\\\\SymfonyBridgeLoader\\:\\:getFixtures\\(\\)\\.$#"
14+
count: 1
15+
path: Loader/SymfonyFixturesLoader.php
16+
17+
-
18+
message: "#^Class Doctrine\\\\Bundle\\\\FixturesBundle\\\\Loader\\\\SymfonyFixturesLoader does not have a constructor and must be instantiated without any parameters\\.$#"
19+
count: 2
20+
path: Tests/Command/LoadDataFixturesDoctrineCommandTest.php
21+
322
-
423
message: "#^Constructor of class Doctrine\\\\Bundle\\\\FixturesBundle\\\\Tests\\\\Fixtures\\\\FooBundle\\\\DataFixtures\\\\RequiredConstructorArgsFixtures has an unused parameter \\$fooRequiredArg\\.$#"
524
count: 1

0 commit comments

Comments
 (0)