Skip to content

Commit cbca1cc

Browse files
committed
Convert app version to int before confirming. Its currently doing a string comparison meaning "9.0.0" is greater than 6 but "10.0.0" is not as it begins with a 1. Converting to int changes "10.0.0" to 10 allowing it to pass the condition correctly
1 parent de8822b commit cbca1cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Integrations/BindsWorker.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -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)