Skip to content

Commit f5938a7

Browse files
committed
fix
1 parent 9d6f968 commit f5938a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

rules/Php85/Rector/ArrayDimFetch/ArrayFirstLastRector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ private function shouldSkip(ArrayDimFetch $arrayDimFetch, Node $scopeNode): bool
180180
return true;
181181
}
182182

183+
if ($arrayDimFetch->getAttribute(AttributeKey::IS_BEING_ASSIGNED)) {
184+
return true;
185+
}
186+
183187
return (bool) $arrayDimFetch->getAttribute(AttributeKey::IS_UNSET_VAR);
184188
}
185189
}

0 commit comments

Comments
 (0)