Skip to content

Commit 5cb7312

Browse files
committed
fix PHP 7.4
prevents "Named arguments are supported only on PHP 8.0 and later."
1 parent 74b67cf commit 5cb7312

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/Rules/PHPUnit/DataProviderDataRuleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ protected function getRule(): Rule
4141

4242
public function testRule(): void
4343
{
44+
if (PHP_VERSION_ID < 80000) {
45+
self::markTestSkipped();
46+
}
47+
4448
$this->analyse([__DIR__ . '/data/data-provider-data.php'], [
4549
[
4650
'Parameter #2 $input of method DataProviderDataTest\FooTest::testWithAttribute() expects string, int given.',

0 commit comments

Comments
 (0)