Fix debug collector + Disable Yii Config plugin #738
Annotations
30 warnings
mutation / PHP 8.2-ubuntu-latest:
src/Cli/SignalLoop.php#L31
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
{
$this->memorySoftLimit = $memorySoftLimit;
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.2-ubuntu-latest:
src/Cli/SignalLoop.php#L31
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
{
$this->memorySoftLimit = $memorySoftLimit;
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.2-ubuntu-latest:
src/Cli/SignalLoop.php#L34
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.2-ubuntu-latest:
src/Cli/SignalLoop.php#L34
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.2-ubuntu-latest:
src/Cli/SignalLoop.php#L37
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.2-ubuntu-latest:
src/Cli/SignalLoop.php#L37
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.2-ubuntu-latest:
src/Cli/SignalLoop.php#L57
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.2-ubuntu-latest:
src/Cli/SignalLoop.php#L60
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.2-ubuntu-latest:
src/Cli/SignalLoop.php#L60
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.2-ubuntu-latest:
src/Cli/SignalLoop.php#L60
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();
}
|
mutation / PHP 8.1-ubuntu-latest:
src/Cli/SignalLoop.php#L31
Escaped Mutant for Mutator "TrueValue":
--- Original
+++ New
@@ @@
{
$this->memorySoftLimit = $memorySoftLimit;
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.1-ubuntu-latest:
src/Cli/SignalLoop.php#L31
Escaped Mutant for Mutator "FunctionCallRemoval":
--- Original
+++ New
@@ @@
{
$this->memorySoftLimit = $memorySoftLimit;
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.1-ubuntu-latest:
src/Cli/SignalLoop.php#L34
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.1-ubuntu-latest:
src/Cli/SignalLoop.php#L34
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.1-ubuntu-latest:
src/Cli/SignalLoop.php#L37
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.1-ubuntu-latest:
src/Cli/SignalLoop.php#L37
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.1-ubuntu-latest:
src/Cli/SignalLoop.php#L57
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.1-ubuntu-latest:
src/Cli/SignalLoop.php#L60
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.1-ubuntu-latest:
src/Cli/SignalLoop.php#L60
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.1-ubuntu-latest:
src/Cli/SignalLoop.php#L60
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();
}
|
mutation / PHP 8.0-ubuntu-latest:
src/Debug/QueueDecorator.php#L24
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function status(string $id) : JobStatus
{
$result = $this->queue->status($id);
- $this->collector->collectStatus($id, $result);
+
return $result;
}
public function push(MessageInterface $message, string|array|callable|MiddlewarePushInterface ...$middlewareDefinitions) : MessageInterface
|
mutation / PHP 8.0-ubuntu-latest:
src/Debug/QueueDecorator.php#L34
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function push(MessageInterface $message, string|array|callable|MiddlewarePushInterface ...$middlewareDefinitions) : MessageInterface
{
$message = $this->queue->push($message, ...$middlewareDefinitions);
- $this->collector->collectPush($this->queue->getChannelName(), $message, ...$middlewareDefinitions);
+
return $message;
}
public function run(int $max = 0) : void
|
mutation / PHP 8.0-ubuntu-latest:
src/Debug/QueueDecorator.php#L38
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
$this->collector->collectPush($this->queue->getChannelName(), $message, ...$middlewareDefinitions);
return $message;
}
- public function run(int $max = 0) : void
+ public function run(int $max = -1) : void
{
$this->queue->run($max);
}
|
mutation / PHP 8.0-ubuntu-latest:
src/Debug/QueueDecorator.php#L38
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
$this->collector->collectPush($this->queue->getChannelName(), $message, ...$middlewareDefinitions);
return $message;
}
- public function run(int $max = 0) : void
+ public function run(int $max = 1) : void
{
$this->queue->run($max);
}
|
mutation / PHP 8.0-ubuntu-latest:
src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php#L25
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
* @param int $code
* @param Throwable|null $previous
*/
- public function __construct(string $channel, $definition, int $code = 0, ?Throwable $previous = null)
+ public function __construct(string $channel, $definition, int $code = -1, ?Throwable $previous = null)
{
$adapterClass = AdapterInterface::class;
$realType = get_debug_type($definition);
|
mutation / PHP 8.0-ubuntu-latest:
src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php#L25
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
* @param int $code
* @param Throwable|null $previous
*/
- public function __construct(string $channel, $definition, int $code = 0, ?Throwable $previous = null)
+ public function __construct(string $channel, $definition, int $code = 1, ?Throwable $previous = null)
{
$adapterClass = AdapterInterface::class;
$realType = get_debug_type($definition);
|
mutation / PHP 8.0-ubuntu-latest:
src/Exception/AdapterConfiguration/ChannelIncorrectlyConfigured.php#L32
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$realType = get_debug_type($definition);
$message = "Channel \"{$channel}\" is not properly configured: definition must return {$adapterClass}, {$realType} returned";
$this->channel = $channel;
- parent::__construct($message, $code, $previous);
+
}
public function getName() : string
{
|
mutation / PHP 8.0-ubuntu-latest:
src/Exception/AdapterConfiguration/ChannelNotConfiguredException.php#L16
Escaped Mutant for Mutator "DecrementInteger":
--- Original
+++ New
@@ @@
class ChannelNotConfiguredException extends InvalidArgumentException implements FriendlyExceptionInterface
{
private string $channel;
- public function __construct(string $channel, int $code = 0, Throwable $previous = null)
+ public function __construct(string $channel, int $code = -1, Throwable $previous = null)
{
$message = "Queue channel \"{$channel}\" is not properly configured.";
$this->channel = $channel;
|
mutation / PHP 8.0-ubuntu-latest:
src/Exception/AdapterConfiguration/ChannelNotConfiguredException.php#L16
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
class ChannelNotConfiguredException extends InvalidArgumentException implements FriendlyExceptionInterface
{
private string $channel;
- public function __construct(string $channel, int $code = 0, Throwable $previous = null)
+ public function __construct(string $channel, int $code = 1, Throwable $previous = null)
{
$message = "Queue channel \"{$channel}\" is not properly configured.";
$this->channel = $channel;
|
mutation / PHP 8.0-ubuntu-latest:
src/Exception/AdapterConfiguration/ChannelNotConfiguredException.php#L20
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
$message = "Queue channel \"{$channel}\" is not properly configured.";
$this->channel = $channel;
- parent::__construct($message, $code, $previous);
+
}
public function getName() : string
{
|