We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 964925e commit 15c4a63Copy full SHA for 15c4a63
protocol/V4.php
@@ -27,7 +27,7 @@ public function pull(...$args)
27
$args[0]['n'] = $args[0]['n'] ?? -1;
28
29
try {
30
- $msg = $this->packer->pack(0x3F, (object)($args[0] ?? []));
+ $msg = $this->packer->pack(0x3F, (object)$args[0]);
31
} catch (Exception $ex) {
32
Bolt::error($ex->getMessage());
33
return false;
@@ -61,7 +61,7 @@ public function discard(...$args): bool
61
62
63
64
- $msg = $this->packer->pack(0x2F, (object)($args[0] ?? []));
+ $msg = $this->packer->pack(0x2F, (object)$args[0]);
65
66
67
0 commit comments