Skip to content

Commit 378557a

Browse files
committed
Make method static
1 parent 88d54f6 commit 378557a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Messenger/Bridge/Redis/Transport/Connection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function __construct(array $configuration, array $connectionCredentials =
7171
$auth = null;
7272
}
7373

74-
$initializer = function ($redis) use ($host, $port, $auth, $serializer, $dbIndex) {
74+
$initializer = static function ($redis) use ($host, $port, $auth, $serializer, $dbIndex) {
7575
$redis->connect($host, $port);
7676
$redis->setOption(\Redis::OPT_SERIALIZER, $serializer);
7777

0 commit comments

Comments
 (0)