File tree Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Expand file tree Collapse file tree 5 files changed +17
-17
lines changed Original file line number Diff line number Diff line change 11# Bolt
22Bolt protocol library over TCP socket. Bolt protocol is created and in use for communication with [ Neo4j] ( https://neo4j.com/ ) Graph database. The documentation is available at [ https://7687.org/ ] ( https://7687.org/ ) . This library is aimed to be low level and keep up with protocol messages architecture and specifications.
33
4- ![ ] ( https://img.shields.io/badge/phpunit-passed-success ) ![ ] ( https://img.shields.io/badge/coverage-87 %25-green ) ![ ] ( https://img.shields.io/github/stars/stefanak-michal/Bolt ) ![ ] ( https://img.shields.io/packagist/dt/stefanak-michal/bolt ) ![ ] ( https://img.shields.io/github/v/release/stefanak-michal/bolt ) ![ ] ( https://img.shields.io/github/commits-since/stefanak-michal/bolt/latest )
4+ ![ ] ( https://img.shields.io/badge/phpunit-passed-success ) ![ ] ( https://img.shields.io/badge/coverage-88 %25-green ) ![ ] ( https://img.shields.io/github/stars/stefanak-michal/Bolt ) ![ ] ( https://img.shields.io/packagist/dt/stefanak-michal/bolt ) ![ ] ( https://img.shields.io/github/v/release/stefanak-michal/bolt ) ![ ] ( https://img.shields.io/github/commits-since/stefanak-michal/bolt/latest )
55
66## [ Version support] ( https://github.com/stefanak-michal/Bolt/wiki/Version-support )
77## [ Requirements] ( https://github.com/stefanak-michal/Bolt/wiki/Requirements )
Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ public function discardAll(...$args): bool;
4242
4343 /**
4444 * Send RESET message
45- * @param mixed ...$args
4645 */
47- public function reset (... $ args ): bool ;
46+ public function reset (): bool ;
4847
4948}
Original file line number Diff line number Diff line change @@ -120,11 +120,10 @@ private function ackFailure(): bool
120120 }
121121
122122 /**
123- * @param mixed ...$args
124123 * @return bool
125124 * @throws Exception
126125 */
127- public function reset (... $ args ): bool
126+ public function reset (): bool
128127 {
129128 $ this ->write ($ this ->packer ->pack (0x0F ));
130129 $ this ->read ($ signature );
Original file line number Diff line number Diff line change @@ -81,11 +81,10 @@ public function run(...$args): array
8181 }
8282
8383 /**
84- * @param mixed ...$args
8584 * @return bool
8685 * @throws Exception
8786 */
88- public function reset (... $ args ): bool
87+ public function reset (): bool
8988 {
9089 $ this ->write ($ this ->packer ->pack (0x0F ));
9190 return true ;
@@ -110,11 +109,10 @@ public function begin(...$args): bool
110109 }
111110
112111 /**
113- * @param mixed ...$args
114112 * @return bool
115113 * @throws Exception
116114 */
117- public function commit (... $ args ): bool
115+ public function commit (): bool
118116 {
119117 $ this ->write ($ this ->packer ->pack (0x12 ));
120118 $ output = $ this ->read ($ signature );
@@ -128,11 +126,10 @@ public function commit(...$args): bool
128126 }
129127
130128 /**
131- * @param mixed ...$args
132129 * @return bool
133130 * @throws Exception
134131 */
135- public function rollback (... $ args ): bool
132+ public function rollback (): bool
136133 {
137134 $ this ->write ($ this ->packer ->pack (0x13 ));
138135 $ output = $ this ->read ($ signature );
@@ -146,10 +143,9 @@ public function rollback(...$args): bool
146143 }
147144
148145 /**
149- * @param mixed ...$args
150146 * @throws Exception
151147 */
152- public function goodbye (... $ args )
148+ public function goodbye ()
153149 {
154150 $ this ->write ($ this ->packer ->pack (0x02 ));
155151 }
Original file line number Diff line number Diff line change 1717 * @covers \Bolt\connection\StreamSocket
1818 * @covers \Bolt\PackStream\v1\Packer
1919 * @covers \Bolt\PackStream\v1\Unpacker
20+ * @covers \Bolt\protocol\V1
21+ * @covers \Bolt\protocol\V2
22+ * @covers \Bolt\protocol\V3
23+ * @covers \Bolt\protocol\V4
24+ * @covers \Bolt\protocol\V4_1
25+ * @covers \Bolt\protocol\V4_2
26+ * @covers \Bolt\protocol\V4_3
27+ * @covers \Bolt\protocol\V4_4
2028 *
2129 * @package Bolt\tests
2230 * @requires PHP >= 7.1
@@ -165,20 +173,18 @@ private function formatParameter(Bolt $bolt, string $name): string
165173 return self ::$ parameterType ? ('{ ' . $ name . '} ' ) : ('$ ' . $ name );
166174 }
167175
168-
169-
170176 /**
171177 * @depends testHello
172178 * @param Bolt $bolt
173179 */
174180 public function testRoute (Bolt $ bolt ): void
175181 {
176182 $ version = $ bolt ->getProtocolVersion ();
183+ $ route = $ bolt ->route ();
177184 if ($ version >= 4.3 ) {
178- $ route = $ bolt ->route ();
179185 self ::assertNotEmpty ($ route );
180186 } else {
181- self ::assertNull ($ bolt -> route () );
187+ self ::assertNull ($ route );
182188 }
183189 }
184190}
You can’t perform that action at this time.
0 commit comments