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 25c9474 commit a6e1bf3Copy full SHA for a6e1bf3
protocol/V4_1.php
@@ -18,7 +18,7 @@ class V4_1 extends V4
18
19
public function hello(...$args): bool
20
{
21
- if (count($args) < 4) {
+ if (count($args) != 5) {
22
Bolt::error('Wrong arguments count');
23
return false;
24
}
@@ -29,7 +29,7 @@ public function hello(...$args): bool
29
'scheme' => $args[1],
30
'principal' => $args[2],
31
'credentials' => $args[3],
32
- 'routing' => !empty($args[4]) ? (object)$args[4] : null
+ 'routing' => is_array($args[4]) ? (object)$args[4] : null
33
]);
34
} catch (Exception $ex) {
35
Bolt::error($ex->getMessage());
0 commit comments