Skip to content

Php version change

Php version change #39

Triggered via pull request September 19, 2023 04:40
Status Success
Total duration 2m 29s
Artifacts

tests.yml

on: pull_request
Generate PHP Releases Array
7s
Generate PHP Releases Array
Matrix: tests
Unit & Integration Tests Status
3s
Unit & Integration Tests Status
Infection complete run on Infection
1m 17s
Infection complete run on Infection
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
Infection complete run on Infection: src/BitMask.php#L34
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ public static function isValid($value) : bool { $min = min(static::toArray()); - $max = max(static::toArray()) * 2 - 1; + $max = max(static::toArray()) * 3 - 1; return $value >= $min && $value <= $max; } /**
Infection complete run on Infection: src/BitMask.php#L34
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ public static function isValid($value) : bool { $min = min(static::toArray()); - $max = max(static::toArray()) * 2 - 1; + $max = max(static::toArray()) * 2 - 0; return $value >= $min && $value <= $max; } /**
Infection complete run on Infection: src/BitMask.php#L34
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ public static function isValid($value) : bool { $min = min(static::toArray()); - $max = max(static::toArray()) * 2 - 1; + $max = max(static::toArray()) * 2 - 2; return $value >= $min && $value <= $max; } /**
Infection complete run on Infection: src/BitMask.php#L34
Escaped Mutant for Mutator "Minus": --- Original +++ New @@ @@ public static function isValid($value) : bool { $min = min(static::toArray()); - $max = max(static::toArray()) * 2 - 1; + $max = max(static::toArray()) * 2 + 1; return $value >= $min && $value <= $max; } /**
Infection complete run on Infection: src/BitMask.php#L36
Escaped Mutant for Mutator "LessThanOrEqualTo": --- Original +++ New @@ @@ { $min = min(static::toArray()); $max = max(static::toArray()) * 2 - 1; - return $value >= $min && $value <= $max; + return $value >= $min && $value < $max; } /** * @param $name
Infection complete run on Infection: src/BitMask.php#L36
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ { $min = min(static::toArray()); $max = max(static::toArray()) * 2 - 1; - return $value >= $min && $value <= $max; + return $value >= $min || $value <= $max; } /** * @param $name
Infection complete run on Infection: src/BitMask.php#L69
Escaped Mutant for Mutator "LogicalAnd": --- Original +++ New @@ @@ $array = array_filter(parent::toArray(), static function ($value) : bool { return is_scalar($value); }); - $firstTime && array_walk($array, static function ($item) : void { + $firstTime || array_walk($array, static function ($item) : void { if (!is_int($item)) { throw new UnexpectedValueException(sprintf('All defined Const on Enum %s should be integers', static::class)); }
Infection complete run on Infection: src/BitMask.php#L69
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation": --- Original +++ New @@ @@ $array = array_filter(parent::toArray(), static function ($value) : bool { return is_scalar($value); }); - $firstTime && array_walk($array, static function ($item) : void { + !$firstTime && !array_walk($array, static function ($item) : void { if (!is_int($item)) { throw new UnexpectedValueException(sprintf('All defined Const on Enum %s should be integers', static::class)); }
Infection complete run on Infection: src/BitMask.php#L69
Escaped Mutant for Mutator "LogicalAndNegation": --- Original +++ New @@ @@ $array = array_filter(parent::toArray(), static function ($value) : bool { return is_scalar($value); }); - $firstTime && array_walk($array, static function ($item) : void { + !($firstTime && array_walk($array, static function ($item) : void { if (!is_int($item)) { throw new UnexpectedValueException(sprintf('All defined Const on Enum %s should be integers', static::class)); } - }); + })); return $array; } /**
Infection complete run on Infection: src/BitMask.php#L69
Escaped Mutant for Mutator "LogicalAndSingleSubExprNegation": --- Original +++ New @@ @@ $array = array_filter(parent::toArray(), static function ($value) : bool { return is_scalar($value); }); - $firstTime && array_walk($array, static function ($item) : void { + !$firstTime && array_walk($array, static function ($item) : void { if (!is_int($item)) { throw new UnexpectedValueException(sprintf('All defined Const on Enum %s should be integers', static::class)); }