Update Application to support PHP 8.4 #631
Annotations
11 warnings
mutation / PHP 8.3-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.3-ubuntu-latest:
src/Application.php#L48
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
public function shutdown(int $exitCode) : void
{
if ($this->dispatcher !== null) {
- $this->dispatcher->dispatch(new ApplicationShutdown($exitCode));
+
}
}
public function renderThrowable(Throwable $e, OutputInterface $output) : void
|
mutation / PHP 8.3-ubuntu-latest:
src/Application.php#L54
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
public function renderThrowable(Throwable $e, OutputInterface $output) : void
{
- $output->writeln('', OutputInterface::VERBOSITY_QUIET);
+
$this->doRenderThrowable($e, $output);
}
protected function doRenderThrowable(Throwable $e, OutputInterface $output) : void
|
mutation / PHP 8.3-ubuntu-latest:
src/Application.php#L61
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
protected function doRenderThrowable(Throwable $e, OutputInterface $output) : void
{
- parent::doRenderThrowable($e, $output);
+
// Friendly Exception support
if ($e instanceof FriendlyExceptionInterface) {
if ($output instanceof StyleInterface) {
|
mutation / PHP 8.3-ubuntu-latest:
src/Application.php#L66
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
// Friendly Exception support
if ($e instanceof FriendlyExceptionInterface) {
if ($output instanceof StyleInterface) {
- $output->title($e->getName());
+
if (($solution = $e->getSolution()) !== null) {
$output->note($solution);
}
|
mutation / PHP 8.3-ubuntu-latest:
src/Application.php#L70
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if (($solution = $e->getSolution()) !== null) {
$output->note($solution);
}
- $output->newLine();
+
} else {
$output->writeln('<fg=red>' . $e->getName() . '</>');
if (($solution = $e->getSolution()) !== null) {
|
mutation / PHP 8.3-ubuntu-latest:
src/Application.php#L72
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
}
$output->newLine();
} else {
- $output->writeln('<fg=red>' . $e->getName() . '</>');
+ $output->writeln($e->getName() . '<fg=red>' . '</>');
if (($solution = $e->getSolution()) !== null) {
$output->writeln('<fg=yellow>' . $solution . '</>');
}
|
mutation / PHP 8.3-ubuntu-latest:
src/Application.php#L72
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
$output->newLine();
} else {
- $output->writeln('<fg=red>' . $e->getName() . '</>');
+ $output->writeln($e->getName() . '</>');
if (($solution = $e->getSolution()) !== null) {
$output->writeln('<fg=yellow>' . $solution . '</>');
}
|
mutation / PHP 8.3-ubuntu-latest:
src/Application.php#L72
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
$output->newLine();
} else {
- $output->writeln('<fg=red>' . $e->getName() . '</>');
+ $output->writeln('<fg=red>' . '</>');
if (($solution = $e->getSolution()) !== null) {
$output->writeln('<fg=yellow>' . $solution . '</>');
}
|
mutation / PHP 8.3-ubuntu-latest:
src/Application.php#L72
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
}
$output->newLine();
} else {
- $output->writeln('<fg=red>' . $e->getName() . '</>');
+ $output->writeln('<fg=red>' . '</>' . $e->getName());
if (($solution = $e->getSolution()) !== null) {
$output->writeln('<fg=yellow>' . $solution . '</>');
}
|
mutation / PHP 8.3-ubuntu-latest:
src/Application.php#L72
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
}
$output->newLine();
} else {
- $output->writeln('<fg=red>' . $e->getName() . '</>');
+ $output->writeln('<fg=red>' . $e->getName());
if (($solution = $e->getSolution()) !== null) {
$output->writeln('<fg=yellow>' . $solution . '</>');
}
|