Skip to content

Update composer.json #385

Update composer.json

Update composer.json #385

Triggered via pull request January 26, 2024 13:12
Status Success
Total duration 1m 27s
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#L35
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#L35
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/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)) { /**
mutation / PHP 8.1-ubuntu-latest: src/FileStorageTrait.php#L47
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ * * @see loadFromFile() */ - protected function saveToFile(array $data, string $file) : void + private function saveToFile(array $data, string $file) : void { $directory = dirname($file); if (!is_dir($directory)) {
mutation / PHP 8.1-ubuntu-latest: src/FileStorageTrait.php#L62
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ } return true; }); - mkdir($directory, 0775, true); + mkdir($directory, 508, true); restore_error_handler(); } file_put_contents($file, "<?php\n\nreturn " . VarDumper::create($data)->export() . ";\n", LOCK_EX);
mutation / PHP 8.1-ubuntu-latest: src/FileStorageTrait.php#L62
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } return true; }); - mkdir($directory, 0775, true); + mkdir($directory, 510, true); restore_error_handler(); } file_put_contents($file, "<?php\n\nreturn " . VarDumper::create($data)->export() . ";\n", LOCK_EX);
mutation / PHP 8.1-ubuntu-latest: src/FileStorageTrait.php#L67
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ restore_error_handler(); } file_put_contents($file, "<?php\n\nreturn " . VarDumper::create($data)->export() . ";\n", LOCK_EX); - $this->invalidateScriptCache($file); + } /** * Invalidates precompiled script cache (such as OPCache) for the given file.
mutation / PHP 8.1-ubuntu-latest: src/FileStorageTrait.php#L75
Escaped Mutant for Mutator "ProtectedVisibility": --- Original +++ New @@ @@ * * @param string $file The file path. */ - protected function invalidateScriptCache(string $file) : void + private function invalidateScriptCache(string $file) : void { if (function_exists('opcache_invalidate')) { opcache_invalidate($file, true);
mutation / PHP 8.1-ubuntu-latest: src/FileStorageTrait.php#L77
Escaped Mutant for Mutator "IfNegation": --- Original +++ New @@ @@ */ protected function invalidateScriptCache(string $file) : void { - if (function_exists('opcache_invalidate')) { + if (!function_exists('opcache_invalidate')) { opcache_invalidate($file, true); } } }
mutation / PHP 8.1-ubuntu-latest: src/FileStorageTrait.php#L78
Escaped Mutant for Mutator "FunctionCallRemoval": --- Original +++ New @@ @@ protected function invalidateScriptCache(string $file) : void { if (function_exists('opcache_invalidate')) { - opcache_invalidate($file, true); + } } }