Update symfony/console support to ^8.0 - #322
Merged
Merged
Annotations
10 warnings
|
Run roave infection.:
src/Command/ListenAllCommand.php#L71
Escaped Mutant for Mutator "LessThan":
@@ @@
}
$pauseSeconds = (int) $input->getOption('pause');
- if ($pauseSeconds < 0) {
+ if ($pauseSeconds <= 0) {
$pauseSeconds = 1;
}
|
|
Run roave infection.:
src/Command/ListenAllCommand.php#L70
Escaped Mutant for Mutator "CastInt":
@@ @@
$queues[] = $this->queueProvider->get($queue);
}
- $pauseSeconds = (int) $input->getOption('pause');
+ $pauseSeconds = $input->getOption('pause');
if ($pauseSeconds < 0) {
$pauseSeconds = 1;
}
|
|
Run roave infection.:
src/Cli/SoftLimitTrait.php#L18
Escaped Mutant for Mutator "GreaterThanOrEqualTo":
@@ @@
if ($limit !== 0) {
$usage = memory_get_usage(true);
- if ($usage >= $limit) {
+ if ($usage > $limit) {
return true;
}
}
|
|
Run roave infection.:
src/Cli/SignalLoop.php#L61
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
// Wait for resume signal until the loop is suspended
while ($this->pause && !$this->exit) {
usleep(10000);
- pcntl_signal_dispatch();
+
}
return !$this->exit;
|
|
Run roave infection.:
src/Cli/SignalLoop.php#L60
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
// Wait for resume signal until the loop is suspended
while ($this->pause && !$this->exit) {
- usleep(10000);
+
pcntl_signal_dispatch();
}
|
|
Run roave infection.:
src/Cli/SignalLoop.php#L60
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
// Wait for resume signal until the loop is suspended
while ($this->pause && !$this->exit) {
- usleep(10000);
+ usleep(10001);
pcntl_signal_dispatch();
}
|
|
Run roave infection.:
src/Cli/SignalLoop.php#L60
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
// Wait for resume signal until the loop is suspended
while ($this->pause && !$this->exit) {
- usleep(10000);
+ usleep(9999);
pcntl_signal_dispatch();
}
|
|
Run roave infection.:
src/Cli/SignalLoop.php#L56
Escaped Mutant for Mutator "FunctionCallRemoval":
@@ @@
protected function dispatchSignals(): bool
{
- pcntl_signal_dispatch();
+
// Wait for resume signal until the loop is suspended
while ($this->pause && !$this->exit) {
|
|
Run roave infection.:
src/Cli/SignalLoop.php#L27
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
* @param int $memorySoftLimit Soft RAM limit in bytes. The loop won't let you continue to execute the program if
* soft limit is reached. Zero means no limit.
*/
- public function __construct(protected int $memorySoftLimit = 0)
+ public function __construct(protected int $memorySoftLimit = 1)
{
foreach (self::SIGNALS_EXIT as $signal) {
pcntl_signal($signal, fn() => $this->exit = true);
|
|
Run roave infection.:
src/Cli/SignalLoop.php#L27
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
* @param int $memorySoftLimit Soft RAM limit in bytes. The loop won't let you continue to execute the program if
* soft limit is reached. Zero means no limit.
*/
- public function __construct(protected int $memorySoftLimit = 0)
+ public function __construct(protected int $memorySoftLimit = -1)
{
foreach (self::SIGNALS_EXIT as $signal) {
pcntl_signal($signal, fn() => $this->exit = true);
|
background
wait
wait-all
cancel
parallel
Loading