Skip to content

Commit 501b633

Browse files
Simplify type casting.
1 parent d764510 commit 501b633

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Client.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,14 +1188,7 @@ public function __call($name, $args)
11881188
break;
11891189
case 'exists':
11901190
// smooth over phpredis-v4 vs earlier difference to match documented credis return results
1191-
if ($response === true)
1192-
{
1193-
$response = 1;
1194-
}
1195-
else if ($response === false)
1196-
{
1197-
$response = 0;
1198-
}
1191+
$response = (int) $response;
11991192
break;
12001193
default:
12011194
$error = $this->redis->getLastError();

0 commit comments

Comments
 (0)