Skip to content

Commit 82e3e22

Browse files
committed
fixed static analysis
1 parent ada2637 commit 82e3e22

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

tests/Integration/ClientIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ final class ClientIntegrationTest extends TestCase
3030
private ClientInterface $client;
3131

3232
/**
33-
* @return iterable<list<string>>
33+
* @return non-empty-array<array-key, array{0: string}>
3434
*/
3535
public function connectionAliases(): iterable
3636
{

tests/Integration/ConsistencyTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313

1414
namespace Laudis\Neo4j\Tests\Integration;
1515

16+
use Ds\Map;
17+
use Ds\Vector;
1618
use Laudis\Neo4j\ClientBuilder;
1719
use Laudis\Neo4j\Contracts\ClientInterface;
1820
use Laudis\Neo4j\Databags\Statement;
1921
use PHPUnit\Framework\TestCase;
2022

2123
final class ConsistencyTest extends TestCase
2224
{
25+
/** @var ClientInterface<Vector<Map<string, array|scalar|null>>> */
2326
private ClientInterface $client;
2427

2528
protected function setUp(): void

tests/Integration/TransactionIntegrationTest.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,21 @@ public static function setUpBeforeClass(): void
2929
putenv('RES_OPTIONS=retrans:1 retry:1 timeout:1 attempts:1');
3030
}
3131

32-
public function makeTransactions(): iterable
32+
/**
33+
* @return non-empty-list<array{0: UnmanagedTransactionInterface<Vector<Map<string, scalar|array|null>>>}>
34+
*/
35+
public function makeTransactions(): array
3336
{
3437
$client = ClientBuilder::create()
3538
->addBoltConnection('bolt', 'bolt://neo4j:test@neo4j')
3639
->addHttpConnection('http', 'http://neo4j:test@neo4j')
3740
->build();
3841

42+
/** @var non-empty-list<array{0: UnmanagedTransactionInterface<Vector<Map<string, scalar|array|null>>>}> */
3943
$tbr = [];
4044
$tbr[] = [$client->openTransaction(null, 'bolt')];
4145
$tbr[] = [$client->openTransaction(null, 'http')];
4246

43-
/** @var iterable<array> */
4447
return $tbr;
4548
}
4649

0 commit comments

Comments
 (0)