Skip to content

Commit a34259c

Browse files
committed
[ci-review] Rector Rectify
1 parent bfb234c commit a34259c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/DeadCode/Rector/If_/UnwrapFutureCompatibleIfPhpVersionRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ private function refactorIsNotMatch(If_ $if): array|int
123123
*/
124124
private function keepIfLevelComments(If_ $if, array $stmts): array
125125
{
126-
if (count($stmts) > 0) {
126+
if ($stmts !== []) {
127127
$stmts[0]->setAttribute(
128128
AttributeKey::COMMENTS,
129129
array_merge($if->getComments(), $stmts[0]->getComments())

0 commit comments

Comments
 (0)