Recipe ConsoleInputCollector::collectValue needs to cast default value to avoid type errors

Created on 23 July 2025, 20 days ago

Problem/Motivation

Using the config source for default values can lead to non-string values like integers or booleans for the default value. That leads to type errors when prompting the user because the methods in \RectorPrefix202507\Symfony\Component\Console\Style\StyleInterface require specific argument types.

Proposed resolution

Cast the default value according to the prompt method.

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component

recipe system

Created by

πŸ‡©πŸ‡ͺGermany jurgenhaas Gottmadingen

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024