Skip to content

Commit

Permalink
qa: update to symfony/console 5.1.2, remove workarounds
Browse files Browse the repository at this point in the history
symfony/console 5.1.2 incorporates
symfony/symfony#37160, which fixes
symfony/symfony#37046,
removing the need for the workarounds introduced in
TypeHintedParamAwareInput.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
  • Loading branch information
weierophinney committed Jun 15, 2020
1 parent 1011e8e commit 17cfc66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -29,7 +29,7 @@
"php": "^7.3",
"ocramius/package-versions": "^1.0",
"psr/container": "^1.0",
"symfony/console": "^4.3 || ^5.0",
"symfony/console": "^4.3 || ^5.1.2",
"symfony/event-dispatcher": "^4.0 || ^5.0",
"symfony/polyfill-php80": "^1.17"
},
Expand Down
6 changes: 1 addition & 5 deletions src/Input/TypeHintedParamAwareInput.php
Expand Up @@ -23,11 +23,7 @@ final class TypeHintedParamAwareInput extends AbstractParamAwareInput
{
protected function modifyQuestion(Question $question): void
{
// @todo Remove once https://github.com/symfony/symfony/issues/37046 is
// addressed
if ($question->getMaxAttempts() === null) {
$question->setMaxAttempts(1000);
}
// deliberate no-op
}

// Proxy methods implementing interface
Expand Down

0 comments on commit 17cfc66

Please sign in to comment.