build(deps-dev): bump phpunit/phpunit from 13.2.4 to 13.2.6 - #5
Merged
Merged
Annotations
10 warnings
|
Enforce mutation score:
src/Buffer.php#L391
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
$bytes = strrev($bytes);
}
- return $this->write($bytes, 8);
+ return $this->write($bytes, 9);
}
public function readShort(): int|false
|
|
Enforce mutation score:
src/Buffer.php#L381
Escaped Mutant for Mutator "CastInt":
@@ @@
{
$value = $this->readNumeric(8, 'q');
- return false === $value ? false : (int) $value;
+ return false === $value ? false : $value;
}
public function writeInt64(int $data): int|false
|
|
Enforce mutation score:
src/Buffer.php#L374
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
*/
public function writeInt(int $data): int|false
{
- return $this->writeNumeric($data, 'i', 4);
+ return $this->writeNumeric($data, 'i', 5);
}
public function readInt64(): int|false
|
|
Enforce mutation score:
src/Buffer.php#L366
Escaped Mutant for Mutator "CastInt":
@@ @@
{
$value = $this->readNumeric(4, 'i');
- return false === $value ? false : (int) $value;
+ return false === $value ? false : $value;
}
/**
|
|
Enforce mutation score:
src/Buffer.php#L339
Escaped Mutant for Mutator "PublicVisibility":
@@ @@
* @param $data
* @param $format
*/
- public function writeNumeric(int|float $data, string $format, ?int $length = null): int|false
+ protected function writeNumeric(int|float $data, string $format, ?int $length = null): int|false
{
return $this->write(pack($format, $data), $length);
}
|
|
Enforce mutation score:
src/Buffer.php#L332
Escaped Mutant for Mutator "CastFloat":
@@ @@
throw new \InvalidArgumentException('Double value must be numeric.');
}
- return $this->writeNumeric((float) $data, 'd', 8);
+ return $this->writeNumeric($data, 'd', 8);
}
/**
|
|
Enforce mutation score:
src/Buffer.php#L332
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
throw new \InvalidArgumentException('Double value must be numeric.');
}
- return $this->writeNumeric((float) $data, 'd', 8);
+ return $this->writeNumeric((float) $data, 'd', 9);
}
/**
|
|
Enforce mutation score:
src/Buffer.php#L323
Escaped Mutant for Mutator "FalseValue":
@@ @@
{
$value = $this->readNumeric(8, 'd');
- return false === $value ? false : (float) $value;
+ return false === $value ? true : (float) $value;
}
public function writeDouble(float|int|string $data): int|false
|
|
Enforce mutation score:
src/Buffer.php#L323
Escaped Mutant for Mutator "CastFloat":
@@ @@
{
$value = $this->readNumeric(8, 'd');
- return false === $value ? false : (float) $value;
+ return false === $value ? false : $value;
}
public function writeDouble(float|int|string $data): int|false
|
|
Enforce mutation score:
src/Buffer.php#L306
Escaped Mutant for Mutator "Ternary":
@@ @@
public function write(string $data, ?int $length = null): int|false
{
- $written = null !== $length
- ? fwrite($this->_stream, $data, $length)
- : fwrite($this->_stream, $data);
+ $written = null !== $length ? fwrite($this->_stream, $data) : fwrite($this->_stream, $data, $length);
if (false !== $written) {
$this->_position += $written;
}
|
background
wait
wait-all
cancel
parallel
Loading