Skip to content

Commit

Permalink
[TASK] Run rector
Browse files Browse the repository at this point in the history
  • Loading branch information
simonschaufi committed Dec 3, 2023
1 parent e60e266 commit 8663bfd
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 8663bfd

Please sign in to comment.