-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] BIC remove unused sprintf and parameter #30667
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
Conversation
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.
Good catch, can you please target 3.4 branch with this bugfix?
@@ -52,8 +52,8 @@ public function __construct($options = null) | |||
@trigger_error(sprintf('Using the "%s" constraint without the "symfony/intl" component installed is deprecated since Symfony 4.2.', __CLASS__), E_USER_DEPRECATED); | |||
} | |||
|
|||
if (isset($options['iban']) && isset($options['ibanPropertyPath'])) { | |||
throw new ConstraintDefinitionException(sprintf('The "iban" and "ibanPropertyPath" options of the Iban constraint cannot be used at the same time.', self::class)); | |||
if (isset($options['iban'], $options['ibanPropertyPath'])) { |
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.
This change should be reverted.
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.
Because I am interested, can you explain why?
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.
@xabbuh can you please elaborate? I'm also interested :)
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.
because it requires more knowledge about a syntax that is less common
the previous CS is obvious, this one is less obvious.
@OskarStark the code in 3.4 branch does not have the code that contains tis bug, so there was no need to port this fix to 3.4 branch https://github.com/symfony/symfony/blob/3.4/src/Symfony/Component/Validator/Constraints/Bic.php
|
Thank you for your feedback, in this case it should be against 4.2 as a bugfix if I am right I am currently on a phone 📱 |
0f929a3
to
131e495
Compare
@OskarStark |
Thank you @kaznovac. |
…novac) This PR was merged into the 4.3-dev branch. Discussion ---------- [Validator] BIC remove unused sprintf and parameter | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | License | MIT removed surplus parameter and sprintf as there are no placeholders in message template Commits ------- 131e495 [Validator] BIC remove unused sprintf and parameter
removed surplus parameter and sprintf as there are no placeholders in message template