Skip to content

Add customizable context format and value conversion #520

Add customizable context format and value conversion

Add customizable context format and value conversion #520

Triggered via pull request March 29, 2026 04:44
Status Success
Total duration 1m 55s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation / roave-infection
Fit to window
Zoom out
Zoom in

Annotations

11 warnings
mutation / PHP 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@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 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 / PHP 8.4-ubuntu-latest: src/Target.php#L105
Escaped Mutant for Mutator "DecrementInteger": @@ @@ if ($count > 0 && ($final || ($this->exportInterval > 0 && $count >= $this->exportInterval))) { // set exportInterval to 0 to avoid triggering export again while exporting $oldExportInterval = $this->exportInterval; - $this->exportInterval = 0; + $this->exportInterval = -1; $this->export(); $this->exportInterval = $oldExportInterval; $this->messages = [];
mutation / PHP 8.4-ubuntu-latest: src/StreamTarget.php#L55
Escaped Mutant for Mutator "FunctionCallRemoval": @@ @@ } $this->stream = stream_get_meta_data($stream)['uri']; - flock($stream, LOCK_UN); + fclose($stream); }
mutation / PHP 8.4-ubuntu-latest: src/StreamTarget.php#L46
Escaped Mutant for Mutator "FunctionCallRemoval": @@ @@ flock($stream, LOCK_EX); if (fwrite($stream, $this->formatMessages("\n")) === false) { - flock($stream, LOCK_UN); + fclose($stream); throw new RuntimeException(sprintf( 'Unable to export the log because of an error writing to the stream: %s',
mutation / PHP 8.4-ubuntu-latest: src/StreamTarget.php#L43
Escaped Mutant for Mutator "FunctionCallRemoval": @@ @@ protected function export(): void { $stream = $this->createStream(); - flock($stream, LOCK_EX); + if (fwrite($stream, $this->formatMessages("\n")) === false) { flock($stream, LOCK_UN);
mutation / PHP 8.4-ubuntu-latest: src/Message/ContextValueExtractor.php#L70
Escaped Mutant for Mutator "GreaterThan": @@ @@ $countResults = count($matches); for ($i = 1; $i < $countResults; $i++) { $l = $matches[$i][1] - $matches[$i - 1][1] - strlen($matches[$i - 1][0]) - 1; - $result[] = $matches[$i - 1][0] . ($l > 0 ? str_repeat('\\', $l) : ''); + $result[] = $matches[$i - 1][0] . ($l >= 0 ? str_repeat('\\', $l) : ''); } $result[] = $matches[$countResults - 1][0];
mutation / PHP 8.4-ubuntu-latest: src/Message/ContextValueExtractor.php#L69
Escaped Mutant for Mutator "IncrementInteger": @@ @@ $result = []; $countResults = count($matches); for ($i = 1; $i < $countResults; $i++) { - $l = $matches[$i][1] - $matches[$i - 1][1] - strlen($matches[$i - 1][0]) - 1; + $l = $matches[$i][1] - $matches[$i - 1][1] - strlen($matches[$i - 1][0]) - 2; $result[] = $matches[$i - 1][0] . ($l > 0 ? str_repeat('\\', $l) : ''); } $result[] = $matches[$countResults - 1][0];
mutation / PHP 8.4-ubuntu-latest: src/Message/ContextValueExtractor.php#L52
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ } if (!str_contains($path, '.')) { - return [str_replace('\\\\', '\\', $path)]; + } /** @psalm-var non-empty-list<array{0:string, 1:int}> $matches */
mutation / PHP 8.4-ubuntu-latest: src/Message/ContextValueExtractor.php#L48
Escaped Mutant for Mutator "ReturnRemoval": @@ @@ private static function parsePath(string $path): array { if ($path === '') { - return ['']; + } if (!str_contains($path, '.')) {
mutation / PHP 8.4-ubuntu-latest: src/Logger.php#L230
Escaped Mutant for Mutator "PublicVisibility": @@ @@ * * @psalm-assert string $level */ - public static function assertLevelIsString(mixed $level): void + protected static function assertLevelIsString(mixed $level): void { if (is_string($level)) { return;
mutation / PHP 8.4-ubuntu-latest: src/ContextProvider/SystemContextProvider.php#L65
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ */ public function setTraceLevel(int $traceLevel): self { - $this->assertTraceLevelIsValid($traceLevel); + $this->traceLevel = $traceLevel; return $this;