-
Notifications
You must be signed in to change notification settings - Fork 40
BC - Updates for Laravel 10 and the MonologHandler #142
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
BC - Updates for Laravel 10 and the MonologHandler #142
Conversation
… and updated the handler to use the new interface
composer.json
Outdated
"php": ">=7.2|^8.0", | ||
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0", | ||
"php": "^8.1", | ||
"illuminate/support": "^10.0", | ||
"rollbar/rollbar": "^2.0 | ^3.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we may want to drop support for rollbar/rollbar
v2 as it is not compatible with PHP 8.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
..and you're right it's not possible to support Laravel 9.x and below, as they only support monolog v2 and not v3.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we may want to drop support for
rollbar/rollbar
v2 as it is not compatible with PHP 8.
Removed older 2x
This is related to #141. |
NB @michaelscola Have you seen Monolog's upgrade guide, where it hints at how you'd possibly support multiple Monolog versions (e.g. 2/3) in terms of LogRecord vs array arguments? https://github.com/Seldaek/monolog/blob/main/UPGRADE.md |
I did, but you are going to run into an issue because older PHP versions don't support union types and thus will break our typehinting. So really the only option I see is a BC. |
Sure .. easiest to just target Monolog 3, PHP 8.1, and Laravel 10 then. |
It does seem like a path of diminishing returns to try and get it working. |
We released @michaelscola Could you bump After that I will make the needed updates to automated test suite, then I think we should be in a position to release a beta version for testing. |
I will go ahead and get this updated today.
…On Thu, Feb 23, 2023 at 5:43 PM Daniel Morell ***@***.***> wrote:
We released v4.0.0-rc of the core rollbar/rollbar library today! It
supports Monolog 3.
@michaelscola <https://github.com/michaelscola> Could you bump
rollbar/rollbar to ^4.0. I also think orchestra/testbench should be
upgraded to v8.
After that I will make the needed updates to automated test suite, then I
think we should be in a position to release a beta version for testing.
—
Reply to this email directly, view it on GitHub
<#142 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH7S4J2TJYRRQBDUKJWHRCTWY7YZJANCNFSM6AAAAAAU5BR2VE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This has been completed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Thank you @michaelscola.
I will work on those CI tests this afternoon. |
Updated the composer.json file to be inline with Laravel 10 - dropped all PHP support except 8.1 and added illuminate/support 10 only