Skip to content

Commit

Permalink
Ignore mutants
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev committed Feb 15, 2024
1 parent 76def63 commit 9d9e956
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/ItemTreeTraversal/CteItemTreeTraversal.php
Expand Up @@ -61,11 +61,13 @@ public function getHierarchy(string $name): array
->innerJoin('parent_of', [
'item_child_recursive.child' => new Expression('{{parent_of}}.[[child_name]]'),
]);
/** @infection-ignore-all FalseValuem, union */
$cteSelectItemQuery = (new Query($this->database))
->select(['name', new Expression($this->getEmptyChildrenExpression())])
->from($this->tableName)
->where(['name' => $name])
->union($cteSelectRelationQuery);
->union($cteSelectRelationQuery, all: true);
/** @infection-ignore-all FalseValue, recursive */
$outerQuery = $baseOuterQuery
->withQuery($cteSelectItemQuery, 'parent_of(child_name, children)', recursive: true)
->from('parent_of')
Expand Down Expand Up @@ -164,11 +166,13 @@ private function getRowsCommand(
"{{{$cteName}}}.[[$cteParameterName]]",
),
]);
/** @infection-ignore-all FalseValue, union */
$cteSelectItemQuery = (new Query($this->database))
->select('name')
->from($this->tableName)
->where(['name' => $names])
->union($cteSelectRelationQuery);
->union($cteSelectRelationQuery, all: true);
/** @infection-ignore-all FalseValue, recursive */
$outerQuery = $baseOuterQuery
->withQuery($cteSelectItemQuery, "$cteName($cteParameterName)", recursive: true)
->from($cteName)
Expand Down

0 comments on commit 9d9e956

Please sign in to comment.