From b382b90b99a23c75f35d88538a29ba9f9264e261 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 22 Jun 2024 09:39:09 +0200 Subject: [PATCH] Skip StringsMatchDynamicReturnTypeExtensionTest on PHP 7.2/7.3 ArrayShapeMatcher does not work for these old php versions --- .../Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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'); + } } /**