-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[Console][QuestionHelper] add optional timeout for human interaction #61092
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
base: 7.4
Are you sure you want to change the base?
Conversation
Co-authored-by: Oskar Stark <oskarstark@googlemail.com>
Co-authored-by: Anderson Müller <anderson.a.muller@gmail.com>
Any chance this get approved/merged soon? I believe those CI failures are not relevant. Thanks |
$plural = 1 === $timeoutSeconds ? '' : 's'; | ||
throw new MissingInputException("Timed out after waiting for input for $timeoutSeconds second$plural."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$plural = 1 === $timeoutSeconds ? '' : 's'; | |
throw new MissingInputException("Timed out after waiting for input for $timeoutSeconds second$plural."); | |
throw new MissingInputException(\sprintf('Timed out after waiting for input for %d %s.', $timeoutSeconds, $timeoutSeconds === 1 ? 'second' : 'seconds')); |
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks equal to me, is there any Symfony cs rule that states sprintf is prefered? If so, I can change it.
About: