Skip to content

Update workflow

Update workflow #1401

Triggered via pull request November 27, 2024 11:39
@vjikvjik
synchronize #274
update-workflows
Status Success
Total duration 7m 38s
Artifacts

mutation.yml

on: pull_request
Matrix: mutation
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
PHP 8.3: src/Command/CreateCommand.php#L94
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ protected function execute(InputInterface $input, OutputInterface $output) : int { $io = new SymfonyStyle($input, $output); - $this->migrator->setIo($io); + $this->migrationService->setIo($io); $this->createService->setIo($io); /** @var string|null $path */
PHP 8.3: src/Command/CreateCommand.php#L144
Escaped Mutant for Mutator "DecrementInteger": --- Original +++ New @@ @@ $name = $this->generateName($command, $table, $and); $className = $this->migrationService->generateClassName($name); $nameLimit = $this->migrator->getMigrationNameLimit(); - if ($nameLimit !== 0 && strlen($className) > $nameLimit) { + if ($nameLimit !== -1 && strlen($className) > $nameLimit) { $io->error('The migration name is too long.'); return Command::INVALID; }
PHP 8.3: src/Command/CreateCommand.php#L144
Escaped Mutant for Mutator "GreaterThan": --- Original +++ New @@ @@ $name = $this->generateName($command, $table, $and); $className = $this->migrationService->generateClassName($name); $nameLimit = $this->migrator->getMigrationNameLimit(); - if ($nameLimit !== 0 && strlen($className) > $nameLimit) { + if ($nameLimit !== 0 && strlen($className) >= $nameLimit) { $io->error('The migration name is too long.'); return Command::INVALID; }
PHP 8.3: src/Command/CreateCommand.php#L203
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ return match ($command) { 'create' => $name, 'table' => 'Create_' . $name . '_Table', - 'dropTable' => 'Drop_' . $name . '_Table', + 'dropTable' => 'Drop_' . '_Table' . $name, 'addColumn' => 'Add_Column_' . $name, 'dropColumn' => 'Drop_Column_' . $name, 'junction' => 'Junction_Table_For_' . $name . '_And_' . (string) $and . '_Tables',
PHP 8.3: src/Command/CreateCommand.php#L204
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ 'create' => $name, 'table' => 'Create_' . $name . '_Table', 'dropTable' => 'Drop_' . $name . '_Table', - 'addColumn' => 'Add_Column_' . $name, + 'addColumn' => $name . 'Add_Column_', 'dropColumn' => 'Drop_Column_' . $name, 'junction' => 'Junction_Table_For_' . $name . '_And_' . (string) $and . '_Tables', default => $result,
PHP 8.3: src/Command/CreateCommand.php#L206
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ 'dropTable' => 'Drop_' . $name . '_Table', 'addColumn' => 'Add_Column_' . $name, 'dropColumn' => 'Drop_Column_' . $name, - 'junction' => 'Junction_Table_For_' . $name . '_And_' . (string) $and . '_Tables', + 'junction' => 'Junction_Table_For_' . '_And_' . (string) $and . '_Tables', default => $result, }; } }
PHP 8.3: src/Command/CreateCommand.php#L206
Escaped Mutant for Mutator "ConcatOperandRemoval": --- Original +++ New @@ @@ 'dropTable' => 'Drop_' . $name . '_Table', 'addColumn' => 'Add_Column_' . $name, 'dropColumn' => 'Drop_Column_' . $name, - 'junction' => 'Junction_Table_For_' . $name . '_And_' . (string) $and . '_Tables', + 'junction' => 'Junction_Table_For_' . $name . (string) $and . '_Tables', default => $result, }; } }
PHP 8.3: src/Command/CreateCommand.php#L206
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ 'dropTable' => 'Drop_' . $name . '_Table', 'addColumn' => 'Add_Column_' . $name, 'dropColumn' => 'Drop_Column_' . $name, - 'junction' => 'Junction_Table_For_' . $name . '_And_' . (string) $and . '_Tables', + 'junction' => 'Junction_Table_For_' . $name . (string) $and . '_And_' . '_Tables', default => $result, }; } }
PHP 8.3: src/Command/CreateCommand.php#L206
Escaped Mutant for Mutator "Concat": --- Original +++ New @@ @@ 'dropTable' => 'Drop_' . $name . '_Table', 'addColumn' => 'Add_Column_' . $name, 'dropColumn' => 'Drop_Column_' . $name, - 'junction' => 'Junction_Table_For_' . $name . '_And_' . (string) $and . '_Tables', + 'junction' => 'Junction_Table_For_' . $name . '_And_' . '_Tables' . (string) $and, default => $result, }; } }
PHP 8.3: src/Command/NewCommand.php#L50
Escaped Mutant for Mutator "IncrementInteger": --- Original +++ New @@ @@ } protected function configure() : void { - $this->addOption('limit', 'l', InputOption::VALUE_REQUIRED, 'Number of migrations to display.', 10)->addOption('all', 'a', InputOption::VALUE_NONE, 'All new migrations.')->addOption('path', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Path to migrations to display.')->addOption('namespace', 'ns', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Namespace of migrations to display.'); + $this->addOption('limit', 'l', InputOption::VALUE_REQUIRED, 'Number of migrations to display.', 11)->addOption('all', 'a', InputOption::VALUE_NONE, 'All new migrations.')->addOption('path', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Path to migrations to display.')->addOption('namespace', 'ns', InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Namespace of migrations to display.'); } protected function execute(InputInterface $input, OutputInterface $output) : int {