diff --git a/tests/default/DbaInferenceTest.php b/tests/default/DbaInferenceTest.php index eb18311b..0aa792d1 100644 --- a/tests/default/DbaInferenceTest.php +++ b/tests/default/DbaInferenceTest.php @@ -20,7 +20,6 @@ public function dataFileAsserts(): iterable yield from $this->gatherAssertTypes(__DIR__ . '/data/doctrine-dbal.php'); yield from $this->gatherAssertTypes(__DIR__ . '/data/inference-placeholder.php'); - yield from $this->gatherAssertTypes(__DIR__ . '/data/bug-680.php'); } // make sure class constants can be resolved diff --git a/tests/default/data/bug-680.php b/tests/default/data/bug-680.php deleted file mode 100644 index a648a8be..00000000 --- a/tests/default/data/bug-680.php +++ /dev/null @@ -1,23 +0,0 @@ -connection - ->fetchAssociative( - '#cart-persister::load - SELECT email, adaid, "xy" as b FROM ada WHERE adaid = :token', - ['token' => $token], - ); - assertType('array{email: string, adaid: int<-32768, 32767>, b: string}|false', $content); - } -} diff --git a/tests/default/data/doctrine-dbal.php b/tests/default/data/doctrine-dbal.php index d02eb882..b1954d42 100644 --- a/tests/default/data/doctrine-dbal.php +++ b/tests/default/data/doctrine-dbal.php @@ -228,4 +228,15 @@ public function customTypeParameters(Connection $conn) ); assertType('Doctrine\DBAL\Result', $result); } + + public function doFoo(Connection $conn, string $token): void + { + $content = $conn + ->fetchAssociative( + '#cart-persister::load + SELECT email, adaid FROM ada WHERE adaid = :token', + ['token' => $token], + ); + assertType('array{email: string, adaid: int<-32768, 32767>}|false', $content); + } }