diff --git a/legacy/src/Command/Team/Project/TeamProjectAddCommand.php b/legacy/src/Command/Team/Project/TeamProjectAddCommand.php index f24819971..e5d92b911 100644 --- a/legacy/src/Command/Team/Project/TeamProjectAddCommand.php +++ b/legacy/src/Command/Team/Project/TeamProjectAddCommand.php @@ -122,7 +122,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $first = true; do { $choice = $this->questionHelper->askInput($questionText, null, array_values($autocomplete), function ($value) use ($autocomplete, $first, $teamProjectIds): ?string { - [$id, ] = explode(' - ', $value); + [$id] = explode(' - ', (string) $value, 2); if (empty(trim($id))) { if (!$first) { return null;