horizon:terminate fails with "Call to a member function all() on string"

Created on 31 Oct 2018  路  3Comments  路  Source: laravel/horizon

  • Laravel 5.6.39
  • Horizon 1.4.1
  • PHP 7.2

When running artisan horizon:terminate, I get this:
capture d ecran le 2018-10-31 a 10 02 40

After some investigation, I found that a package I am using, Hoa\Ruler is causing a conflict on the resolve() global function now used in Horizon 1.4.1 TerminateCommand at line 44.

The term resolve being rather common, and using global namespaces being what it is, are there no better way of resolving the dependency?

bug

Most helpful comment

I'm sending in a fix for this.

All 3 comments

I believe it was broken recently with https://github.com/laravel/horizon/commit/2270812c2dcb1524ae4f39bfd488b3773e9f6613

Interestingly, this incompatibility can up in the past and there was a dedicated PR to fix it but the reason I guess was lost over time: https://github.com/laravel/horizon/pull/272

I'm sending in a fix for this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tillkruss picture tillkruss  路  6Comments

lasselehtinen picture lasselehtinen  路  3Comments

crash13override picture crash13override  路  5Comments

dmitryuk picture dmitryuk  路  3Comments

meathanjay picture meathanjay  路  3Comments