Skip to content
Snippets Groups Projects

Issue #3517481: Fixes askHidden prompt in recipes

2 files
+ 38
5
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -93,11 +93,14 @@ public function collectValue(string $name, DataDefinitionInterface $definition,
$method = $settings['method'];
$arguments = $settings['arguments'] ?? [];
// Most of the input-collecting methods of StyleInterface have a `default`
// parameter.
$arguments += [
'default' => $default_value,
];
if ($method !== 'askHidden') {
// Most of the input-collecting methods of StyleInterface have a `default`
// parameter.
$arguments += [
'default' => $default_value,
];
}
// We don't support using Symfony Console's inline validation; instead,
// input definitions should define constraints.
unset($arguments['validator']);
Loading