WordPress at a glance
function is not described

Symfony\Component\CssSelector\Exception

SyntaxErrorException::unexpectedToken() public WC 1.0

{} It's a method of the class: SyntaxErrorException{}

No Hooks.

Return

self. Nothing.

Usage

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

Code of SyntaxErrorException::unexpectedToken() WC 5.4.1

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