Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[CssSelector] fixed exception namespace

  • Loading branch information...
commit 7742407893ab5f14266ebe3d48d2308d4779946f 1 parent 8355421
@fabpot fabpot authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Tokenizer.php
View
4 Tokenizer.php
@@ -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 @@ private function tokenizeSymbol($s, $pos)
$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);
Please sign in to comment.
Something went wrong with that request. Please try again.