Skip to content

Commit 15c4a63

Browse files
removed unnecessary null coalesce operator.
1 parent 964925e commit 15c4a63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

protocol/V4.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function pull(...$args)
2727
$args[0]['n'] = $args[0]['n'] ?? -1;
2828

2929
try {
30-
$msg = $this->packer->pack(0x3F, (object)($args[0] ?? []));
30+
$msg = $this->packer->pack(0x3F, (object)$args[0]);
3131
} catch (Exception $ex) {
3232
Bolt::error($ex->getMessage());
3333
return false;
@@ -61,7 +61,7 @@ public function discard(...$args): bool
6161
$args[0]['n'] = $args[0]['n'] ?? -1;
6262

6363
try {
64-
$msg = $this->packer->pack(0x2F, (object)($args[0] ?? []));
64+
$msg = $this->packer->pack(0x2F, (object)$args[0]);
6565
} catch (Exception $ex) {
6666
Bolt::error($ex->getMessage());
6767
return false;

0 commit comments

Comments
 (0)