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

add Laravel 10 support #140

Merged
merged 1 commit into from
Feb 14, 2023
Merged

add Laravel 10 support #140

merged 1 commit into from
Feb 14, 2023

Conversation

jonnott
Copy link

@jonnott jonnott commented Feb 8, 2023

Description of the change

Add Laravel 10 support

Type of change

Maintenance

composer.json Show resolved Hide resolved
@jonnott
Copy link
Author

jonnott commented Feb 13, 2023

@cyrusradfar @danielmorell .. or anyone currently at Rollbar .. can you hear us?

@danielmorell danielmorell self-requested a review February 14, 2023 11:14
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.

Looks good! Thank you for your help @jonnott!!

@danielmorell danielmorell merged commit 27b93b3 into rollbar:master Feb 14, 2023
@jonnott jonnott deleted the patch-1 branch February 14, 2023 11:21
@jonnott
Copy link
Author

jonnott commented Feb 14, 2023

Thanks @danielmorell .. how to we move this to getting a new release tagged, seeing as Laravel 10.0.0 is now released?

@michaelscola
Copy link

I'm not sure how this would be fully working, as Laravel 10 upgrades to Monolog 3 and the current installed version only does Monolog 2. I will be doing a pull request later for both rollbar-php-laravel and rollbar-bar php to address this.

@jonnott
Copy link
Author

jonnott commented Feb 15, 2023

I'm not sure how this would be fully working, as Laravel 10 upgrades to Monolog 3 and the current installed version only does Monolog 2. I will be doing a pull request later for both rollbar-php-laravel and rollbar-bar php to address this.

@michaelscola Do you mean a bit like this PR? rollbar/rollbar-php#600

@michaelscola
Copy link

michaelscola commented Feb 15, 2023

I'm not sure how this would be fully working, as Laravel 10 upgrades to Monolog 3 and the current installed version only does Monolog 2. I will be doing a pull request later for both rollbar-php-laravel and rollbar-bar php to address this.

@michaelscola Do you mean a bit like this PR? rollbar/rollbar-php#600

@jonnott I do mean like that PR, except the Monolog handler in the rollbar-php-laravel package is not going to work properly when Monolog 3 is installed. The write method has an updated typehint for LogRecord instead of array.

@jonnott
Copy link
Author

jonnott commented Feb 15, 2023

@jonnott I do mean like that PR, except the Monolog handler in the rollbar-php-laravel package is not going to work properly when Monolog 3 is installed. The write method has an updated typehint for LogRecord instead of array.

Please do add further commits/PR to resolve that problem.

@jonnott
Copy link
Author

jonnott commented Feb 15, 2023

@danielmorell I think this PR will need to be re-opened and be added to - it'll need a new major version of this package (BC break) and possibly also a new major version of the underlying rollbar-php package.

Laravel 10 requires monolog v3, which rollbar-php doesn't support (it only supports v2), and also as @michaelscola points out, there's a type change to the argument on the monolog/RollbarHandler.php write() method requiring a Monolog\LogRecord instance.

@michaelscola
Copy link

@jonott this absolutely is a breaking change, I'm currently testing the change myself in development and I will add a new pull request once I can confirm everything is working correctly.

@jonnott
Copy link
Author

jonnott commented Feb 15, 2023

@jonott this absolutely is a breaking change, I'm currently testing the change myself in development and I will add a new pull request once I can confirm everything is working correctly.

Looking forward to your PR. I'm assuming you'll also have to PR a breaking change to https://github.com/rollbar/rollbar-php ?

@danielmorell
Copy link
Collaborator

Thank you for pointing out the monolog v3 conflict!

I am just finishing up upgrading https://github.com/rollbar/rollbar-php to support monolog v3. The last part has been updating the test suite. I should have a PR out tomorrow. I will tag this thread once I do.

@jonnott
Copy link
Author

jonnott commented Feb 15, 2023

Thank you for pointing out the monolog v3 conflict!

No worries.

I guess there'll need to be a new (major, breaking) version of the base package tagged before this package can have the dependency raised to that new version before a new major (also breaking) release can be tagged here.

@michaelscola
Copy link

@danielmorell @jonnott I have a new pull request for the updates for Monolog. Some of the properties that you overwrite are Readonly and ->with has unexpected behavior, so it was easier to create a new Instance with the additional data rollbar wants to add. I have tested it and everything appears to be working as expected, look forward to hearing from you with your comments.

@jonnott
Copy link
Author

jonnott commented Mar 21, 2023

@danielmorell Do you know for what reason 8.0.0 isn't showing up on packagist.org yet? It's been tagged for 8 hours now.

@danielmorell
Copy link
Collaborator

@danielmorell Do you know for what reason 8.0.0 isn't showing up on packagist.org yet? It's been tagged for 8 hours now.

Hmm. Let me see if I can fix that.

@jonnott
Copy link
Author

jonnott commented Mar 21, 2023

Hmm. Let me see if I can fix that.

You fixed it! 👍

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.

4 participants