Skip to content

Commit c483456

Browse files
committed
Fix test
1 parent 433511a commit c483456

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/PHPStan/Rules/Functions/ExistingClassesInArrowFunctionTypehintsRuleTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,6 @@ 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-
118114
$this->phpVersionId = $phpVersionId;
119115
$this->analyse([__DIR__ . '/data/required-parameter-after-optional-arrow.php'], $errors);
120116
}

tests/PHPStan/Rules/Methods/ExistingClassesInTypehintsRuleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ 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+
237241
$this->phpVersionId = $phpVersionId;
238242
$this->analyse([__DIR__ . '/data/required-parameter-after-optional.php'], $errors);
239243
}

0 commit comments

Comments
 (0)