Update rector/rector requirement from ^0.19.0 to ^1.0.0 (#247) #1139
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/CommandCollector.php#L43
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#L52
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
$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()];
+ $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()];
return;
}
if ($event instanceof ConsoleTerminateEvent) {
|
mutation / PHP 8.2-ubuntu-latest:
src/Collector/Console/CommandCollector.php#L53
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
$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()];
+ $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()];
return;
}
if ($event instanceof ConsoleTerminateEvent) {
|
mutation / PHP 8.2-ubuntu-latest:
src/Collector/Console/CommandCollector.php#L54
Escaped Mutant for Mutator "ArrayItem":
--- Original
+++ New
@@ @@
$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()];
+ $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()];
return;
}
if ($event instanceof ConsoleTerminateEvent) {
|
mutation / PHP 8.2-ubuntu-latest:
src/Collector/Console/CommandCollector.php#L61
Escaped Mutant for Mutator "ArrayItemRemoval":
--- 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] = ['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#L62
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#L64
Escaped Mutant for Mutator "ArrayItem":
--- 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' => $command?->getName() ?? $event->getInput()->getFirstArgument() ?? '', '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#L65
Escaped Mutant for Mutator "ArrayItem":
--- 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' => $command?->getName() ?? $event->getInput()->getFirstArgument() ?? '', 'command' => $command, 'input' => $this->castInputToString($event->getInput()), 'output' > $this->fetchOutput($event->getOutput()), 'exitCode' => $event->getExitCode()];
return;
}
$definition = $command?->getDefinition();
|