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:
Fabien Potencier 2019-03-26 11:26:31 +01:00
commit 76260e7d44
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ class Bic extends Constraint
}
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)) {