You are here

public static function SyntaxErrorException::pseudoElementFound in Zircon Profile 8.0

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

Parameters

string $pseudoElement:

string $unexpectedLocation:

Return value

SyntaxErrorException

2 calls to SyntaxErrorException::pseudoElementFound()
Parser::parserSelectorNode in vendor/symfony/css-selector/Parser/Parser.php
Parses next selector or combined node.
Parser::parseSimpleSelector in vendor/symfony/css-selector/Parser/Parser.php
Parses next simple node (hash, class, pseudo, negation).

File

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

Class

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

Namespace

Symfony\Component\CssSelector\Exception

Code

public static function pseudoElementFound($pseudoElement, $unexpectedLocation) {
  return new self(sprintf('Unexpected pseudo-element "::%s" found %s.', $pseudoElement, $unexpectedLocation));
}