Update rector/rector requirement from 1.0.*
to ^1.2
#300
Annotations
10 warnings
src/FileRotator.php#L72
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
* environment.
* @param bool $compressRotatedFiles Whether to compress rotated files with gzip.
*/
- public function __construct(int $maxFileSize = 10240, int $maxFiles = 5, private ?int $fileMode = null, bool $compressRotatedFiles = false)
+ public function __construct(int $maxFileSize = 10241, int $maxFiles = 5, private ?int $fileMode = null, bool $compressRotatedFiles = false)
{
$this->checkCannotBeLowerThanOne($maxFileSize, '$maxFileSize');
$this->checkCannotBeLowerThanOne($maxFiles, '$maxFiles');
|
src/FileRotator.php#L73
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
* environment.
* @param bool $compressRotatedFiles Whether to compress rotated files with gzip.
*/
- public function __construct(int $maxFileSize = 10240, int $maxFiles = 5, private ?int $fileMode = null, bool $compressRotatedFiles = false)
+ public function __construct(int $maxFileSize = 10240, int $maxFiles = 4, private ?int $fileMode = null, bool $compressRotatedFiles = false)
{
$this->checkCannotBeLowerThanOne($maxFileSize, '$maxFileSize');
$this->checkCannotBeLowerThanOne($maxFiles, '$maxFiles');
|
src/FileRotator.php#L73
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
* environment.
* @param bool $compressRotatedFiles Whether to compress rotated files with gzip.
*/
- public function __construct(int $maxFileSize = 10240, int $maxFiles = 5, private ?int $fileMode = null, bool $compressRotatedFiles = false)
+ public function __construct(int $maxFileSize = 10240, int $maxFiles = 6, private ?int $fileMode = null, bool $compressRotatedFiles = false)
{
$this->checkCannotBeLowerThanOne($maxFileSize, '$maxFileSize');
$this->checkCannotBeLowerThanOne($maxFiles, '$maxFiles');
|
src/FileRotator.php#L75
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
* environment.
* @param bool $compressRotatedFiles Whether to compress rotated files with gzip.
*/
- public function __construct(int $maxFileSize = 10240, int $maxFiles = 5, private ?int $fileMode = null, bool $compressRotatedFiles = false)
+ public function __construct(int $maxFileSize = 10240, int $maxFiles = 5, private ?int $fileMode = null, bool $compressRotatedFiles = true)
{
$this->checkCannotBeLowerThanOne($maxFileSize, '$maxFileSize');
$this->checkCannotBeLowerThanOne($maxFiles, '$maxFiles');
|
src/FileRotator.php#L83
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation":
--- Original
+++ New
@@ @@
$this->checkCannotBeLowerThanOne($maxFiles, '$maxFiles');
$this->maxFileSize = $maxFileSize;
$this->maxFiles = $maxFiles;
- if ($compressRotatedFiles && !extension_loaded('zlib')) {
+ if (!$compressRotatedFiles && !extension_loaded('zlib')) {
throw new RuntimeException(sprintf('The %s requires the PHP extension "ext-zlib" to compress rotated files.', self::class));
}
$this->compressRotatedFiles = $compressRotatedFiles;
|
src/FileRotator.php#L101
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
$rotateFile = $file . ($i === 0 ? '' : '.' . $i);
$newFile = $file . '.' . ($i + 1);
if ($i === $this->maxFiles) {
- $this->safeRemove($this->compressRotatedFiles ? $rotateFile . self::COMPRESS_EXTENSION : $rotateFile);
+ $this->safeRemove($this->compressRotatedFiles ? self::COMPRESS_EXTENSION . $rotateFile : $rotateFile);
continue;
}
if ($this->compressRotatedFiles && is_file($rotateFile . self::COMPRESS_EXTENSION)) {
|
src/FileRotator.php#L101
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$rotateFile = $file . ($i === 0 ? '' : '.' . $i);
$newFile = $file . '.' . ($i + 1);
if ($i === $this->maxFiles) {
- $this->safeRemove($this->compressRotatedFiles ? $rotateFile . self::COMPRESS_EXTENSION : $rotateFile);
+ $this->safeRemove($this->compressRotatedFiles ? self::COMPRESS_EXTENSION : $rotateFile);
continue;
}
if ($this->compressRotatedFiles && is_file($rotateFile . self::COMPRESS_EXTENSION)) {
|
src/FileRotator.php#L101
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
$rotateFile = $file . ($i === 0 ? '' : '.' . $i);
$newFile = $file . '.' . ($i + 1);
if ($i === $this->maxFiles) {
- $this->safeRemove($this->compressRotatedFiles ? $rotateFile . self::COMPRESS_EXTENSION : $rotateFile);
+ $this->safeRemove($this->compressRotatedFiles ? $rotateFile : $rotateFile);
continue;
}
if ($this->compressRotatedFiles && is_file($rotateFile . self::COMPRESS_EXTENSION)) {
|
src/FileRotator.php#L101
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$rotateFile = $file . ($i === 0 ? '' : '.' . $i);
$newFile = $file . '.' . ($i + 1);
if ($i === $this->maxFiles) {
- $this->safeRemove($this->compressRotatedFiles ? $rotateFile . self::COMPRESS_EXTENSION : $rotateFile);
+ $this->safeRemove($this->compressRotatedFiles ? $rotateFile : $rotateFile . self::COMPRESS_EXTENSION);
continue;
}
if ($this->compressRotatedFiles && is_file($rotateFile . self::COMPRESS_EXTENSION)) {
|
src/FileRotator.php#L101
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$rotateFile = $file . ($i === 0 ? '' : '.' . $i);
$newFile = $file . '.' . ($i + 1);
if ($i === $this->maxFiles) {
- $this->safeRemove($this->compressRotatedFiles ? $rotateFile . self::COMPRESS_EXTENSION : $rotateFile);
+
continue;
}
if ($this->compressRotatedFiles && is_file($rotateFile . self::COMPRESS_EXTENSION)) {
|
The logs for this run have expired and are no longer available.
Loading