diff --git a/src/Integrations/BindsWorker.php b/src/Integrations/BindsWorker.php index e3261d4..a2aa98d 100644 --- a/src/Integrations/BindsWorker.php +++ b/src/Integrations/BindsWorker.php @@ -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 ]; /** @@ -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();