Skip to content

Commit 8a78549

Browse files
committed
fixed psalm typing
1 parent 040a1fc commit 8a78549

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Bolt/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
final class Session implements SessionInterface
4040
{
4141
private SessionConfiguration $config;
42-
/** @var ConnectionPoolInterface<Bolt> */
42+
/** @var ConnectionPoolInterface<StreamSocket> */
4343
private ConnectionPoolInterface $pool;
4444
/** @var FormatterInterface<T> */
4545
private FormatterInterface $formatter;

src/Neo4j/Neo4jConnectionPool.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,11 @@ private function routingTable(DriverInterface $driver): RoutingTable
8888
/** @var iterable<array{addresses: list<string>, role:string}> $values */
8989
$values = [];
9090
foreach ($response as $server) {
91-
/** @psalm-suppress InvalidArrayAssignment */
91+
/**
92+
* @psalm-suppress InvalidArrayAssignment
93+
*
94+
* @var array{addresses: list<string>, role:string}
95+
*/
9296
$values[] = ['addresses' => $server->get('addresses'), 'role' => $server->get('role')];
9397
}
9498

0 commit comments

Comments
 (0)