Harden GitHub workflows #1300
Annotations
11 warnings
|
Complete job
Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@v4. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
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#L73
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#L72
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#L72
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#L72
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#L68
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#L39
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#L39
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