Skip to content

Commit

Permalink
Merge pull request #93 from nadge/feature/laravel-10-compatibility
Browse files Browse the repository at this point in the history
Feature/laravel 10 compatibility
  • Loading branch information
dusterio authored Jul 6, 2023
2 parents 25943b1 + cbca1cc commit 46cc4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Integrations/BindsWorker.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ trait BindsWorker
protected $workerImplementations = [
'5\.[345678]\.\d+' => Laravel53Worker::class,
'[67]\.\d+\.\d+' => Laravel6Worker::class,
'[89]\.\d+\.\d+' => Laravel8Worker::class
'([89]|10)\.\d+\.\d+' => Laravel8Worker::class
];

/**
Expand All @@ -44,7 +44,7 @@ protected function findWorkerClass($version)
protected function bindWorker()
{
// If Laravel version is 6 or above then the worker bindings change. So we initiate it here
if ($this->app->version() >= 6) {
if ((int) $this->app->version() >= 6) {
$this->app->singleton(Worker::class, function () {
$isDownForMaintenance = function () {
return $this->app->isDownForMaintenance();
Expand Down

0 comments on commit 46cc4a3

Please sign in to comment.