Convert envelope trait to abstract class #957
Annotations
11 warnings
mutation / PHP 8.3-ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
mutation / PHP 8.3-ubuntu-latest:
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);
|
mutation / PHP 8.3-ubuntu-latest:
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);
|
mutation / PHP 8.3-ubuntu-latest:
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);
|
mutation / PHP 8.3-ubuntu-latest:
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);
|
mutation / PHP 8.3-ubuntu-latest:
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);
}
}
/**
|
mutation / PHP 8.3-ubuntu-latest:
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);
+
}
}
/**
|
mutation / PHP 8.3-ubuntu-latest:
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);
|
mutation / PHP 8.3-ubuntu-latest:
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();
}
|
mutation / PHP 8.3-ubuntu-latest:
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();
}
|
mutation / PHP 8.3-ubuntu-latest:
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();
}
|