We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79aed74 commit 6512a84Copy full SHA for 6512a84
src/Rules/FunctionDefinitionCheck.php
@@ -385,13 +385,11 @@ private function checkRequiredParameterAfterOptional(array $parameterNodes): arr
385
$errors[] = RuleErrorBuilder::message(
386
sprintf(
387
'Deprecated in PHP %s: Required parameter $%s follows optional parameter $%s.',
388
- $targetPhpVersion ??= '8.0',
+ $targetPhpVersion ?? '8.0',
389
$parameterName,
390
$optionalParameter,
391
),
392
)->line($parameterNode->getStartLine())->build();
393
-
394
- $targetPhpVersion = null;
395
continue;
396
}
397
if ($parameterNode->default === null) {
0 commit comments