Skip to content

Commit 0687eba

Browse files
Fixed condition to verify number of args
1 parent c181175 commit 0687eba

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

protocol/V1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class V1 extends AProtocol
1717

1818
public function init(...$args): bool
1919
{
20-
if (count($args) != 4) {
20+
if (count($args) < 4) {
2121
Bolt::error('Wrong arguments count');
2222
return false;
2323
}

protocol/V3.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function init(...$args): bool
2222

2323
public function hello(...$args): bool
2424
{
25-
if (count($args) != 4) {
25+
if (count($args) < 4) {
2626
Bolt::error('Wrong arguments count');
2727
return false;
2828
}

protocol/V4_1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class V4_1 extends V4
1717

1818
public function hello(...$args): bool
1919
{
20-
if (count($args) != 5) {
20+
if (count($args) < 5) {
2121
Bolt::error('Wrong arguments count');
2222
return false;
2323
}

0 commit comments

Comments
 (0)