namespace Symfony\Component\Translation;
+use Symfony\Component\Translation\Exception\InvalidArgumentException;
+
/**
* Tests if a given number belongs to a given math interval.
*
*
* @return bool
*
- * @throws \InvalidArgumentException
+ * @throws InvalidArgumentException
*/
public static function test($number, $interval)
{
$interval = trim($interval);
if (!preg_match('/^'.self::getIntervalRegexp().'$/x', $interval, $matches)) {
- throw new \InvalidArgumentException(sprintf('"%s" is not a valid interval.', $interval));
+ throw new InvalidArgumentException(sprintf('"%s" is not a valid interval.', $interval));
}
if ($matches[1]) {