Skip to content

Laravel 6 compatibility #86

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 1 commit into from
Sep 17, 2019
Merged

Laravel 6 compatibility #86

merged 1 commit into from
Sep 17, 2019

Conversation

emilsundberg
Copy link

Makes it possible to install this package on Laravel 6

@BrandonSurowiec
Copy link

@emilsundberg To make the tests pass RollbarTest.php needs to be updated to use the new signature:

protected function setUp(): void {

}

@BrandonSurowiec
Copy link

@ArturMoczulski Laravel 6 was released yesterday. Can we get this PR merged in once ready and a new release tagged?

@jonnott
Copy link

jonnott commented Sep 5, 2019

+1 for merging this so I can update to L6.0 :)

@emilsundberg
Copy link
Author

While you wait it is possible to add my repository in your composer.json

"repositories": [ 
      {
          "type": "vcs",
          "url": "[email protected]:emilsundberg/rollbar-php-laravel.git"
      }
],

and

"require": {
        [..]
        "rollbar/rollbar-laravel": "dev-laravel-6-compatibility"
},

@jonnott
Copy link

jonnott commented Sep 5, 2019

While you wait it is possible to add my repository in your composer.json

Amazing - that's exactly what I've done :)

@jonnott
Copy link

jonnott commented Sep 5, 2019

While you wait it is possible to add my repository in your composer.json

Amazing - that's exactly what I've done :)

@emilsundberg However, I now have this problem rollbar/rollbar-php#460
...due to composer resolving to v1.8.0 of https://github.com/rollbar/rollbar-php (which is 'broken')

Seems like we really need Rollbar to pull their finger out and update both these libs :(

@emilsundberg
Copy link
Author

@jonnott A temporary fix I use is to requiring monolog/monolog ^1 in my composer.json

"require": {
   [..]
   "monolog/monolog": "^1"
},

@jonnott
Copy link

jonnott commented Sep 9, 2019 via email

@swilla
Copy link

swilla commented Sep 13, 2019

There is anything I can do to help get this PR in shape where it can be merged?

@jonnott
Copy link

jonnott commented Sep 13, 2019

There is anything I can do to help get this PR in shape where it can be merged?

There is nothing further that needs doing. The Codacy/PR Quality Review is objecting to the Arr::pull() calls - but that's the only way to do it now that the global helper equivalent array_pull() has been removed from Laravel.

Someone from Rollbar just needs to merge the PR, but they're ignoring these threads.

I've even tried asking Rollbar support directly, but to no avail so far.

Please, everyone who needs this merged to update to L6.0, just open a support ticket to Rollbar about it until they pay attention!

@jonnott
Copy link

jonnott commented Sep 13, 2019

Bugsnag are all over L6.0 compatibility already .. https://github.com/bugsnag/bugsnag-laravel/releases

Time to jump ship?

@wyoumans
Copy link

would love to see this merged.

@jonnott
Copy link

jonnott commented Sep 16, 2019

Think you’ll need to open a support ticket to Rollbar support for them to pay any attention whatsoever..

@ArturMoczulski
Copy link

thanks @jonnott for being very adamant on merging this. I'm in the process of getting this released. Should be out soon

@jonnott
Copy link

jonnott commented Sep 16, 2019

Great, thanks. Having monolog ^2.0 support in rollbar-php would also be a bonus.

rollbar/rollbar-php#460

@Arkanius
Copy link

Is this package abandoned? As @jonnott said, time to jump ship?

@emilsundberg
Copy link
Author

I got an email from their support yesterday:

Our development team is currently in the process of merging this PR. I can provide you with updates as they become available. We appreciate your patience as we work on this.

@ArturMoczulski
Copy link

ArturMoczulski commented Sep 17, 2019

@jonnott I'll do my best to have the monolog ^2.0 support released as well

@Arkanius as you can see by the popularity of the thread, very much alive :)

@Arkanius
Copy link

I'm not sure about ir. This thread has almost 30 days. Some people already forked the repo and added the compatibility. I was just thinking about to drop rollbar and go to another service (sentry, bugsnag)

@jonnott
Copy link

jonnott commented Sep 17, 2019

