Use static closures (#1652)

This commit is contained in:
Till Krüss
2026-03-09 13:30:46 -07:00
committed by GitHub
parent f57dfcbeea
commit 87390e7381
59 changed files with 253 additions and 249 deletions
+1 -1
View File
@@ -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;
});
}