Skip to content

Docs folder standardization and other fixes #295

Docs folder standardization and other fixes

Docs folder standardization and other fixes #295

Triggered via pull request April 17, 2024 13:05
@luizcmarinluizcmarin
synchronize #77
master
Status Success
Total duration 3m 56s
Artifacts

mutation.yml

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

Annotations

5 warnings
mutation / PHP 8.1-ubuntu-latest: 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);
mutation / PHP 8.1-ubuntu-latest: src/FileCache.php#L138
Escaped Mutant for Mutator "NotIdentical": --- 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) {
mutation / PHP 8.1-ubuntu-latest: 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) {
mutation / PHP 8.1-ubuntu-latest: src/FileCache.php#L138
Escaped Mutant for Mutator "LogicalAndNegation": --- 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) {
mutation / PHP 8.1-ubuntu-latest: 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) {