|
@@ -11,6 +11,8 @@
|
|
|
|
|
|
namespace Symfony\Component\CssSelector;
|
|
|
|
|
|
+use Symfony\Component\CssSelector\Exception\ParseException;
|
|
|
+
|
|
|
/**
|
|
|
* Tokenizer lexes a CSS Selector to tokens.
|
|
|
*
|
|
@@ -189,7 +191,7 @@ class Tokenizer
|
|
|
$matchStart = $match[0][1];
|
|
|
|
|
|
if ($matchStart == $pos) {
|
|
|
- throw new Exception\ParseException(sprintf('Unexpected symbol: %s at %s', $s[$pos], $pos));
|
|
|
+ throw new ParseException(sprintf('Unexpected symbol: %s at %s', $s[$pos], $pos));
|
|
|
}
|
|
|
|
|
|
$result = substr($s, $start, $matchStart - $start);
|