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: check driver is Cake Driver before trying to access #29

Merged
merged 1 commit into from
Dec 29, 2024

Conversation

Liamb17
Copy link
Contributor

@Liamb17 Liamb17 commented Dec 28, 2024

I’ve discovered an error when using CakePHP 5 and using elastic search

This results in the below error:
Fatal Error: Uncaught Error: Call to undefined method Elastica\Client::getLogger() in /vendor/lordsimal/cakephp-sentry/src/Http/SentryClient.php:62

This pull request ensures that it checks the Driver is actually a Driver before it tries to access this which is the same way CakePHP itself is doing.

@LordSimal
Copy link
Owner

Thanks, I will fix stan after this is merged

@LordSimal LordSimal merged commit ecdbd4b into LordSimal:3.x Dec 29, 2024
7 of 8 checks passed
@LordSimal LordSimal mentioned this pull request Dec 29, 2024
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.

2 participants