Update psr/http-message requirement from ^1.0 to ^2.0 #1151
Annotations
10 warnings
Run roave infection.:
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
|
Run roave infection.:
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
{
|
Run roave infection.:
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
{
|
Run roave infection.:
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
{
|
Run roave infection.:
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
{
|
Run roave infection.:
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
{
|
Run roave infection.:
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
{
|
Run roave infection.:
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
{
|
Run roave infection.:
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
{
|
Run roave infection.:
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
{
|
Loading