8000 [Validator] BIC remove unused sprintf and parameter · symfony/symfony@0f929a3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0f929a3

Browse files
committed
[Validator] BIC remove unused sprintf and parameter
1 parent c52af28 commit 0f929a3

File tree

1 file changed

+2
-2
lines changed
  • src/Symfony/Component/Validator/Constraints

1 file changed

+2
-2
lines changed

src/Symfony/Component/Validator/Constraints/Bic.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ public function __construct($options = null)
5252
@trigger_error(sprintf('Using the "%s" constraint without the "symfony/intl" component installed is deprecated since Symfony 4.2.', __CLASS__), E_USER_DEPRECATED);
5353
}
5454

55-
if (isset($options['iban']) && isset($options['ibanPropertyPath'])) {
56-
throw new ConstraintDefinitionException(sprintf('The "iban" and "ibanPropertyPath" options of the Iban constraint cannot be used at the same time.', self::class));
55+
if (isset($options['iban'], $options['ibanPropertyPath'])) {
56+
throw new ConstraintDefinitionException('The "iban" and "ibanPropertyPath" options of the Iban constraint cannot be used at the same time.');
5757
}
5858

5959
if (isset($options['ibanPropertyPath']) && !class_exists(PropertyAccess::class)) {

0 commit comments

Comments
 (0)
0