Skip to content

Commit 680f1ee

Browse files
committed
[Validator] Renamed $params to $parameters
1 parent 321d5bb commit 680f1ee

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/Symfony/Component/Validator/ExecutionContext.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,14 @@ public function addViolation($message, array $params = array(), $invalidValue =
115115
/**
116116
* {@inheritdoc}
117117
*/
118-
public function addViolationAt($subPath, $message, array $params = array(), $invalidValue = null, $pluralization = null, $code = null)
118+
public function addViolationAt($subPath, $message, array $parameters = array(), $invalidValue = null, $pluralization = null, $code = null)
119119
{
120120
$this->globalContext->getViolations()->add(new ConstraintViolation(
121121
null === $pluralization
122-
? $this->translator->trans($message, $params, $this->translationDomain)
123-
: $this->translator->transChoice($message, $pluralization, $params, $this->translationDomain),
122+
? $this->translator->trans($message, $parameters, $this->translationDomain)
123+
: $this->translator->transChoice($message, $pluralization, $parameters, $this->translationDomain),
124124
$message,
125-
$params,
125+
$parameters,
126126
$this->globalContext->getRoot(),
127127
$this->getPropertyPath($subPath),
128128
// check using func_num_args() to allow passing null values

src/Symfony/Component/Validator/ExecutionContextInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,14 +104,14 @@ public function addViolation($message, array $params = array(), $invalidValue =
104104
*
105105
* @param string $subPath The relative property path for the violation.
106106
* @param string $message The error message.
107-
* @param array $params The parameters substituted in the error message.
107+
* @param array $parameters The parameters substituted in the error message.
108108
* @param mixed $invalidValue The invalid, validated value.
109109
* @param integer|null $pluralization The number to use to pluralize of the message.
110110
* @param integer|null $code The violation code.
111111
*
112112
* @api
113113
*/
114-
public function addViolationAt($subPath, $message, array $params = array(), $invalidValue = null, $pluralization = null, $code = null);
114+
public function addViolationAt($subPath, $message, array $parameters = array(), $invalidValue = null, $pluralization = null, $code = null);
115115

116116
/**
117117
* Validates the given value within the scope of the current validation.

0 commit comments

Comments
 (0)