Skip to content

Fix Psalm

Fix Psalm #375

Triggered via push December 12, 2023 13:55
Status Success
Total duration 1m 56s
Artifacts

mutation.yml

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

Annotations

10 warnings
mutation / PHP 8.1-ubuntu-latest: src/AssignmentsStorage.php#L33
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ private string $assignmentFile; public function __construct(string $directory, string $assignmentFile = 'assignments.php') { - $this->assignmentFile = $directory . DIRECTORY_SEPARATOR . $assignmentFile; + $this->assignmentFile = DIRECTORY_SEPARATOR . $directory . $assignmentFile; $this->loadAssignments(); } public function add(Assignment $assignment) : void
mutation / PHP 8.1-ubuntu-latest: src/AssignmentsStorage.php#L33
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ private string $assignmentFile; public function __construct(string $directory, string $assignmentFile = 'assignments.php') { - $this->assignmentFile = $directory . DIRECTORY_SEPARATOR . $assignmentFile; + $this->assignmentFile = $directory . $assignmentFile; $this->loadAssignments(); } public function add(Assignment $assignment) : void
mutation / PHP 8.1-ubuntu-latest: src/AssignmentsStorage.php#L34
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function __construct(string $directory, string $assignmentFile = 'assignments.php') { $this->assignmentFile = $directory . DIRECTORY_SEPARATOR . $assignmentFile; - $this->loadAssignments(); + } public function add(Assignment $assignment) : void {
mutation / PHP 8.1-ubuntu-latest: src/AssignmentsStorage.php#L41
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function add(Assignment $assignment) : void { parent::add($assignment); - $this->saveAssignments(); + } public function renameItem(string $oldName, string $newName) : void {
mutation / PHP 8.1-ubuntu-latest: src/AssignmentsStorage.php#L52
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ return; } parent::renameItem($oldName, $newName); - $this->saveAssignments(); + } public function remove(string $itemName, string $userId) : void {
mutation / PHP 8.1-ubuntu-latest: src/AssignmentsStorage.php#L63
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ return; } parent::remove($itemName, $userId); - $this->saveAssignments(); + } public function removeByUserId(string $userId) : void {
mutation / PHP 8.1-ubuntu-latest: src/AssignmentsStorage.php#L70
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function removeByUserId(string $userId) : void { parent::removeByUserId($userId); - $this->saveAssignments(); + } public function removeByItemName(string $itemName) : void {
mutation / PHP 8.1-ubuntu-latest: src/AssignmentsStorage.php#L77
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function removeByItemName(string $itemName) : void { parent::removeByItemName($itemName); - $this->saveAssignments(); + } public function clear() : void {
mutation / PHP 8.1-ubuntu-latest: src/AssignmentsStorage.php#L84
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ public function clear() : void { parent::clear(); - $this->saveAssignments(); + } private function loadAssignments() : void {
mutation / PHP 8.1-ubuntu-latest: src/AssignmentsStorage.php#L108
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ $assignmentData[$userId][] = $assignment->getItemName(); } } - $this->saveToFile($assignmentData, $this->assignmentFile); + } }