Skip to content

Commit cbee49d

Browse files
committed
fix: update bolt to newest version and revert changes from previous commit
1 parent 03f343d commit cbee49d

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/Neo4j/Neo4jConnectionPool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private function routingTable(BoltConnection $connection, SessionConfiguration $
186186
/** @var array{rt: array{servers: list<array{addresses: list<string>, role:string}>, ttl: int}} $route */
187187
$route = $bolt->route([], [], ['db' => $config->getDatabase()])
188188
->getResponse()
189-
->content;
189+
->getContent();
190190

191191
['servers' => $servers, 'ttl' => $ttl] = $route['rt'];
192192
$ttl += time();

tests/Unit/BoltFactoryTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
namespace Laudis\Neo4j\Tests\Unit;
1515

1616
use Bolt\connection\IConnection;
17-
use Bolt\protocol\ServerState;
17+
use Bolt\enum\ServerState;
1818
use Bolt\protocol\V5;
1919
use Laudis\Neo4j\Authentication\Authenticate;
2020
use Laudis\Neo4j\Bolt\BoltConnection;
@@ -43,9 +43,8 @@ protected function setUp(): void
4343
$protocolFactory = $this->createMock(ProtocolFactory::class);
4444
$protocolFactory->method('createProtocol')
4545
->willReturnCallback(static function (IConnection $connection) {
46-
$serverState = new ServerState();
47-
$serverState->set(ServerState::READY);
48-
$protocol = new V5(1, $connection, $serverState);
46+
$protocol = new V5(1, $connection);
47+
$protocol->serverState = ServerState::READY;
4948

5049
return [
5150
$protocol,

tests/Unit/ParameterHelperTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ public function testDateTime(): void
165165
$date = ParameterHelper::asParameter(new DateTime('now', new DateTimeZone('Europe/Brussels')), ConnectionProtocol::BOLT_V44());
166166

167167
self::assertInstanceOf(DateTimeZoneId::class, $date);
168-
self::assertEquals('Europe/Brussels', $date->tz_id());
168+
self::assertEquals('Europe/Brussels', $date->tz_id);
169169
}
170170

171171
public function testDateTime5(): void

0 commit comments

Comments
 (0)