Skip to content

[Console] SymfonyStyle - add string type to confirm() $question by co… #41987

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 5, 2021

Conversation

TomasVotruba
Copy link
Contributor

@TomasVotruba TomasVotruba commented Jul 5, 2021

PR retargeted from Symfony 5.4: #41983

Inspired by & follow up to #41946 by @nicolas-grekas


This type is always string, see contract

public function confirm(string $question, bool $default = true);

Also ConfirmationQuestion requires string strict type bellow

Probably forgotten during adding types everywhere in #32318

Q A
Branch? 5.2
Bug fix? no
New feature? no
Deprecations? no
License MIT

@derrabus
Copy link
Member

derrabus commented Jul 5, 2021

Thank you @TomasVotruba.

@derrabus derrabus merged commit 2576663 into symfony:5.2 Jul 5, 2021
@TomasVotruba TomasVotruba deleted the patch-2 branch July 5, 2021 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants