Skip to content

Use simple storages, PHP 8.1 and PHPUnit 10.5.2 #376

Use simple storages, PHP 8.1 and PHPUnit 10.5.2

Use simple storages, PHP 8.1 and PHPUnit 10.5.2 #376

Triggered via pull request December 12, 2023 13:55
@arogachevarogachev
synchronize #76
base-sync-2
Status Success
Total duration 1m 35s
Artifacts

mutation.yml

on: pull_request
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#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); + } }
mutation / PHP 8.1-ubuntu-latest: src/FileStorageTrait.php#L26
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ * * @see saveToFile() */ - protected function loadFromFile(string $file) : array + private function loadFromFile(string $file) : array { if (is_file($file)) { /**