<?php
namespace Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\Exception;
if (!defined('ABSPATH')) exit;
use Automattic\WooCommerce\EmailEditorVendor\Symfony\Component\CssSelector\Parser\Token;
class SyntaxErrorException extends ParseException
{
 public static function unexpectedToken(string $expectedValue, Token $foundToken)
 {
 return new self(sprintf('Expected %s, but %s found.', $expectedValue, $foundToken));
 }
 public static function pseudoElementFound(string $pseudoElement, string $unexpectedLocation)
 {
 return new self(sprintf('Unexpected pseudo-element "::%s" found %s.', $pseudoElement, $unexpectedLocation));
 }
 public static function unclosedString(int $position)
 {
 return new self(sprintf('Unclosed/invalid string at %s.', $position));
 }
 public static function nestedNot()
 {
 return new self('Got nested ::not().');
 }
 public static function stringAsFunctionArgument()
 {
 return new self('String not allowed as function argument.');
 }
}
