Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated VersionAwarePlatformStaticDriver class implements VersionAwarePlatformStaticDriver #235

Closed
fransweerts opened this issue Nov 25, 2022 · 3 comments

Comments

@fransweerts
Copy link

Hello,

I have found this deprecated message in my log:

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.

I am using "doctrine/dbal version 3.5.1" and "dama/doctrine-test-bundle 7.1.1".

@dmaicher
Copy link
Owner

Yeah I'm aware of it. I don't think there is any way to fix this deprecation. Its similar to #129

@fransweerts
Copy link
Author

Thank you for the quick response.

#129 (comment)_

The current version of dama/doctrine-test-bundle is only supporting DBAL 3.
If I'm understanding it correctly, its possible to safely remove the "implement VersionAwarePlatformDriver" because you are not supporting DBAL 2 anymore?

@dmaicher
Copy link
Owner

because you are not supporting DBAL 2 anymore?

? This is deprecated in DBAL 3 and removed in DBAL 4.

See https://github.com/doctrine/dbal/blob/3.5.x/src/Connection.php#L404

We cannot just remove implements VersionAwarePlatformDriver. This would change behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants