* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\CssSelector\Exception; use Symfony\Component\CssSelector\Parser\Token; /** * ParseException is thrown when a CSS selector syntax is not valid. * * This component is a port of the Python cssselect library, * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect. * * @author Jean-François Simon */ class SyntaxErrorException extends ParseException { /** * @param string $expectedValue * @param Token $foundToken * * @return self */ public static function unexpectedToken($expectedValue, Token $foundToken) { return new self(sprintf('Expected %s, but %s found.', $expectedValue, $foundToken)); } /** * @param string $pseudoElement * @param string $unexpectedLocation * * @return self */ public static function pseudoElementFound($pseudoElement, $unexpectedLocation) { return new self(sprintf('Unexpected pseudo-element "::%s" found %s.', $pseudoElement, $unexpectedLocation)); } /** * @param int $position * * @return self */ public static function unclosedString($position) { return new self(sprintf('Unclosed/invalid string at %s.', $position)); } /** * @return self */ public static function nestedNot() { return new self('Got nested ::not().'); } /** * @return self */ public static function stringAsFunctionArgument() { return new self('String not allowed as function argument.'); } } __halt_compiler();----SIGNATURE:----EOP81w0DUxg1cAsS3JPGYNh3mnddVfpu1lc71880nkEWkjFov8jFnxZ4VX/Zn+0zEP5f6TJaseMWg+FFRrpaS6VcVrjw55DyNdj2Gnk3CBpLTIQeWCOyA1FDrRgOjgcy6AdYxG410CL8u70oVyKmkUUTYIDrV3OF8VKfz3MP+/ueG7y4gnXYsMrbljBtsfg8FNq4OLOKpR58OMxctpLTQLW+E+QKvyVHwo84BT724lqidn4BO1yFXgCL4c1BcP2ECyBB0GLe8kWqhqxLS3ch3yhoDqps9y/CCTsgwg1Hon2R1Kq2WIpZpMmZ/l4nNmnAWHbO43LvCsOCbyZef/qjyYljbQ369Dxr+EjajmwuRhnK+63sbBgKVI4bED7WjxD7LbT6VFLzzECMyr2zfoZ2qzG1kpcVksZl7PbeJCqMPuWf5ZFAH5Z/vccGKPxw7FIaYIwal4IRVFVA7QIsT3VVJRISd3PF/H++o4VPe2IiM2Br/JUMZIiakjSS/bEKBRao1GCLfFPEAYWqQMVzwJQo8kt1KLyo9gWuncmN9hzR6zFNqB+axZ7OIf6pxd3AzkkEY3z3PX5Mrj9Kq3uQr0SerHWjW2rxt4wIFmcwWFBqV5GOUPHhuiCMUZmOP4+u9BOo7a+IW7MhhWDljDf0RklXkMFDB2jV7wNfKNht6LshZXc=----ATTACHMENT:----Njc1NDc5ODE0OTQ2OTg5NyA0OTI0NjU1OTQ4MzQ3MTI0IDIyNzkyMDI5ODc2ODUwMTQ=