Update rector/rector requirement from ^1.0.0 to ^2.0.0 #764
Annotations
11 warnings
mutation / PHP 8.2-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.2-ubuntu-latest:
src/Command/CopyCommand.php#L54
Escaped Mutant for Mutator "UnwrapTrim":
--- Original
+++ New
@@ @@
$selectedFileNames = $input->getArgument('files');
$builder = new PackageFilesProcess($this->requireComposer(), [$package]);
$filesystem = new Filesystem();
- $targetPath = $builder->paths()->absolute(trim($target, '\\/'));
+ $targetPath = $builder->paths()->absolute($target);
$filesystem->ensureDirectoryExists($targetPath);
$prefix = str_replace('/', '-', $package);
foreach ($this->prepareFiles($builder->files(), $selectedFileNames) as $file) {
|
mutation / PHP 8.2-ubuntu-latest:
src/Command/CopyCommand.php#L55
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$builder = new PackageFilesProcess($this->requireComposer(), [$package]);
$filesystem = new Filesystem();
$targetPath = $builder->paths()->absolute(trim($target, '\\/'));
- $filesystem->ensureDirectoryExists($targetPath);
+
$prefix = str_replace('/', '-', $package);
foreach ($this->prepareFiles($builder->files(), $selectedFileNames) as $file) {
$filename = str_replace('/', '-', $file->filename());
|
mutation / PHP 8.2-ubuntu-latest:
src/Command/InfoCommand.php#L112
Escaped Mutant for Mutator "IfNegation":
--- Original
+++ New
@@ @@
} else {
$isFirst = true;
foreach ($environmentsConfiguration as $environment => $groups) {
- if ($isFirst) {
+ if (!$isFirst) {
$isFirst = false;
} else {
$io->newLine();
|
mutation / PHP 8.2-ubuntu-latest:
src/Command/InfoCommand.php#L115
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
if ($isFirst) {
$isFirst = false;
} else {
- $io->newLine();
+
}
$io->write(' <fg=bright-magenta>' . $environment . '</>');
if (empty($groups)) {
|
mutation / PHP 8.2-ubuntu-latest:
src/Command/InfoCommand.php#L127
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
}
}
- return 0;
+ return 1;
}
/**
* @psalm-param array<string, string|string[]> $configuration
|
mutation / PHP 8.2-ubuntu-latest:
src/Command/InfoCommand.php#L136
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
/**
* @psalm-param array<string, string|string[]> $configuration
*/
- private function writeConfiguration(SymfonyStyle $io, array $configuration, int $offset = 1, bool $addSeparateLine = true) : void
+ private function writeConfiguration(SymfonyStyle $io, array $configuration, int $offset = 2, bool $addSeparateLine = true) : void
{
foreach ($configuration as $group => $values) {
$this->writeGroup($io, $group, $values, $offset);
|
mutation / PHP 8.2-ubuntu-latest:
src/Command/InfoCommand.php#L154
Escaped Mutant for Mutator "ConcatOperandRemoval":
--- Original
+++ New
@@ @@
{
$prefix = str_repeat(' ', $offset);
$items = (array) $items;
- $io->write($prefix . '<fg=cyan>' . $group . '</>');
+ $io->write('<fg=cyan>' . $group . '</>');
if (empty($items)) {
$io->write(' <fg=gray>(empty)</>');
} else {
|
mutation / PHP 8.2-ubuntu-latest:
src/Command/InfoCommand.php#L160
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
} 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.2-ubuntu-latest:
src/Command/InfoCommand.php#L160
Escaped Mutant for Mutator "Concat":
--- Original
+++ New
@@ @@
} 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.2-ubuntu-latest:
src/Command/InfoCommand.php#L163
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$io->write($prefix . ' - ' . (Options::isVariable($item) ? '<fg=green>' . $item . '</>' : $item));
}
}
- $io->newLine();
+
}
}
|