Skip to content

Commit 2bc2bc4

Browse files
committed
[ci-review] Rector Rectify
1 parent b2dd4a7 commit 2bc2bc4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rules/TypeDeclaration/Rector/ClassMethod/StrictArrayParamDimFetchRector.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,8 @@ private function shouldStop(Node $node, Param $param, string $paramName): bool
213213
{
214214
$nodeToCheck = null;
215215

216-
if (! $param->default instanceof Expr) {
217-
if ($node instanceof Empty_ && $node->expr instanceof ArrayDimFetch && $node->expr->var instanceof Variable && $node->expr->var->name === $paramName) {
218-
return true;
219-
}
216+
if (!$param->default instanceof Expr && ($node instanceof Empty_ && $node->expr instanceof ArrayDimFetch && $node->expr->var instanceof Variable && $node->expr->var->name === $paramName)) {
217+
return true;
220218
}
221219

222220
if ($node instanceof FuncCall

0 commit comments

Comments
 (0)