You are here

public static function SyntaxErrorException::unexpectedToken in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/css-selector/Exception/SyntaxErrorException.php \Symfony\Component\CssSelector\Exception\SyntaxErrorException::unexpectedToken()

Parameters

string $expectedValue:

Token $foundToken:

Return value

SyntaxErrorException

4 calls to SyntaxErrorException::unexpectedToken()
Parser::parseAttributeNode in vendor/symfony/css-selector/Parser/Parser.php
Parses next attribute node.
Parser::parseSimpleSelector in vendor/symfony/css-selector/Parser/Parser.php
Parses next simple node (hash, class, pseudo, negation).
TokenStream::getNextIdentifier in vendor/symfony/css-selector/Parser/TokenStream.php
Returns nex identifier token.
TokenStream::getNextIdentifierOrStar in vendor/symfony/css-selector/Parser/TokenStream.php
Returns nex identifier or star delimiter token.

File

vendor/symfony/css-selector/Exception/SyntaxErrorException.php, line 32

Class

SyntaxErrorException
ParseException is thrown when a CSS selector syntax is not valid.

Namespace

Symfony\Component\CssSelector\Exception

Code

public static function unexpectedToken($expectedValue, Token $foundToken) {
  return new self(sprintf('Expected %s, but %s found.', $expectedValue, $foundToken));
}