Skip to content

Commit 32ca405

Browse files
committed
Fix build
1 parent 62f6b54 commit 32ca405

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/PHPStan/Rules/Methods/OverridingMethodRuleTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,13 @@ public function testVariadics(): void
397397
],
398398
]);
399399

400+
if (PHP_VERSION_ID < 70200) {
401+
$errors[] = [
402+
'Parameter #2 $lang (mixed) of method OverridingVariadics\YetAnotherTranslator::translate() does not match parameter #2 $parameters (string) of method OverridingVariadics\ITranslator::translate().',
403+
54,
404+
];
405+
}
406+
400407
$this->analyse([__DIR__ . '/data/overriding-variadics.php'], $errors);
401408
}
402409

0 commit comments

Comments
 (0)