Skip to content

Commit 46cc4a3

Browse files
authoredJul 6, 2023
Merge pull request #93 from nadge/feature/laravel-10-compatibility
Feature/laravel 10 compatibility
2 parents 25943b1 + cbca1cc commit 46cc4a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/Integrations/BindsWorker.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ trait BindsWorker
2222
protected $workerImplementations = [
2323
'5\.[345678]\.\d+' => Laravel53Worker::class,
2424
'[67]\.\d+\.\d+' => Laravel6Worker::class,
25-
'[89]\.\d+\.\d+' => Laravel8Worker::class
25+
'([89]|10)\.\d+\.\d+' => Laravel8Worker::class
2626
];
2727

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

0 commit comments

Comments
 (0)
Please sign in to comment.