Skip to content

Commit 14e3f3e

Browse files
authored
Update Middleware.php
1 parent e382bae commit 14e3f3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Middleware.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ protected function initDbListen()
219219
protected function tryInitRedisListen(): array
220220
{
221221
static $listened;
222-
if (!class_exists(CommandExecuted::class)) {
222+
if (!class_exists(CommandExecuted::class) || !class_exists(Redis::class)) {
223223
return [];
224224
}
225225
$new_names = [];
@@ -244,7 +244,6 @@ protected function tryInitRedisListen(): array
244244
$new_names[] = $name;
245245
}
246246
} catch (Throwable $e) {
247-
echo $e;
248247
}
249248
return $new_names;
250249
}

0 commit comments

Comments
 (0)