Automattic\WooCommerce\Vendor\Symfony\Component\CssSelector\Exception
SyntaxErrorException::unexpectedToken
Method of the class: SyntaxErrorException{}
No Hooks.
Returns
self.
Usage
$result = SyntaxErrorException::unexpectedToken( $expectedValue, $foundToken );
- $expectedValue(string) (required)
- .
- $foundToken(Token) (required)
- .
SyntaxErrorException::unexpectedToken() 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));
}