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

fix issue 196 by relying on dama.keep_static param #197

Closed
wants to merge 1 commit into from

Conversation

dmaicher
Copy link
Owner

@dmaicher dmaicher commented Jan 26, 2022

Fixes #196

We should not rely on the driver instance as it could be decorated

@@ -9,7 +9,9 @@ class PostConnectEventListener
public function postConnect(ConnectionEventArgs $args): void
{
$connection = $args->getConnection();
if (!$connection->getDriver() instanceof StaticDriver) {
$params = $connection->getParams();
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfortunately Connection::getParams() was marked @internal on DBAL. Will discuss it.

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

Successfully merging this pull request may close these issues.

Combining Sentry with this bundle breaks test when data is inserted
1 participant