Update composer.json #385
Annotations
10 warnings
Run roave infection.:
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
|
Run roave infection.:
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
|
Run roave infection.:
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)) {
/**
|
Run roave infection.:
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)) {
|
Run roave infection.:
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);
|
Run roave infection.:
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);
|
Run roave infection.:
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.
|
Run roave infection.:
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);
|
Run roave infection.:
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);
}
}
}
|
Run roave infection.:
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);
+
}
}
}
|
The logs for this run have expired and are no longer available.
Loading