dmaicher / doctrine-test-bundle

Symfony bundle to isolate your app's doctrine database tests and improve the test performance
MIT License
1.08k stars 60 forks source link

The "DAMA\DoctrineTestBundle\Doctrine\DBAL\VersionAwarePlatformStaticDriver" class implements deprecated "Doctrine\DBAL\VersionAwarePlatformDriver" #240

Closed steffenbrand closed 1 year ago

steffenbrand commented 1 year ago

I get the following deprecation info:

User Deprecated: The "DAMA\DoctrineTestBundle\Doctrine\DBAL\VersionAwarePlatformStaticDriver" class implements "Doctrine\DBAL\VersionAwarePlatformDriver" that is deprecated All drivers will have to be aware of the server version in the next major release.

https://github.com/doctrine/dbal/blob/3.5.x/UPGRADE.md#deprecated-driver-level-apis-that-dont-take-the-server-version-into-account

doctrine/dbal: 3.5.2 dama/doctrine-test-bundle: 7.1.1

I think the change is in the Middleware.php, where now always a StaticDriver should be returned :man_shrugging:

Is there a way for me to mitigate this?
Like setting some configuration so my own Middleware.php is used or something like this?

dmaicher commented 1 year ago

There is no way to fix this unfortunately. See https://github.com/dmaicher/doctrine-test-bundle/issues/235