Skip to content

Commit 3d8bbb6

Browse files
committed
Revert Fix test
This reverts commit c483456.
1 parent c483456 commit 3d8bbb6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/PHPStan/Rules/Functions/ExistingClassesInArrowFunctionTypehintsRuleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ public function dataRequiredParameterAfterOptional(): array
111111
*/
112112
public function testRequiredParameterAfterOptional(int $phpVersionId, array $errors): void
113113
{
114+
if (!self::$useStaticReflectionProvider && PHP_VERSION_ID < 70400) {
115+
$this->markTestSkipped('Test requires PHP 7.4.');
116+
}
117+
114118
$this->phpVersionId = $phpVersionId;
115119
$this->analyse([__DIR__ . '/data/required-parameter-after-optional-arrow.php'], $errors);
116120
}

tests/PHPStan/Rules/Methods/ExistingClassesInTypehintsRuleTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,6 @@ public function dataRequiredParameterAfterOptional(): array
234234
*/
235235
public function testRequiredParameterAfterOptional(int $phpVersionId, array $errors): void
236236
{
237-
if (!self::$useStaticReflectionProvider && PHP_VERSION_ID < 70400) {
238-
$this->markTestSkipped('Test requires PHP 7.4.');
239-
}
240-
241237
$this->phpVersionId = $phpVersionId;
242238
$this->analyse([__DIR__ . '/data/required-parameter-after-optional.php'], $errors);
243239
}

0 commit comments

Comments
 (0)