mirror of
https://github.com/predis/predis.git
synced 2026-09-26 19:25:45 +00:00
Use static closures (#1652)
This commit is contained in:
@@ -537,7 +537,7 @@ class RedisStrategyTest extends PredisTestCase
|
||||
];
|
||||
|
||||
if (isset($type)) {
|
||||
$commands = array_filter($commands, function (string $expectedType) use ($type) {
|
||||
$commands = array_filter($commands, static function (string $expectedType) use ($type) {
|
||||
return $expectedType === $type;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user