Skip to content

Commit 6bb5d7a

Browse files
Fixed bug. Clean up code.
1 parent 5a75e78 commit 6bb5d7a

File tree

4 files changed

+1
-4
lines changed

4 files changed

+1
-4
lines changed

src/protocol/V3.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class V3 extends V2
2323
*/
2424
public function init(...$args): array
2525
{
26-
$args[] = null;
2726
return $this->hello(...$args);
2827
}
2928

src/protocol/V4_1.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function hello(...$args): array
2525
throw new PackException('Wrong arguments count');
2626
}
2727

28-
$args[0]['routing'] = array_key_exists('routing', $args[0]) && is_array($args[0]['routing']) ? (object)$args[1] : null;
28+
$args[0]['routing'] = array_key_exists('routing', $args[0]) && is_array($args[0]['routing']) ? (object)$args[0]['routing'] : null;
2929
$this->write($this->packer->pack(0x01, $args[0]));
3030

3131
$signature = 0;

tests/protocol/V1Test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public function testInitFail(V1 $cls)
6060

6161
$this->expectException(\Exception::class);
6262
$this->expectExceptionMessage('some error message (Neo.ClientError.Statement.SyntaxError)');
63-
6463
$cls->init(\Bolt\helpers\Auth::basic('user', 'password'));
6564
}
6665

tests/protocol/V4_1Test.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ public function testHelloFail(V4_1 $cls)
5757

5858
$this->expectException(\Exception::class);
5959
$this->expectExceptionMessage('some error message (Neo.ClientError.Statement.SyntaxError)');
60-
6160
$cls->hello(\Bolt\helpers\Auth::basic('user', 'password'), []);
6261
}
6362

0 commit comments

Comments
 (0)