Skip to content

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

Merged
merged 5 commits into from
Feb 24, 2023

Conversation

michaelscola
Copy link

@michaelscola michaelscola commented Feb 15, 2023

Updated the composer.json file to be inline with Laravel 10 - dropped all PHP support except 8.1 and added illuminate/support 10 only

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Maintenance
  • New release

… and updated the handler to use the new interface
@danielmorell danielmorell self-requested a review February 15, 2023 16:21
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"
Copy link
Collaborator

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.

Copy link

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.

Copy link
Author

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

@danielmorell
Copy link
Collaborator

This is related to #141.

@danielmorell danielmorell added this to the v8.0.0 milestone Feb 15, 2023
@jonnott
Copy link

jonnott commented Feb 15, 2023

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

@michaelscola
Copy link
Author

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.

@jonnott
Copy link

jonnott commented Feb 15, 2023

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.

@michaelscola
Copy link
Author

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.

@jonnott
Copy link

jonnott commented Feb 16, 2023

@danielmorell
Copy link
Collaborator

We released v4.0.0-rc of the core rollbar/rollbar library today! It supports Monolog 3.

@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.

@michaelscola
Copy link
Author

michaelscola commented Feb 24, 2023 via email

@michaelscola
Copy link
Author

We released v4.0.0-rc of the core rollbar/rollbar library today! It supports Monolog 3.

@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.

This has been completed

Copy link
Collaborator

@danielmorell danielmorell left a 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.

@danielmorell danielmorell merged commit a88c676 into rollbar:master Feb 24, 2023
@danielmorell
Copy link
Collaborator

I will work on those CI tests this afternoon.

This was referenced Feb 24, 2023
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.

3 participants