Skip to content

Remove suggestions from composer.json and add bump-after-update option #779

Remove suggestions from composer.json and add bump-after-update option

Remove suggestions from composer.json and add bump-after-update option #779

Triggered via pull request February 3, 2025 11:21
Status Success
Total duration 4m 56s
Artifacts

mutation.yml

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

Annotations

10 warnings
mutation / PHP 8.4-ubuntu-latest: src/Command/InfoCommand.php#L121
Escaped Mutant for Mutator "MethodCallRemoval": @@ @@ if (empty($groups)) { $io->writeln(' <fg=gray>(empty)</>'); } else { - $io->newLine(); + $this->writeConfiguration($io, $groups, offset: 2, addSeparateLine: false); } }
mutation / PHP 8.4-ubuntu-latest: src/Command/InfoCommand.php#L127
Escaped Mutant for Mutator "IncrementInteger": @@ @@ } } } - return 0; + return 1; } /** * @psalm-param array<string, string|string[]> $configuration
mutation / PHP 8.4-ubuntu-latest: src/Command/InfoCommand.php#L141
Escaped Mutant for Mutator "IfNegation": @@ @@ { foreach ($configuration as $group => $values) { $this->writeGroup($io, $group, $values, $offset); - if ($addSeparateLine) { + if (!$addSeparateLine) { $io->newLine(); } }
mutation / PHP 8.4-ubuntu-latest: src/Command/InfoCommand.php#L152
Escaped Mutant for Mutator "UnwrapStrRepeat": @@ @@ */ private function writeGroup(SymfonyStyle $io, string $group, array|string $items, int $offset): void { - $prefix = str_repeat(' ', $offset); + $prefix = ' '; $items = (array) $items; $io->write($prefix . '<fg=cyan>' . $group . '</>'); if (empty($items)) {
mutation / PHP 8.4-ubuntu-latest: src/Command/InfoCommand.php#L160
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ } else { foreach ($items as $item) { $io->newLine(); - $io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . $item . '</>' : $item)); + $io->write($prefix . ' - ' . (Options::isVariable($item) ? $item . '</>' : $item)); } } $io->newLine(); } }
mutation / PHP 8.4-ubuntu-latest: src/Command/InfoCommand.php#L160
Escaped Mutant for Mutator "ConcatOperandRemoval": @@ @@ } else { foreach ($items as $item) { $io->newLine(); - $io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . $item . '</>' : $item)); + $io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . $item : $item)); } } $io->newLine(); } }
mutation / PHP 8.4-ubuntu-latest: src/Command/InfoCommand.php#L160
Escaped Mutant for Mutator "Ternary": @@ @@ } else { foreach ($items as $item) { $io->newLine(); - $io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . $item . '</>' : $item)); + $io->write($prefix . ' - ' . (Options::isVariable($item) ? $item : '<fg=green>' . $item . '</>')); } } $io->newLine(); } }
mutation / PHP 8.4-ubuntu-latest: src/Command/RebuildCommand.php#L29
Escaped Mutant for Mutator "DecrementInteger": @@ @@ protected function execute(InputInterface $input, OutputInterface $output): int { new MergePlanProcess($this->requireComposer()); - return 0; + return -1; } }
mutation / PHP 8.4-ubuntu-latest: src/Command/RebuildCommand.php#L29
Escaped Mutant for Mutator "IncrementInteger": @@ @@ protected function execute(InputInterface $input, OutputInterface $output): int { new MergePlanProcess($this->requireComposer()); - return 0; + return 1; } }
mutation / PHP 8.4-ubuntu-latest: src/Composer/MergePlanProcess.php#L81
Escaped Mutant for Mutator "Continue_": @@ @@ if (Options::containsWildcard($file)) { $matches = glob($absoluteFilePath); if (empty($matches)) { - continue; + break; } foreach ($matches as $match) { $this->mergePlan->add($this->normalizePackageFilePath($package, $match, $isVendorOverrideLayer), $packageName, $group);