doctrine / DoctrineFixturesBundle

Symfony integration for the doctrine/data-fixtures library
MIT License
2.44k stars 201 forks source link

Dismiss new PHPStan issues #424

Closed greg0ire closed 3 months ago

greg0ire commented 3 months ago

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.

greg0ire commented 3 months ago

Yes, that was the case.