Skip to content

Commit f5f1997

Browse files
committed
Merge branch '4.2' into 4.3
* 4.2: fixed CS fixed CS [HttpKernel] Remove TestEventDispatcher.
2 parents 93597ce + b35a8ee commit f5f1997

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TranslatorTrait.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function trans($id, array $parameters = [], $domain = null, $locale = nul
9191
}
9292
} else {
9393
$leftNumber = '-Inf' === $matches['left'] ? -INF : (float) $matches['left'];
94-
$rightNumber = \is_numeric($matches['right']) ? (float) $matches['right'] : INF;
94+
$rightNumber = is_numeric($matches['right']) ? (float) $matches['right'] : INF;
9595

9696
if (('[' === $matches['left_delimiter'] ? $number >= $leftNumber : $number > $leftNumber)
9797
&& (']' === $matches['right_delimiter'] ? $number <= $rightNumber : $number < $rightNumber)
@@ -117,7 +117,7 @@ public function trans($id, array $parameters = [], $domain = null, $locale = nul
117117

118118
$message = sprintf('Unable to choose a translation for "%s" with locale "%s" for value "%d". Double check that this translation has the correct plural options (e.g. "There is one apple|There are %%count%% apples").', $id, $locale, $number);
119119

120-
if (\class_exists(InvalidArgumentException::class)) {
120+
if (class_exists(InvalidArgumentException::class)) {
121121
throw new InvalidArgumentException($message);
122122
}
123123

0 commit comments

Comments
 (0)