Merge pull request #185 from phpsu/php8.3 #285
main.yml
on: push
Roave BC Check
40s
docker
18s
Matrix: test
Annotations
116 warnings
docker
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: docker/setup-qemu-action@v1, docker/setup-buildx-action@v1, docker/login-action@v1, little-core-labs/get-git-tag@v3.0.1, docker/build-push-action@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
docker
The following actions uses node12 which is deprecated and will be forced to run on node16: docker/setup-qemu-action@v1, docker/setup-buildx-action@v1, docker/login-action@v1, little-core-labs/get-git-tag@v3.0.1, docker/build-push-action@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
docker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
docker
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
PHP 8.3 + Symfony: 6
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP 8.3 + Symfony: 6
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.3 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L30
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
private ?array $instances = null;
protected function configure(): void
{
- $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['Connect to Database of AppInstance via SSH.', '(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
+ $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
}
protected function initialize(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.3 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.3 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L43
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+ $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ? $default : StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()));
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.3 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$appInstancesWithHost = $this->getAppInstancesWithHost();
if (!in_array($default, $appInstancesWithHost, true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $appInstancesWithHost);
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.3 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L61
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$output->writeln('You selected: ' . $destination);
$input->setArgument('instance', $destination);
}
- $default = $input->hasOption('database') ? $input->getOption('database') : '';
+ $default = $input->hasOption('database') ? '' : $input->getOption('database');
$instance = $input->getArgument('instance');
assert(is_string($instance));
$databases = $this->getDatabasesForAppInstance($instance);
|
PHP 8.3 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L67
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$databases = $this->getDatabasesForAppInstance($instance);
if (count($databases) > 1 && !in_array($default, $databases, true)) {
$question = new ChoiceQuestion('Please select one of the Databases', $databases);
- $question->setErrorMessage('Database %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$database = $questionHelper->ask($input, $output, $question);
|
PHP 8.3 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L82
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$mysqlCommand = $input->getArgument('mysqlcommand') ?: '';
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
- assert(is_string($instance) && is_string($mysqlCommand));
+ assert(is_string($instance) || is_string($mysqlCommand));
return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
}
/**
|
PHP 8.3 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L90
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
assert(is_string($instance) && is_string($mysqlCommand));
- return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun($input->getOption('dry-run')));
}
/**
* todo: extract to utility
|
PHP 8.3 + Symfony: 6:
src/Cli/SshCliCommand.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
if (!in_array($default, $this->getAppInstancesWithHost(), true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $this->getAppInstancesWithHost());
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.3 + Symfony: 6:
src/Cli/SshCliCommand.php#L87
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
foreach ($commandArray as $command) {
$builder->addSingle($command, true);
}
- return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun($input->getOption('dry-run')));
}
/**
* @return string[]
|
PHP 8.3 + Symfony: 5
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP 8.3 + Symfony: 5
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.3 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L30
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
private ?array $instances = null;
protected function configure(): void
{
- $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['Connect to Database of AppInstance via SSH.', '(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
+ $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
}
protected function initialize(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.3 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.3 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L43
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+ $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ? $default : StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()));
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.3 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$appInstancesWithHost = $this->getAppInstancesWithHost();
if (!in_array($default, $appInstancesWithHost, true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $appInstancesWithHost);
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.3 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L61
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$output->writeln('You selected: ' . $destination);
$input->setArgument('instance', $destination);
}
- $default = $input->hasOption('database') ? $input->getOption('database') : '';
+ $default = $input->hasOption('database') ? '' : $input->getOption('database');
$instance = $input->getArgument('instance');
assert(is_string($instance));
$databases = $this->getDatabasesForAppInstance($instance);
|
PHP 8.3 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L67
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$databases = $this->getDatabasesForAppInstance($instance);
if (count($databases) > 1 && !in_array($default, $databases, true)) {
$question = new ChoiceQuestion('Please select one of the Databases', $databases);
- $question->setErrorMessage('Database %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$database = $questionHelper->ask($input, $output, $question);
|
PHP 8.3 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L82
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$mysqlCommand = $input->getArgument('mysqlcommand') ?: '';
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
- assert(is_string($instance) && is_string($mysqlCommand));
+ assert(is_string($instance) || is_string($mysqlCommand));
return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
}
/**
|
PHP 8.3 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L90
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
assert(is_string($instance) && is_string($mysqlCommand));
- return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun($input->getOption('dry-run')));
}
/**
* todo: extract to utility
|
PHP 8.3 + Symfony: 5:
src/Cli/SshCliCommand.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
if (!in_array($default, $this->getAppInstancesWithHost(), true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $this->getAppInstancesWithHost());
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.3 + Symfony: 5:
src/Cli/SshCliCommand.php#L87
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
foreach ($commandArray as $command) {
$builder->addSingle($command, true);
}
- return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun($input->getOption('dry-run')));
}
/**
* @return string[]
|
PHP 8.3 + Symfony: 7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP 8.3 + Symfony: 7
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.3 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L30
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
private ?array $instances = null;
protected function configure(): void
{
- $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['Connect to Database of AppInstance via SSH.', '(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
+ $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
}
protected function initialize(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.3 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.3 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L43
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+ $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ? $default : StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()));
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.3 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$appInstancesWithHost = $this->getAppInstancesWithHost();
if (!in_array($default, $appInstancesWithHost, true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $appInstancesWithHost);
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.3 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L61
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$output->writeln('You selected: ' . $destination);
$input->setArgument('instance', $destination);
}
- $default = $input->hasOption('database') ? $input->getOption('database') : '';
+ $default = $input->hasOption('database') ? '' : $input->getOption('database');
$instance = $input->getArgument('instance');
assert(is_string($instance));
$databases = $this->getDatabasesForAppInstance($instance);
|
PHP 8.3 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L67
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$databases = $this->getDatabasesForAppInstance($instance);
if (count($databases) > 1 && !in_array($default, $databases, true)) {
$question = new ChoiceQuestion('Please select one of the Databases', $databases);
- $question->setErrorMessage('Database %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$database = $questionHelper->ask($input, $output, $question);
|
PHP 8.3 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L82
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$mysqlCommand = $input->getArgument('mysqlcommand') ?: '';
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
- assert(is_string($instance) && is_string($mysqlCommand));
+ assert(is_string($instance) || is_string($mysqlCommand));
return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
}
/**
|
PHP 8.3 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L90
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
assert(is_string($instance) && is_string($mysqlCommand));
- return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun($input->getOption('dry-run')));
}
/**
* todo: extract to utility
|
PHP 8.3 + Symfony: 7:
src/Cli/SshCliCommand.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
if (!in_array($default, $this->getAppInstancesWithHost(), true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $this->getAppInstancesWithHost());
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.3 + Symfony: 7:
src/Cli/SshCliCommand.php#L87
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
foreach ($commandArray as $command) {
$builder->addSingle($command, true);
}
- return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun($input->getOption('dry-run')));
}
/**
* @return string[]
|
PHP 8.2 + Symfony: 6
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP 8.2 + Symfony: 6
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.2 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L30
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
private ?array $instances = null;
protected function configure(): void
{
- $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['Connect to Database of AppInstance via SSH.', '(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
+ $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
}
protected function initialize(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.2 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.2 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L43
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+ $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ? $default : StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()));
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.2 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$appInstancesWithHost = $this->getAppInstancesWithHost();
if (!in_array($default, $appInstancesWithHost, true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $appInstancesWithHost);
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.2 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L61
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$output->writeln('You selected: ' . $destination);
$input->setArgument('instance', $destination);
}
- $default = $input->hasOption('database') ? $input->getOption('database') : '';
+ $default = $input->hasOption('database') ? '' : $input->getOption('database');
$instance = $input->getArgument('instance');
assert(is_string($instance));
$databases = $this->getDatabasesForAppInstance($instance);
|
PHP 8.2 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L67
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$databases = $this->getDatabasesForAppInstance($instance);
if (count($databases) > 1 && !in_array($default, $databases, true)) {
$question = new ChoiceQuestion('Please select one of the Databases', $databases);
- $question->setErrorMessage('Database %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$database = $questionHelper->ask($input, $output, $question);
|
PHP 8.2 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L82
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$mysqlCommand = $input->getArgument('mysqlcommand') ?: '';
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
- assert(is_string($instance) && is_string($mysqlCommand));
+ assert(is_string($instance) || is_string($mysqlCommand));
return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
}
/**
|
PHP 8.2 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L90
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
assert(is_string($instance) && is_string($mysqlCommand));
- return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun($input->getOption('dry-run')));
}
/**
* todo: extract to utility
|
PHP 8.2 + Symfony: 6:
src/Cli/SshCliCommand.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
if (!in_array($default, $this->getAppInstancesWithHost(), true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $this->getAppInstancesWithHost());
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.2 + Symfony: 6:
src/Cli/SshCliCommand.php#L87
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
foreach ($commandArray as $command) {
$builder->addSingle($command, true);
}
- return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun($input->getOption('dry-run')));
}
/**
* @return string[]
|
PHP 8.2 + Symfony: 7
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP 8.2 + Symfony: 7
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.2 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L30
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
private ?array $instances = null;
protected function configure(): void
{
- $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['Connect to Database of AppInstance via SSH.', '(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
+ $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
}
protected function initialize(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.2 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.2 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L43
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+ $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ? $default : StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()));
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.2 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$appInstancesWithHost = $this->getAppInstancesWithHost();
if (!in_array($default, $appInstancesWithHost, true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $appInstancesWithHost);
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.2 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L61
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$output->writeln('You selected: ' . $destination);
$input->setArgument('instance', $destination);
}
- $default = $input->hasOption('database') ? $input->getOption('database') : '';
+ $default = $input->hasOption('database') ? '' : $input->getOption('database');
$instance = $input->getArgument('instance');
assert(is_string($instance));
$databases = $this->getDatabasesForAppInstance($instance);
|
PHP 8.2 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L67
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$databases = $this->getDatabasesForAppInstance($instance);
if (count($databases) > 1 && !in_array($default, $databases, true)) {
$question = new ChoiceQuestion('Please select one of the Databases', $databases);
- $question->setErrorMessage('Database %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$database = $questionHelper->ask($input, $output, $question);
|
PHP 8.2 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L82
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$mysqlCommand = $input->getArgument('mysqlcommand') ?: '';
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
- assert(is_string($instance) && is_string($mysqlCommand));
+ assert(is_string($instance) || is_string($mysqlCommand));
return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
}
/**
|
PHP 8.2 + Symfony: 7:
src/Cli/MysqlCliCommand.php#L90
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
assert(is_string($instance) && is_string($mysqlCommand));
- return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun($input->getOption('dry-run')));
}
/**
* todo: extract to utility
|
PHP 8.2 + Symfony: 7:
src/Cli/SshCliCommand.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
if (!in_array($default, $this->getAppInstancesWithHost(), true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $this->getAppInstancesWithHost());
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.2 + Symfony: 7:
src/Cli/SshCliCommand.php#L87
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
foreach ($commandArray as $command) {
$builder->addSingle($command, true);
}
- return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun($input->getOption('dry-run')));
}
/**
* @return string[]
|
PHP 8.1 + Symfony: 5
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP 8.1 + Symfony: 5
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.1 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L30
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
private ?array $instances = null;
protected function configure(): void
{
- $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['Connect to Database of AppInstance via SSH.', '(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
+ $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
}
protected function initialize(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.1 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.1 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L43
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+ $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ? $default : StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()));
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.1 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$appInstancesWithHost = $this->getAppInstancesWithHost();
if (!in_array($default, $appInstancesWithHost, true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $appInstancesWithHost);
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.1 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L61
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$output->writeln('You selected: ' . $destination);
$input->setArgument('instance', $destination);
}
- $default = $input->hasOption('database') ? $input->getOption('database') : '';
+ $default = $input->hasOption('database') ? '' : $input->getOption('database');
$instance = $input->getArgument('instance');
assert(is_string($instance));
$databases = $this->getDatabasesForAppInstance($instance);
|
PHP 8.1 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L67
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$databases = $this->getDatabasesForAppInstance($instance);
if (count($databases) > 1 && !in_array($default, $databases, true)) {
$question = new ChoiceQuestion('Please select one of the Databases', $databases);
- $question->setErrorMessage('Database %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$database = $questionHelper->ask($input, $output, $question);
|
PHP 8.1 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L82
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$mysqlCommand = $input->getArgument('mysqlcommand') ?: '';
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
- assert(is_string($instance) && is_string($mysqlCommand));
+ assert(is_string($instance) || is_string($mysqlCommand));
return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
}
/**
|
PHP 8.1 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L90
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
assert(is_string($instance) && is_string($mysqlCommand));
- return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun($input->getOption('dry-run')));
}
/**
* todo: extract to utility
|
PHP 8.1 + Symfony: 5:
src/Cli/SshCliCommand.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
if (!in_array($default, $this->getAppInstancesWithHost(), true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $this->getAppInstancesWithHost());
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.1 + Symfony: 5:
src/Cli/SshCliCommand.php#L87
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
foreach ($commandArray as $command) {
$builder->addSingle($command, true);
}
- return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun($input->getOption('dry-run')));
}
/**
* @return string[]
|
PHP 8.1 + Symfony: 6
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP 8.1 + Symfony: 6
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.1 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L30
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
private ?array $instances = null;
protected function configure(): void
{
- $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['Connect to Database of AppInstance via SSH.', '(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
+ $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
}
protected function initialize(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.1 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.1 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L43
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+ $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ? $default : StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()));
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.1 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$appInstancesWithHost = $this->getAppInstancesWithHost();
if (!in_array($default, $appInstancesWithHost, true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $appInstancesWithHost);
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.1 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L61
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$output->writeln('You selected: ' . $destination);
$input->setArgument('instance', $destination);
}
- $default = $input->hasOption('database') ? $input->getOption('database') : '';
+ $default = $input->hasOption('database') ? '' : $input->getOption('database');
$instance = $input->getArgument('instance');
assert(is_string($instance));
$databases = $this->getDatabasesForAppInstance($instance);
|
PHP 8.1 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L67
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$databases = $this->getDatabasesForAppInstance($instance);
if (count($databases) > 1 && !in_array($default, $databases, true)) {
$question = new ChoiceQuestion('Please select one of the Databases', $databases);
- $question->setErrorMessage('Database %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$database = $questionHelper->ask($input, $output, $question);
|
PHP 8.1 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L82
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$mysqlCommand = $input->getArgument('mysqlcommand') ?: '';
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
- assert(is_string($instance) && is_string($mysqlCommand));
+ assert(is_string($instance) || is_string($mysqlCommand));
return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
}
/**
|
PHP 8.1 + Symfony: 6:
src/Cli/MysqlCliCommand.php#L90
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
assert(is_string($instance) && is_string($mysqlCommand));
- return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun($input->getOption('dry-run')));
}
/**
* todo: extract to utility
|
PHP 8.1 + Symfony: 6:
src/Cli/SshCliCommand.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
if (!in_array($default, $this->getAppInstancesWithHost(), true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $this->getAppInstancesWithHost());
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.1 + Symfony: 6:
src/Cli/SshCliCommand.php#L87
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
foreach ($commandArray as $command) {
$builder->addSingle($command, true);
}
- return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun($input->getOption('dry-run')));
}
/**
* @return string[]
|
PHP 8.2 + Symfony: 5
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/cache@v2, codecov/codecov-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
PHP 8.2 + Symfony: 5
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
PHP 8.2 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L30
Escaped Mutant for Mutator "ArrayItemRemoval":
--- Original
+++ New
@@ @@
private ?array $instances = null;
protected function configure(): void
{
- $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['Connect to Database of AppInstance via SSH.', '(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
+ $this->setName('mysql')->setDescription('connect to configured database')->setHelp(implode(PHP_EOL, ['(connects from the executing location)']))->addOption('dry-run', 'd', InputOption::VALUE_NONE, 'just display the commands.')->addOption('database', 'b', InputArgument::OPTIONAL, 'Which Database to connect to')->addArgument('instance', InputArgument::REQUIRED, 'Which AppInstance to connect to')->addArgument('mysqlcommand', InputArgument::OPTIONAL, 'Execute a mysql command instead of connecting to it');
}
protected function initialize(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.2 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L41
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.2 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L43
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
{
/** @var string $default */
$default = $input->hasArgument('instance') ? $input->getArgument('instance') ?? '' : '';
- $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ?: $default);
+ $input->setArgument('instance', StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()) ? $default : StringHelper::findStringInArray($default, $this->getAppInstancesWithHost()));
}
protected function interact(InputInterface $input, OutputInterface $output): void
{
|
PHP 8.2 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L53
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$appInstancesWithHost = $this->getAppInstancesWithHost();
if (!in_array($default, $appInstancesWithHost, true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $appInstancesWithHost);
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.2 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L61
Escaped Mutant for Mutator "Ternary":
--- Original
+++ New
@@ @@
$output->writeln('You selected: ' . $destination);
$input->setArgument('instance', $destination);
}
- $default = $input->hasOption('database') ? $input->getOption('database') : '';
+ $default = $input->hasOption('database') ? '' : $input->getOption('database');
$instance = $input->getArgument('instance');
assert(is_string($instance));
$databases = $this->getDatabasesForAppInstance($instance);
|
PHP 8.2 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L67
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
$databases = $this->getDatabasesForAppInstance($instance);
if (count($databases) > 1 && !in_array($default, $databases, true)) {
$question = new ChoiceQuestion('Please select one of the Databases', $databases);
- $question->setErrorMessage('Database %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$database = $questionHelper->ask($input, $output, $question);
|
PHP 8.2 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L82
Escaped Mutant for Mutator "LogicalAnd":
--- Original
+++ New
@@ @@
$mysqlCommand = $input->getArgument('mysqlcommand') ?: '';
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
- assert(is_string($instance) && is_string($mysqlCommand));
+ assert(is_string($instance) || is_string($mysqlCommand));
return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
}
/**
|
PHP 8.2 + Symfony: 5:
src/Cli/MysqlCliCommand.php#L90
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
/** @var string|null $database */
$database = $input->getOption('database') ?: null;
assert(is_string($instance) && is_string($mysqlCommand));
- return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->mysql($output, $this->configurationLoader->getConfig(), (new MysqlOptions())->setAppInstance($instance)->setCommand($mysqlCommand)->setDatabase($database)->setDryRun($input->getOption('dry-run')));
}
/**
* todo: extract to utility
|
PHP 8.2 + Symfony: 5:
src/Cli/SshCliCommand.php#L59
Escaped Mutant for Mutator "MethodCallRemoval":
--- Original
+++ New
@@ @@
}
if (!in_array($default, $this->getAppInstancesWithHost(), true)) {
$question = new ChoiceQuestion('Please select one of the AppInstances', $this->getAppInstancesWithHost());
- $question->setErrorMessage('AppInstance %s not found in Config.');
+
$questionHelper = $this->getHelper('question');
assert($questionHelper instanceof QuestionHelper);
$destination = $questionHelper->ask($input, $output, $question);
|
PHP 8.2 + Symfony: 5:
src/Cli/SshCliCommand.php#L87
Escaped Mutant for Mutator "CastBool":
--- Original
+++ New
@@ @@
foreach ($commandArray as $command) {
$builder->addSingle($command, true);
}
- return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun((bool) $input->getOption('dry-run')));
+ return $this->controller->ssh($output, $this->configurationLoader->getConfig(), (new SshOptions($destination))->setCurrentHost($currentHost)->setCommand($builder)->setDryRun($input->getOption('dry-run')));
}
/**
* @return string[]
|