Skip to content

Use snake case for item attribute names (ease migration from Yii 2) (… #300

Use snake case for item attribute names (ease migration from Yii 2) (…

Use snake case for item attribute names (ease migration from Yii 2) (… #300

Triggered via push January 22, 2024 07:56
Status Failure
Total duration 3m 17s
Artifacts

mutation.yml

on: push
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

1 error and 3 warnings
mutation / PHP 8.2-ubuntu-latest
Process completed with exit code 1.
mutation / PHP 8.2-ubuntu-latest: src/ItemTreeTraversal/CteItemTreeTraversal.php#L70
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ { $baseOuterQuery = (new Query($this->database))->select(['item.*', 'parent_of.children']); $cteSelectRelationQuery = (new Query($this->database))->select(['parent', new Expression($this->getTrimConcatChildrenExpression())])->from("{$this->childrenTableName} AS item_child_recursive")->innerJoin('parent_of', ['item_child_recursive.child' => new Expression('{{parent_of}}.[[child_name]]')]); - $cteSelectItemQuery = (new Query($this->database))->select(['name', new Expression($this->getEmptyChildrenExpression())])->from($this->tableName)->where(['name' => $name])->union($cteSelectRelationQuery, all: true); + $cteSelectItemQuery = (new Query($this->database))->select(['name', new Expression($this->getEmptyChildrenExpression())])->from($this->tableName)->where(['name' => $name])->union($cteSelectRelationQuery, all: false); $quoter = $this->database->getQuoter(); $outerQuery = $baseOuterQuery->withQuery($cteSelectItemQuery, $quoter->quoteTableName('parent_of') . '(' . $quoter->quoteColumnName('child_name') . ',' . $quoter->quoteColumnName('children') . ')', recursive: $this->useRecursiveInWith)->from('parent_of')->leftJoin(['item' => $this->tableName], ['item.name' => new Expression('{{parent_of}}.[[child_name]]')]); /** @psalm-var AccessTree */
mutation / PHP 8.2-ubuntu-latest: src/ItemTreeTraversal/CteItemTreeTraversal.php#L179
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ $cteParameterName = 'parent_name'; } $cteSelectRelationQuery = (new Query($this->database))->select($cteSelectRelationName)->from(['item_child_recursive' => $this->childrenTableName])->innerJoin($cteName, ["item_child_recursive.{$cteConditionRelationName}" => new Expression("{{{$cteName}}}.[[{$cteParameterName}]]")]); - $cteSelectItemQuery = (new Query($this->database))->select('name')->from($this->tableName)->where(['name' => $names])->union($cteSelectRelationQuery, all: true); + $cteSelectItemQuery = (new Query($this->database))->select('name')->from($this->tableName)->where(['name' => $names])->union($cteSelectRelationQuery, all: false); $quoter = $this->database->getQuoter(); $outerQuery = $baseOuterQuery->withQuery($cteSelectItemQuery, $quoter->quoteTableName($cteName) . '(' . $quoter->quoteColumnName($cteParameterName) . ')', recursive: $this->useRecursiveInWith)->from($cteName)->leftJoin(['item' => $this->tableName], ['item.name' => new Expression("{{{$cteName}}}.[[{$cteParameterName}]]")]); return $outerQuery->createCommand();
mutation / PHP 8.2-ubuntu-latest: src/ItemsStorage.php#L486
Escaped Mutant for Mutator "NotIdentical": --- Original +++ New @@ @@ if ($rawItem['description'] !== null) { $item = $item->withDescription($rawItem['description']); } - if ($rawItem['rule_name'] !== null) { + if ($rawItem['rule_name'] === null) { $item = $item->withRuleName($rawItem['rule_name']); } return $item;