Skip to content

Commit d5aad18

Browse files
authored
Fixed implicitly nullable params (#6616)
1 parent e914d4f commit d5aad18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/MultiExec.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ trait MultiExec
2323
*
2424
* @return array|Redis
2525
*/
26-
public function pipeline(callable $callback = null)
26+
public function pipeline(?callable $callback = null)
2727
{
2828
$pipeline = $this->__call('pipeline', []);
2929

@@ -35,7 +35,7 @@ public function pipeline(callable $callback = null)
3535
*
3636
* @return array|Redis|RedisCluster
3737
*/
38-
public function transaction(callable $callback = null)
38+
public function transaction(?callable $callback = null)
3939
{
4040
$transaction = $this->__call('multi', []);
4141

0 commit comments

Comments
 (0)