diff --git a/tests/DoctrineIntegration/ORM/EntityManagerTypeInferenceTest.php b/tests/DoctrineIntegration/ORM/EntityManagerTypeInferenceTest.php index efef0c5d..ad6c0b9f 100644 --- a/tests/DoctrineIntegration/ORM/EntityManagerTypeInferenceTest.php +++ b/tests/DoctrineIntegration/ORM/EntityManagerTypeInferenceTest.php @@ -21,8 +21,12 @@ public function dataFileAsserts(): iterable $version = InstalledVersions::getVersion('doctrine/dbal'); $hasDbal3 = $version !== null && strpos($version, '3.') === 0; + $hasDbal4 = $version !== null && strpos($version, '4.') === 0; - if ($hasDbal3) { + if ($hasDbal4) { + // nothing to test + yield from []; + } elseif ($hasDbal3) { yield from $this->gatherAssertTypes(__DIR__ . '/data/dbalQueryBuilderExecuteDynamicReturnDbal3.php'); } else { yield from $this->gatherAssertTypes(__DIR__ . '/data/dbalQueryBuilderExecuteDynamicReturn.php'); diff --git a/tests/DoctrineIntegration/ORM/EntityManagerWithoutObjectManagerLoaderTypeInferenceTest.php b/tests/DoctrineIntegration/ORM/EntityManagerWithoutObjectManagerLoaderTypeInferenceTest.php index cd39405d..c91f7fb1 100644 --- a/tests/DoctrineIntegration/ORM/EntityManagerWithoutObjectManagerLoaderTypeInferenceTest.php +++ b/tests/DoctrineIntegration/ORM/EntityManagerWithoutObjectManagerLoaderTypeInferenceTest.php @@ -20,8 +20,12 @@ public function dataFileAsserts(): iterable $version = InstalledVersions::getVersion('doctrine/dbal'); $hasDbal3 = $version !== null && strpos($version, '3.') === 0; + $hasDbal4 = $version !== null && strpos($version, '4.') === 0; - if ($hasDbal3) { + if ($hasDbal4) { + // nothing to test + yield from []; + } elseif ($hasDbal3) { yield from $this->gatherAssertTypes(__DIR__ . '/data/dbalQueryBuilderExecuteDynamicReturnDbal3.php'); } else { yield from $this->gatherAssertTypes(__DIR__ . '/data/dbalQueryBuilderExecuteDynamicReturn.php');