Psalm level 1 #287
Annotations
5 warnings
Run roave infection.:
src/FileCache.php#L108
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
if (!$this->existsAndNotExpired($file) || ($filePointer = @fopen($file, 'rb')) === false) {
return $default;
}
- flock($filePointer, LOCK_SH);
+
$value = stream_get_contents($filePointer);
flock($filePointer, LOCK_UN);
fclose($filePointer);
|
Run roave infection.:
src/FileCache.php#L138
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
--- Original
+++ New
@@ @@
// If ownership differs the touch call will fail, so we try to
// rebuild the file from scratch by deleting it first
// https://github.com/yiisoft/yii2/pull/16120
- if (function_exists('posix_geteuid') && is_file($file) && fileowner($file) !== posix_geteuid()) {
+ if (!function_exists('posix_geteuid') && !is_file($file) && !(fileowner($file) !== posix_geteuid())) {
@Unlink($file);
}
if (file_put_contents($file, serialize($value), LOCK_EX) === false) {
|
Run roave infection.:
src/FileCache.php#L138
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
// If ownership differs the touch call will fail, so we try to
// rebuild the file from scratch by deleting it first
// https://github.com/yiisoft/yii2/pull/16120
- if (function_exists('posix_geteuid') && is_file($file) && fileowner($file) !== posix_geteuid()) {
+ if (!function_exists('posix_geteuid') && is_file($file) && fileowner($file) !== posix_geteuid()) {
@Unlink($file);
}
if (file_put_contents($file, serialize($value), LOCK_EX) === false) {
|
Run roave infection.:
src/FileCache.php#L206
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function deleteMultiple(iterable $keys) : bool
{
$keys = $this->iterableToArray($keys);
- $this->validateKeys($keys);
+
foreach ($keys as $key) {
$this->delete($key);
}
|
Run roave infection.:
src/FileCache.php#L335
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
if (is_dir($path)) {
return true;
}
- $result = !is_file($path) && mkdir(directory: $path, recursive: true) && is_dir($path);
+ $result = !is_file($path) && mkdir(directory: $path, recursive: true) || is_dir($path);
if ($result) {
chmod($path, $this->directoryMode);
}
|
The logs for this run have expired and are no longer available.
Loading