minor #30667 [Validator] BIC remove unused sprintf and parameter (kaznovac)
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
-------
131e495269
[Validator] BIC remove unused sprintf and parameter
This commit is contained in:
commit
76260e7d44
@ -53,7 +53,7 @@ class Bic extends Constraint
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (isset($options['iban']) && isset($options['ibanPropertyPath'])) {
|
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));
|
throw new ConstraintDefinitionException('The "iban" and "ibanPropertyPath" options of the Iban constraint cannot be used at the same time.');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($options['ibanPropertyPath']) && !class_exists(PropertyAccess::class)) {
|
if (isset($options['ibanPropertyPath']) && !class_exists(PropertyAccess::class)) {
|
||||||
|
Reference in New Issue
Block a user