Update shivammathur/setup-php action to v2.37.0 #1448
Annotations
11 warnings
|
Mutation tests (locked, 8.4, ubuntu-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L66
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
break;
}
- $sleepFor = max($sleepTimer - $ranTime, 0);
+ $sleepFor = max($sleepTimer - $ranTime, -1);
if ($sleepFor <= 0) {
continue;
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L63
Escaped Mutant for Mutator "Break_":
@@ @@
$this->eventDispatcher->dispatch(new WorkerRunningEvent($this));
if ($this->shouldStop) {
- break;
+ continue;
}
$sleepFor = max($sleepTimer - $ranTime, 0);
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L42
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
}
/** @param positive-int|0 $sleepTimer in milliseconds */
- public function run(int $sleepTimer = 1000): void
+ public function run(int $sleepTimer = 1001): void
{
$this->logger?->debug('Worker starting');
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L42
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
}
/** @param positive-int|0 $sleepTimer in milliseconds */
- public function run(int $sleepTimer = 1000): void
+ public function run(int $sleepTimer = 999): void
{
$this->logger?->debug('Worker starting');
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L38
Escaped Mutant for Mutator "RoundingFamily":
@@ @@
private readonly EventDispatcherInterface $eventDispatcher,
private readonly LoggerInterface|null $logger = null,
) {
- $this->timeMeasure = static fn () => (int)round(microtime(true) * 1000);
+ $this->timeMeasure = static fn () => (int)floor(microtime(true) * 1000);
}
/** @param positive-int|0 $sleepTimer in milliseconds */
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L38
Escaped Mutant for Mutator "RoundingFamily":
@@ @@
private readonly EventDispatcherInterface $eventDispatcher,
private readonly LoggerInterface|null $logger = null,
) {
- $this->timeMeasure = static fn () => (int)round(microtime(true) * 1000);
+ $this->timeMeasure = static fn () => (int)ceil(microtime(true) * 1000);
}
/** @param positive-int|0 $sleepTimer in milliseconds */
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L38
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
private readonly EventDispatcherInterface $eventDispatcher,
private readonly LoggerInterface|null $logger = null,
) {
- $this->timeMeasure = static fn () => (int)round(microtime(true) * 1000);
+ $this->timeMeasure = static fn () => (int)round(microtime(true) * 999);
}
/** @param positive-int|0 $sleepTimer in milliseconds */
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L38
Escaped Mutant for Mutator "Multiplication":
@@ @@
private readonly EventDispatcherInterface $eventDispatcher,
private readonly LoggerInterface|null $logger = null,
) {
- $this->timeMeasure = static fn () => (int)round(microtime(true) * 1000);
+ $this->timeMeasure = static fn () => (int)round(microtime(true) / 1000);
}
/** @param positive-int|0 $sleepTimer in milliseconds */
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/DefaultWorker.php#L38
Escaped Mutant for Mutator "IncrementInteger":
@@ @@
private readonly EventDispatcherInterface $eventDispatcher,
private readonly LoggerInterface|null $logger = null,
) {
- $this->timeMeasure = static fn () => (int)round(microtime(true) * 1000);
+ $this->timeMeasure = static fn () => (int)round(microtime(true) * 1001);
}
/** @param positive-int|0 $sleepTimer in milliseconds */
|
|
Mutation tests (locked, 8.4, ubuntu-latest):
src/Bytes.php#L39
Escaped Mutant for Mutator "DecrementInteger":
@@ @@
throw new InvalidFormat($string);
}
- $number = (int)$matches[1];
+ $number = (int)$matches[0];
$unit = strtoupper($matches[2] ?? 'B');
if (!array_key_exists($unit, self::SIZES)) {
|