Skip to content

Psalm level 2

Psalm level 2 #1137

Triggered via pull request January 21, 2024 13:24
@vjikvjik
opened #246
psalm2
Status Success
Total duration 2m 17s
Artifacts

mutation.yml

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

Annotations

10 warnings
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/ConsoleAppInfoCollector.php#L35
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#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 "ArrayItem": --- 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#L40
Escaped Mutant for Mutator "ArrayItem": --- 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#L67
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ } elseif ($event instanceof ApplicationShutdown) { $this->applicationProcessingTimeStopped = microtime(true); } - $this->timelineCollector->collect($this, spl_object_id($event)); + } public function getSummary() : array {
mutation / PHP 8.2-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L82
Escaped Mutant for Mutator "Minus": --- Original +++ New @@ @@ if (!$this->isActive()) { return []; } - return ['console' => ['php' => ['version' => PHP_VERSION], 'request' => ['startTime' => $this->requestProcessingTimeStarted, 'processingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted], 'memory' => ['peakUsage' => memory_get_peak_usage()]]]; + return ['console' => ['php' => ['version' => PHP_VERSION], 'request' => ['startTime' => $this->requestProcessingTimeStarted, 'processingTime' => $this->requestProcessingTimeStopped + $this->requestProcessingTimeStarted], 'memory' => ['peakUsage' => memory_get_peak_usage()]]]; } private function reset() : void {