mirror of
https://github.com/predis/predis.git
synced 2026-08-25 13:39:37 +00:00
Use static closures (#1652)
This commit is contained in:
@@ -68,7 +68,7 @@ class NodeConnectionStrategyTest extends TestCase
|
||||
$this->mockConnection
|
||||
->expects($this->once())
|
||||
->method('executeCommand')
|
||||
->with($this->callback(function ($command) {
|
||||
->with($this->callback(static function ($command) {
|
||||
return $command->getId() === 'UNWATCH';
|
||||
}))
|
||||
->willReturn('OK');
|
||||
@@ -95,7 +95,7 @@ class NodeConnectionStrategyTest extends TestCase
|
||||
$this->mockConnection
|
||||
->expects($this->exactly(4))
|
||||
->method('executeCommand')
|
||||
->with($this->callback(function ($command) {
|
||||
->with($this->callback(static function ($command) {
|
||||
return $command->getId() === 'UNWATCH';
|
||||
}))
|
||||
->willReturnOnConsecutiveCalls(
|
||||
|
||||
Reference in New Issue
Block a user