Skip to content

Release preparations #865

Release preparations

Release preparations #865

Triggered via pull request March 12, 2024 09:50
Status Success
Total duration 1m 13s
Artifacts

mutation.yml

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

Annotations

10 warnings
mutation / PHP 8.3-ubuntu-latest: src/Command/Migration/BaseMigrationCommand.php#L56
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $migrationFile = $migrator->getRepository()->registerMigration($migrationSkeleton->buildFileName(), $className, $migrationSkeleton->getFile()->render()); } catch (RepositoryException $e) { $output->writeln('<fg=yellow>Can not create migration</>'); - $output->writeln('<fg=red>' . $e->getMessage() . '</>'); + $output->writeln($e->getMessage() . '<fg=red>' . '</>'); return null; } $output->writeln('<info>New migration file has been created</info>');
mutation / PHP 8.3-ubuntu-latest: src/Command/Migration/BaseMigrationCommand.php#L56
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $migrationFile = $migrator->getRepository()->registerMigration($migrationSkeleton->buildFileName(), $className, $migrationSkeleton->getFile()->render()); } catch (RepositoryException $e) { $output->writeln('<fg=yellow>Can not create migration</>'); - $output->writeln('<fg=red>' . $e->getMessage() . '</>'); + $output->writeln($e->getMessage() . '</>'); return null; } $output->writeln('<info>New migration file has been created</info>');
mutation / PHP 8.3-ubuntu-latest: src/Command/Migration/BaseMigrationCommand.php#L56
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $migrationFile = $migrator->getRepository()->registerMigration($migrationSkeleton->buildFileName(), $className, $migrationSkeleton->getFile()->render()); } catch (RepositoryException $e) { $output->writeln('<fg=yellow>Can not create migration</>'); - $output->writeln('<fg=red>' . $e->getMessage() . '</>'); + $output->writeln('<fg=red>' . '</>' . $e->getMessage()); return null; } $output->writeln('<info>New migration file has been created</info>');
mutation / PHP 8.3-ubuntu-latest: src/Command/Migration/BaseMigrationCommand.php#L56
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $migrationFile = $migrator->getRepository()->registerMigration($migrationSkeleton->buildFileName(), $className, $migrationSkeleton->getFile()->render()); } catch (RepositoryException $e) { $output->writeln('<fg=yellow>Can not create migration</>'); - $output->writeln('<fg=red>' . $e->getMessage() . '</>'); + $output->writeln('<fg=red>' . $e->getMessage()); return null; } $output->writeln('<info>New migration file has been created</info>');
mutation / PHP 8.3-ubuntu-latest: src/Command/Migration/BaseMigrationCommand.php#L60
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ return null; } $output->writeln('<info>New migration file has been created</info>'); - $output->writeln("<fg=cyan>{$migrationFile}</>"); + return $migrationSkeleton; } /**
mutation / PHP 8.3-ubuntu-latest: src/Command/Migration/CreateCommand.php#L16
Escaped Mutant for Mutator "PublicVisibility": --- Original +++ New @@ @@ { protected static $defaultName = 'migrate/create'; protected static $defaultDescription = 'Creates an empty migration'; - public function configure() : void + protected function configure() : void { $this->setHelp('This command allows you to create a custom migration')->addArgument('name', InputArgument::REQUIRED, 'Migration name'); }
mutation / PHP 8.3-ubuntu-latest: src/Command/Migration/DownCommand.php#L50
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ // Confirm if (!$migrator->getConfig()->isSafe()) { $output->writeln('<fg=yellow>Migration to be reverted:</>'); - $output->writeln('— <fg=cyan>' . $migration->getState()->getName() . '</>'); + $output->writeln('— <fg=cyan>' . '</>'); if ($input->isInteractive()) { /** @var QuestionHelper $qaHelper */ $qaHelper = $this->getHelper('question');
mutation / PHP 8.3-ubuntu-latest: src/Command/Migration/DownCommand.php#L50
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ // Confirm if (!$migrator->getConfig()->isSafe()) { $output->writeln('<fg=yellow>Migration to be reverted:</>'); - $output->writeln('— <fg=cyan>' . $migration->getState()->getName() . '</>'); + if ($input->isInteractive()) { /** @var QuestionHelper $qaHelper */ $qaHelper = $this->getHelper('question');
mutation / PHP 8.3-ubuntu-latest: src/Command/Migration/ListCommand.php#L21
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ $list = $this->findMigrations($output); foreach ($list as $migration) { $state = $migration->getState(); - $output->writeln('<fg=cyan>' . $state->getName() . '</> ' . '<fg=yellow>[' . (self::MIGRATION_STATUS[$state->getStatus()] ?? '?') . ']</>'); + $output->writeln($state->getName() . '<fg=cyan>' . '</> ' . '<fg=yellow>[' . (self::MIGRATION_STATUS[$state->getStatus()] ?? '?') . ']</>'); } return self::SUCCESS; } }
mutation / PHP 8.3-ubuntu-latest: src/Command/Migration/ListCommand.php#L21
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ $list = $this->findMigrations($output); foreach ($list as $migration) { $state = $migration->getState(); - $output->writeln('<fg=cyan>' . $state->getName() . '</> ' . '<fg=yellow>[' . (self::MIGRATION_STATUS[$state->getStatus()] ?? '?') . ']</>'); + $output->writeln($state->getName() . '</> ' . '<fg=yellow>[' . (self::MIGRATION_STATUS[$state->getStatus()] ?? '?') . ']</>'); } return self::SUCCESS; } }