Test new version of PhpBench GitHub Action #888
Annotations
10 warnings
Run roave infection.:
src/Cli/SignalLoop.php#L36
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
public function __construct(protected int $memorySoftLimit = 0)
{
foreach (self::SIGNALS_EXIT as $signal) {
- pcntl_signal($signal, fn() => $this->exit = true);
+ pcntl_signal($signal, fn() => $this->exit = false);
}
foreach (self::SIGNALS_SUSPEND as $signal) {
pcntl_signal($signal, fn() => $this->pause = true);
|
Run roave infection.:
src/Cli/SignalLoop.php#L36
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
public function __construct(protected int $memorySoftLimit = 0)
{
foreach (self::SIGNALS_EXIT as $signal) {
- pcntl_signal($signal, fn() => $this->exit = true);
+
}
foreach (self::SIGNALS_SUSPEND as $signal) {
pcntl_signal($signal, fn() => $this->pause = true);
|
Run roave infection.:
src/Cli/SignalLoop.php#L39
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
pcntl_signal($signal, fn() => $this->exit = true);
}
foreach (self::SIGNALS_SUSPEND as $signal) {
- pcntl_signal($signal, fn() => $this->pause = true);
+ pcntl_signal($signal, fn() => $this->pause = false);
}
foreach (self::SIGNALS_RESUME as $signal) {
pcntl_signal($signal, fn() => $this->pause = false);
|
Run roave infection.:
src/Cli/SignalLoop.php#L39
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
pcntl_signal($signal, fn() => $this->exit = true);
}
foreach (self::SIGNALS_SUSPEND as $signal) {
- pcntl_signal($signal, fn() => $this->pause = true);
+
}
foreach (self::SIGNALS_RESUME as $signal) {
pcntl_signal($signal, fn() => $this->pause = false);
|
Run roave infection.:
src/Cli/SignalLoop.php#L42
Escaped Mutant for Mutator "FalseValue":
--- Original
+++ New
@@ @@
pcntl_signal($signal, fn() => $this->pause = true);
}
foreach (self::SIGNALS_RESUME as $signal) {
- pcntl_signal($signal, fn() => $this->pause = false);
+ pcntl_signal($signal, fn() => $this->pause = true);
}
}
/**
|
Run roave infection.:
src/Cli/SignalLoop.php#L42
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
pcntl_signal($signal, fn() => $this->pause = true);
}
foreach (self::SIGNALS_RESUME as $signal) {
- pcntl_signal($signal, fn() => $this->pause = false);
+
}
}
/**
|
Run roave infection.:
src/Cli/SignalLoop.php#L62
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
}
protected function dispatchSignals() : bool
{
- pcntl_signal_dispatch();
+
// Wait for resume signal until loop is suspended
while ($this->pause && !$this->exit) {
usleep(10000);
|
Run roave infection.:
src/Cli/SignalLoop.php#L65
Escaped Mutant for Mutator "LogicalNot":
--- Original
+++ New
@@ @@
{
pcntl_signal_dispatch();
// Wait for resume signal until loop is suspended
- while ($this->pause && !$this->exit) {
+ while ($this->pause && $this->exit) {
usleep(10000);
pcntl_signal_dispatch();
}
|
Run roave infection.:
src/Cli/SignalLoop.php#L65
Escaped Mutant for Mutator "LogicalAndAllSubExprNegation":
--- Original
+++ New
@@ @@
{
pcntl_signal_dispatch();
// Wait for resume signal until loop is suspended
- while ($this->pause && !$this->exit) {
+ while (!$this->pause && $this->exit) {
usleep(10000);
pcntl_signal_dispatch();
}
|
Run roave infection.:
src/Cli/SignalLoop.php#L65
Escaped Mutant for Mutator "While_":
--- Original
+++ New
@@ @@
{
pcntl_signal_dispatch();
// Wait for resume signal until loop is suspended
- while ($this->pause && !$this->exit) {
+ while (false) {
usleep(10000);
pcntl_signal_dispatch();
}
|
Loading