diff --git a/tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php b/tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php index c21a234..509c5f2 100644 --- a/tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php +++ b/tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php @@ -12,7 +12,9 @@ class StringsMatchDynamicReturnTypeExtensionTest extends TypeInferenceTestCase */ public function dataFileAsserts(): iterable { - yield from $this->gatherAssertTypes(__DIR__ . '/data/strings-match.php'); + if (PHP_VERSION_ID < 70400) { + yield from $this->gatherAssertTypes(__DIR__ . '/data/strings-match.php'); + } } /**