Skip to content

Commit

Permalink
Fix call to undefined method
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterHolvoet committed Dec 12, 2021
1 parent 5505bb0 commit cb6fff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/Commands/core/AskBundleTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected function askBundle(): ?string
$choices[$bundle] = $label;
}

if (!$answer = $this->choice('Bundle', $choices)) {
if (!$answer = $this->io()->choice('Bundle', $choices)) {
throw new \InvalidArgumentException(t('The bundle argument is required.'));
}

Expand Down

0 comments on commit cb6fff7

Please sign in to comment.