Fix operator precedence (#1405)

&& binds tighter than ?? so a parentheses is needed for desired result
This commit is contained in:
Tobias Bengtsson
2023-09-26 18:11:00 +02:00
committed by GitHub
parent 577bd39872
commit 5c8b19ebaa
+1 -1
View File
@@ -175,7 +175,7 @@ class Factory implements FactoryInterface
);
}
if ($parameters->client_info ?? false && !$connection instanceof RelayConnection) {
if (($parameters->client_info ?? false) && !$connection instanceof RelayConnection) {
$connection->addConnectCommand(
new RawCommand('CLIENT', ['SETINFO', 'LIB-NAME', 'predis'])
);