mirror of
https://github.com/predis/predis.git
synced 2026-09-11 10:57:00 +00:00
Fix operator precedence (#1405)
&& binds tighter than ?? so a parentheses is needed for desired result
This commit is contained in:
@@ -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'])
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user