Skip to content

Commit 263b7f3

Browse files
fixed use of routing variable by documentation
1 parent 8dcbbb9 commit 263b7f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protocol/V4_1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function hello(...$args): bool
2929
'scheme' => $args[1],
3030
'principal' => $args[2],
3131
'credentials' => $args[3],
32-
'routing' => (object)($args[4] ?? [])
32+
'routing' => !empty($args[4]) ? (object)$args[4] : null
3333
]);
3434
} catch (Exception $ex) {
3535
Bolt::error($ex->getMessage());

0 commit comments

Comments
 (0)