Skip to content

Commit

Permalink
fix expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Nov 14, 2024
1 parent 3543815 commit 0cd9db6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/default/data/dibi.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function fetch(\Dibi\Connection $connection)
public function fetchAll(\Dibi\Connection $connection)
{
$row = $connection->fetchAll('SELECT email, adaid FROM ada');
assertType('array<int, array{email: string, adaid: int<-32768, 32767>}>', $row);
assertType('list<array{email: string, adaid: int<-32768, 32767>}>', $row);
}

public function fetchPairs(\Dibi\Connection $connection)
Expand Down
2 changes: 1 addition & 1 deletion tests/default/data/runMysqlQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class Foo
public function run(string $prodHostname, DbCredentials $dbCredentials)
{
$prodDomains = runMysqlQuery('SELECT cmsdomainid FROM cmsdomain WHERE url ="'.$prodHostname.'" and standard=1', $dbCredentials);
assertType('array<int, array<int, string>>|null', $prodDomains);
assertType('list<array<int, string>>|null', $prodDomains);
// XXX should be more precise, when we would be smarter in query parsing
// assertType('array<int, array{string}>|null', $prodDomains);
}
Expand Down

0 comments on commit 0cd9db6

Please sign in to comment.