Skip to content

Commit f807d02

Browse files
vlradstakeMacFJA
authored andcommitted
Update Initializer.php
1 parent dbf3e4a commit f807d02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Redis/Initializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static function getRediSearchVersion(Client $client): ?string
142142
try {
143143
$modules = $client->executeRaw('module', 'list') ?? [];
144144
} catch (\Throwable $exception) {
145-
if (strpos($exception->getMessage(), 'unknown command') !== false) {
145+
if (strpos($exception->getMessage(), 'unknown command') === false) {
146146
throw $exception;
147147
}
148148
$modules = [];

0 commit comments

Comments
 (0)