diff --git a/tests/default/DbaInferenceTest.php b/tests/default/DbaInferenceTest.php index bff723c81..76163f646 100644 --- a/tests/default/DbaInferenceTest.php +++ b/tests/default/DbaInferenceTest.php @@ -65,6 +65,7 @@ public function dataFileAsserts(): iterable yield from $this->gatherAssertTypes(__DIR__.'/data/pdo-default-fetch-types.php'); yield from $this->gatherAssertTypes(__DIR__.'/data/bug372.php'); yield from $this->gatherAssertTypes(__DIR__.'/data/inference-placeholder.php'); + yield from $this->gatherAssertTypes(__DIR__.'/data/bug394.php'); } /** diff --git a/tests/default/data/bug394.php b/tests/default/data/bug394.php new file mode 100644 index 000000000..d90a04d31 --- /dev/null +++ b/tests/default/data/bug394.php @@ -0,0 +1,19 @@ +conn->fetchAssociative($query, [$conditionId]); + assertType('array{email: string, adaid: int<-32768, 32767>}|false', $fetchResult); + } + } +}