Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Exception

SyntaxErrorException::unexpectedTokenpublic staticWC 1.0

Method of the class: SyntaxErrorException{}

No Hooks.

Returns

self.

Usage

$result = SyntaxErrorException::unexpectedToken( $expectedValue, $foundToken );
$expectedValue(string) (required)
.
$foundToken(Token) (required)
.

SyntaxErrorException::unexpectedToken() code WC 10.4.3

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