Skip to content

Creation of dynamic property Cake\Database\Log\LoggedQuery::$connection is deprecated #18680

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

Closed
BGehrels opened this issue May 20, 2025 · 1 comment · Fixed by #18684
Closed
Assignees
Labels
Milestone

Comments

@BGehrels
Copy link
Contributor

Description

The ReconnectStrategy:113 adds ['connection' => $this->connection->configName()] as a context to getDriver()->log(). The Driver will then pass this on to $loggedQuery->setContext(). The later will blindly write each context key to a property, but LoggedQuery has no connection property. This then leads to the warning

Creation of dynamic property Cake\Database\Log\LoggedQuery::$connection is deprecated

CakePHP Version

5.2.4

PHP Version

8.4

@markstory
Copy link
Member

markstory commented May 21, 2025

Thank you for a great bug report 👏

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

Successfully merging a pull request may close this issue.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy