-
Notifications
You must be signed in to change notification settings - Fork 36
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
Monolog 3 support #117
Comments
Hi there all. Thanks for this package, much appreciated. I was wondering whether there was there any update regarding an upgrade to Monolog 3? Laravel 10 now ships with Monolog 3. Also is this repo still maintained? There doesn't seem to have been an update for a while. |
Sperling-0
added a commit
to wmde/phpbrake
that referenced
this issue
Jan 25, 2024
This fixes airbrake#117
Would be great to get this, especially as there is an open PR that looks like it does the upgrade. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Monolog 3 has changed the signature of the
AbstractProcessingHandler::write
method from an array to a record object, leading to type errors and static analysis errors.If you want to stay backwards-compatible, you could avoid typing
write
method and accept both arrays or records.Monolog\LogRecord
implements theArrayAccess
interface, so the method body can stay the sameThe text was updated successfully, but these errors were encountered: