Skip to content

DoctrineSubscriber throw deprecation when Driver is wrapped with another class #184

@oleg-andreyev

Description

@oleg-andreyev
Q A
auditor version 2.4.7
PHP version 8.1
Database MySQL

Summary

I have both Auditor and Sentry packages.
Sentry also has a middleware that wraps connection with a special class.
Depending on priority of this middlewares DoctrineSubscriber may trigger a deprecation because $driver is not a DHDriver, but actually it's wrapped.

Current behavior

trigger deprecation when it's actually should not

How to reproduce

Install both damienharper/auditor-bundle and sentry/sentry-symfony

Expected behavior

correct detection of DHDriver

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfeedback neededFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions