Skip to content

Refactor StreamWrapper and raise psalm level to 4 #973

Refactor StreamWrapper and raise psalm level to 4

Refactor StreamWrapper and raise psalm level to 4 #973

Triggered via pull request August 13, 2023 20:34
@vjikvjik
opened #221
psalm4
Status Success
Total duration 2m 5s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

mutation.yml

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

Annotations

10 warnings
mutation / PHP 8.1-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.1-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.1-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L30
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.1-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L31
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.1-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L32
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.1-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L33
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.1-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L34
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.1-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L35
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.1-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L69
Escaped Mutant for Mutator "ArrayItemRemoval": --- 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' => ['request' => ['startTime' => $this->requestProcessingTimeStarted, 'processingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted], 'memory' => ['peakUsage' => memory_get_peak_usage()]]]; } private function reset() : void {
mutation / PHP 8.1-ubuntu-latest: src/Collector/Console/ConsoleAppInfoCollector.php#L70
Escaped Mutant for Mutator "ArrayItemRemoval": --- 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' => [], 'request' => ['startTime' => $this->requestProcessingTimeStarted, 'processingTime' => $this->requestProcessingTimeStopped - $this->requestProcessingTimeStarted], 'memory' => ['peakUsage' => memory_get_peak_usage()]]]; } private function reset() : void {