Skip to content

Commit

Permalink
[ci-review] Rector Rectify
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 3, 2023
1 parent f56ad68 commit 2e1f377
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function refactor(Node $node): ?Node
return null;
}

if ($args[0]->unpack === true) {
if ($args[0]->unpack) {
// In this case, the code looks like this: $query->logicalAnd(...$constraints);
$parentIfStatement = $this->betterNodeFinder->findParentType($node, If_::class);
// the if should not contain a count, otherwise it is probably migrated already
Expand All @@ -85,6 +85,7 @@ public function refactor(Node $node): ?Node
if ($comparison->left instanceof FuncCall && $this->isName($comparison->left, 'count')) {
return null;
}

if ($comparison->right instanceof FuncCall && $this->isName($comparison->right, 'count')) {
return null;
}
Expand Down

0 comments on commit 2e1f377

Please sign in to comment.