Skip to content

Psalm 1 (#267)

Psalm 1 (#267) #1232

Triggered via push December 21, 2024 10:13
Status Success
Total duration 2m 12s
Artifacts

mutation.yml

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

Annotations

11 warnings
mutation / PHP 8.2-ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
mutation / PHP 8.2-ubuntu-latest: src/Collector/CollectorTrait.php#L18
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } public function shutdown() : void { - $this->reset(); + $this->isActive = false; } public function getName() : string
mutation / PHP 8.2-ubuntu-latest: src/Collector/CollectorTrait.php#L19
Escaped Mutant for Mutator "FalseValue": --- Original +++ New @@ @@ public function shutdown() : void { $this->reset(); - $this->isActive = false; + $this->isActive = true; } public function getName() : string {
mutation / PHP 8.2-ubuntu-latest: src/Collector/Console/CommandCollector.php#L59
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ if (!$this->isActive()) { return; } - $this->timelineCollector->collect($this, spl_object_id($event)); + $command = $event->getCommand(); if ($event instanceof ConsoleErrorEvent) { $this->commands[$event::class] = ['name' => $event->getInput()->getFirstArgument() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' => $this->fetchOutput($event->getOutput()), 'error' => $event->getError()->getMessage(), 'exitCode' => $event->getExitCode()];
mutation / PHP 8.2-ubuntu-latest: src/Collector/Console/CommandCollector.php#L78
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ return; } if ($event instanceof ConsoleTerminateEvent) { - $this->commands[$event::class] = ['name' => $command?->getName() ?? $event->getInput()->getFirstArgument() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' => $this->fetchOutput($event->getOutput()), 'exitCode' => $event->getExitCode()]; + $this->commands[$event::class] = ['name' => $event->getInput()->getFirstArgument() ?? $command?->getName() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' => $this->fetchOutput($event->getOutput()), 'exitCode' => $event->getExitCode()]; return; } $definition = $command?->getDefinition();
mutation / PHP 8.2-ubuntu-latest: src/Collector/Console/CommandCollector.php#L89
Escaped Mutant for Mutator "Coalesce": --- Original +++ New @@ @@ return; } $definition = $command?->getDefinition(); - $this->commands[$event::class] = ['name' => $command?->getName() ?? $event->getInput()->getFirstArgument() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' => $this->fetchOutput($event->getOutput()), 'arguments' => $definition?->getArguments() ?? [], 'options' => $definition?->getOptions() ?? []]; + $this->commands[$event::class] = ['name' => $event->getInput()->getFirstArgument() ?? $command?->getName() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' => $this->fetchOutput($event->getOutput()), 'arguments' => $definition?->getArguments() ?? [], 'options' => $definition?->getOptions() ?? []]; } public function getSummary() : array {
mutation / PHP 8.2-ubuntu-latest: src/Collector/Console/CommandCollector.php#L121
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ if ($commandEvent === null) { return []; } - return ['command' => ['name' => $commandEvent['name'], 'class' => $commandEvent['command'] instanceof Command ? $commandEvent['command']::class : null, 'input' => $commandEvent['input'], 'exitCode' => $commandEvent['exitCode'] ?? self::UNDEFINED_EXIT_CODE]]; + return ['command' => ['class' => $commandEvent['command'] instanceof Command ? $commandEvent['command']::class : null, 'input' => $commandEvent['input'], 'exitCode' => $commandEvent['exitCode'] ?? self::UNDEFINED_EXIT_CODE]]; } private function reset() : void {
mutation / PHP 8.2-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L36
Escaped Mutant for Mutator "Minus": --- Original +++ New @@ @@ if (!$this->isActive()) { return []; } - return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()]; + return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped + $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()]; } public function collect(object $event) : void {
mutation / PHP 8.2-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L37
Escaped Mutant for Mutator "Minus": --- Original +++ New @@ @@ if (!$this->isActive()) { return []; } - return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()]; + return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted + $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()]; } public function collect(object $event) : void {
mutation / PHP 8.2-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L38
Escaped Mutant for Mutator "Minus": --- Original +++ New @@ @@ if (!$this->isActive()) { return []; } - return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()]; + return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped + $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()]; } public function collect(object $event) : void {
mutation / PHP 8.2-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L39
Escaped Mutant for Mutator "Minus": --- Original +++ New @@ @@ if (!$this->isActive()) { return []; } - return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()]; + return ['applicationProcessingTime' => $this->applicationProcessingTimeStopped - $this->applicationProcessingTimeStarted, 'preloadTime' => $this->applicationProcessingTimeStarted - $this->requestProcessingTimeStarted, 'applicationEmit' => $this->applicationProcessingTimeStopped - $this->requestProcessingTimeStopped, 'requestProcessingTime' => $this->requestProcessingTimeStopped + $this->requestProcessingTimeStarted, 'memoryPeakUsage' => memory_get_peak_usage(), 'memoryUsage' => memory_get_usage()]; } public function collect(object $event) : void {