Skip to content

Commit 1db5621

Browse files
Replace bool cast with explicit return
1 parent be2d81a commit 1db5621

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

rules/Php85/Rector/ArrayDimFetch/ArrayFirstLastRector.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ private function shouldSkip(ArrayDimFetch $node): bool
186186
return true;
187187
}
188188

189-
return (bool) $node->getAttribute(AttributeKey::IS_UNSET_VAR);
189+
if ($node->getAttribute(AttributeKey::IS_UNSET_VAR)) {
190+
return true;
191+
}
192+
193+
return false;
190194
}
191195
}

0 commit comments

Comments
 (0)