Skip to content

Commit

Permalink
Skip StringsMatchDynamicReturnTypeExtensionTest on PHP 7.2/7.3
Browse files Browse the repository at this point in the history
ArrayShapeMatcher does not work for these old php versions
  • Loading branch information
staabm authored Jun 22, 2024
1 parent 951bacd commit b382b90
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Check failure on line 16 in tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.2, lowest)

Dynamic call to static method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes().

Check failure on line 16 in tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.3, lowest)

Dynamic call to static method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes().

Check failure on line 16 in tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (7.4, lowest)

Dynamic call to static method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes().

Check failure on line 16 in tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.0, lowest)

Dynamic call to static method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes().

Check failure on line 16 in tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.1, lowest)

Dynamic call to static method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes().

Check failure on line 16 in tests/Type/Nette/StringsMatchDynamicReturnTypeExtensionTest.php

View workflow job for this annotation

GitHub Actions / PHPStan (8.2, lowest)

Dynamic call to static method PHPStan\Testing\TypeInferenceTestCase::gatherAssertTypes().
}
}

/**
Expand Down

0 comments on commit b382b90

Please sign in to comment.