I'm not sure about ir. This thread has almost 30 days. Some people already forked the repo and added the compatibility. I was just thinking about to drop rollbar and go to another service (sentry, bugsnag)

@brianr .. the people are voting with their feet :)

@ArturMoczulski ArturMoczulski merged commit c678639 into rollbar:master Sep 17, 2019
@jonnott
Copy link

jonnott commented Sep 18, 2019

So now it's merged .. how does it get released?

@jopacicdev
Copy link

Hi @ArturMoczulski, when can we expect this to be released?

@ArturMoczulski
Copy link

@jopacicdev working right now on getting it released asap

@jonnott
Copy link

jonnott commented Sep 20, 2019

@jopacicdev working right now on getting it released asap

What's stopping it? Does somebody from Rollbar Inc. need to approve it?

@ArturMoczulski
Copy link

ArturMoczulski commented Sep 20, 2019

As you know there are Laravel 6 and Monolog 2 PRs that have been merged. I'm working on having both of those released, but I also need to make sure that the release passes on PHP >= 5.6. Unfortunately, currently, our builds are not passing due to incompatibility between PHP versions, monolog versions and laravel versions. I'm working on making everything green across the build matrix in Travis CI, but it's more complicated than just releasing the packages. I need to fix incompatibilities first.

@jonnott
Copy link

jonnott commented Sep 20, 2019

@jonnott I'll do my best to have the monolog ^2.0 support released as well

Put in a PR for that here: rollbar/rollbar-php#468

@ArturMoczulski
Copy link

Yes, and as you can see in Travis that PR is not passing the builds. So I need to fix the problems with it, as well as problems with the Laravel 6 and PHP versions before I can get it out to the public.

I assure you it's a high priority item we are working on and I'm doing my best to get it out to you as soon as I can

@jonnott
Copy link

jonnott commented Sep 20, 2019

monolog 1.x requires PHP >=5.3.0

monolog 2.x requires PHP >= 7.2

.. so if a package supports either monolog 1.x OR 2.x, that should all work out, right?

@ArturMoczulski
Copy link

Monolog 2 is backward incompatible. That's why it's a major bump version. It means that we need to adjust our code in the SDK to support Monolog 2 while also keeping support for Monolog 1 conditionally depending on what version you are using.

There are also other problems with the builds I'm trying to figure out. There seems to be an incompatibility between Mockery and some of the Monolog handler definitions currently.

@ArturMoczulski
Copy link

ArturMoczulski commented Sep 20, 2019

@jonnott having that said I hugely appreciate your level of effort and engagement in the community behind our SDKs 😄 it's great to see you can't wait to put your hands on the new release. I'll be publishing it as soon as it's ready

@drbyte
Copy link

drbyte commented Sep 30, 2019

Why not just tag 5.0 which forces the same supported PHP version/s (and monolog) as Laravel 6.0 does?
And then leave the older 4.x/etc versions to work with older PHP and older monolog dependencies?

@ArturMoczulski
Copy link

@drbyte that might be the best solution, I've been looking into feasibility of doing this

@ghostal
Copy link

ghostal commented Sep 30, 2019

Sorry, deleted my previous comment here having found that the issue thread was more recently active.

Was just bemused at requiring tests to pass for PHP >=5.6 when it's no longer supported and the composer.json for 4.x requires PHP >=7.0.

I gather though that Monolog 2.x, as required by Laravel 6, isn't currently supported, and that that's what is currently holding things up. Is that correct?

@ArturMoczulski
Copy link

Yes. This merge is dependent on a bigger update to the rollbar-php repo which has been a big task to do and is still not completed. However, it is my number priority right now and should I be able to release very soon. Either by maintaining our current approach of fully supporting PHP >= 5.3 or no. This is currently in debate.

@jonnott
Copy link

jonnott commented Sep 30, 2019 via email

@jonnott
Copy link

jonnott commented Sep 30, 2019 via email

@ArturMoczulski
Copy link

The differences in between Monolog 1 and Monolog 2 are based on language syntax changes which make the files imparsable by both PHP 5 and PHP 7. Otherwise it would a great suggestion @jonnott

I'm putting together the release right now though, so should be out in a couple of hours

@jonnott
Copy link

jonnott commented Oct 2, 2019 via email

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.

10 participants