mirror of
https://github.com/predis/predis.git
synced 2026-10-28 22:57:54 +00:00
Use static closures (#1652)
This commit is contained in:
@@ -995,7 +995,7 @@ class MasterSlaveReplicationTest extends PredisTestCase
|
||||
|
||||
$replication
|
||||
->getReplicationStrategy()
|
||||
->setCommandReadOnly('exists', function ($cmd) {
|
||||
->setCommandReadOnly('exists', static function ($cmd) {
|
||||
[$arg1] = $cmd->getArguments();
|
||||
|
||||
return $arg1 === 'foo';
|
||||
|
||||
Reference in New Issue
Block a user