CLI-1316: [log:tail] warning for non-interactive mode #2206
mutation.yml
on: pull_request
Mutation Testing
8m 16s
Annotations
2 warnings
Mutation Testing:
src/Command/CommandBase.php#L399
Escaped Mutant for Mutator "PublicVisibility":
--- Original
+++ New
@@ @@
* @param array[]|object[] $items An array of objects or arrays.
* @param string $uniqueProperty The property of the $item that will be used to identify the object.
*/
- public function promptChooseFromObjectsOrArrays(array|ArrayObject $items, string $uniqueProperty, string $labelProperty, string $questionText, bool $multiselect = FALSE) : object|array|null
+ protected function promptChooseFromObjectsOrArrays(array|ArrayObject $items, string $uniqueProperty, string $labelProperty, string $questionText, bool $multiselect = FALSE) : object|array|null
{
$list = [];
foreach ($items as $item) {
|
Mutation Testing:
src/Command/CommandBase.php#L410
Escaped Mutant for Mutator "IncrementInteger":
--- Original
+++ New
@@ @@
}
}
$labels = array_values($list);
- $default = $multiselect ? 0 : $labels[0];
+ $default = $multiselect ? 1 : $labels[0];
$question = new ChoiceQuestion($questionText, $labels, $default);
$question->setMultiselect($multiselect);
$choiceId = $this->io->askQuestion($question);
|