Skip to content

Commit 964925e

Browse files
added required extra parameter for discard
1 parent 263b7f3 commit 964925e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

protocol/V4.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ public function discardAll(...$args): bool
5757

5858
public function discard(...$args): bool
5959
{
60+
// The n specifies how many records to fetch. n=-1 will fetch all records.
61+
$args[0]['n'] = $args[0]['n'] ?? -1;
62+
6063
try {
6164
$msg = $this->packer->pack(0x2F, (object)($args[0] ?? []));
6265
} catch (Exception $ex) {

0 commit comments

Comments
 (0)