File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ final class ClientIntegrationTest extends TestCase
30
30
private ClientInterface $ client ;
31
31
32
32
/**
33
- * @return iterable<list< string> >
33
+ * @return non-empty-array<array-key, array{0: string} >
34
34
*/
35
35
public function connectionAliases (): iterable
36
36
{
Original file line number Diff line number Diff line change 13
13
14
14
namespace Laudis \Neo4j \Tests \Integration ;
15
15
16
+ use Ds \Map ;
17
+ use Ds \Vector ;
16
18
use Laudis \Neo4j \ClientBuilder ;
17
19
use Laudis \Neo4j \Contracts \ClientInterface ;
18
20
use Laudis \Neo4j \Databags \Statement ;
19
21
use PHPUnit \Framework \TestCase ;
20
22
21
23
final class ConsistencyTest extends TestCase
22
24
{
25
+ /** @var ClientInterface<Vector<Map<string, array|scalar|null>>> */
23
26
private ClientInterface $ client ;
24
27
25
28
protected function setUp (): void
Original file line number Diff line number Diff line change @@ -29,18 +29,21 @@ public static function setUpBeforeClass(): void
29
29
putenv ('RES_OPTIONS=retrans:1 retry:1 timeout:1 attempts:1 ' );
30
30
}
31
31
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
33
36
{
34
37
$ client = ClientBuilder::create ()
35
38
->addBoltConnection ('bolt ' , 'bolt://neo4j:test@neo4j ' )
36
39
->addHttpConnection ('http ' , 'http://neo4j:test@neo4j ' )
37
40
->build ();
38
41
42
+ /** @var non-empty-list<array{0: UnmanagedTransactionInterface<Vector<Map<string, scalar|array|null>>>}> */
39
43
$ tbr = [];
40
44
$ tbr [] = [$ client ->openTransaction (null , 'bolt ' )];
41
45
$ tbr [] = [$ client ->openTransaction (null , 'http ' )];
42
46
43
- /** @var iterable<array> */
44
47
return $ tbr ;
45
48
}
46
49
You can’t perform that action at this time.
0 commit comments