diff --git a/src/Illuminate/Queue/DatabaseQueue.php b/src/Illuminate/Queue/DatabaseQueue.php index d38ed1dd1fe7..7fb9ff9cbabf 100644 --- a/src/Illuminate/Queue/DatabaseQueue.php +++ b/src/Illuminate/Queue/DatabaseQueue.php @@ -261,7 +261,7 @@ protected function getLockForPopping() if (Str::of($databaseVersion)->contains('MariaDB')) { $databaseEngine = 'mariadb'; $databaseVersion = Str::before(Str::after($databaseVersion, '5.5.5-'), '-'); - } else if (Str::of($databaseVersion)->contains('vitess')) { + } elseif (Str::of($databaseVersion)->contains('vitess')) { $databaseEngine = 'vitess'; $databaseVersion = Str::before($databaseVersion, '-'); }