8000 fix incorrect usage of sprintf by jrushlow · Pull Request #757 · symfony/maker-bundle · GitHub
[go: up one dir, main page]

Skip to content

fix incorrect usage of sprintf #757

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
Dec 7, 2020
Merged

Conversation

jrushlow
Copy link
Collaborator
@jrushlow jrushlow commented Dec 4, 2020

php-cs-fixer released an update which catches useless sprintf() calls. A couple were found and fixed.

refs PHP-CS-Fixer/PHP-CS-Fixer#5280

@@ -298,7 +298,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
UniqueEntity::class,
[
'fields' => [$usernameField],
'message' => sprintf('There is already an account with this '.$usernameField),
'message' => sprintf('There is already an account with this %s', $usernameField),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The message sounds weird

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you not wrong. it made sense at the time...

@weaverryan
Copy link
Member

Thanks Jesse!

@weaverryan weaverryan merged commit ae3801a into symfony:main Dec 7, 2020
@jrushlow jrushlow deleted the fix/sprintf branch March 3, 2021 14:22
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.

3 participants
0