← All changes
|
vendor/symfony/css-selector/Exception/SyntaxErrorException.php
+7
-2
4.4.2
→
4.4.8
View file →
| @@ -16,9 +16,9 @@ | ||
| 16 | 16 | /** |
| 17 | 17 | * ParseException is thrown when a CSS selector syntax is not valid. |
| 18 | 18 | * |
| 19 | 19 | * This component is a port of the Python cssselect library, |
| 20 | - * which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect. | |
| 20 | + * which is copyright Ian Bicking, @see https://github.com/scrapy/cssselect. | |
| 21 | 21 | * |
| 22 | 22 | * @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com> |
| 23 | 23 | */ |
| 24 | 24 | class SyntaxErrorException extends ParseException |
| @@ -39,9 +39,14 @@ | ||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | public static function nestedNot(): self |
| 42 | 42 | { |
| 43 | - return new self('Got nested ::not().'); | |
| 43 | + return new self('Got nested :not().'); | |
| 44 | + } | |
| 45 | + | |
| 46 | + public static function nestedHas(): self | |
| 47 | + { | |
| 48 | + return new self('Got too deeply nested :has().'); | |
| 44 | 49 | } |
| 45 | 50 | |
| 46 | 51 | public static function notAtTheStartOfASelector(string $pseudoElement): self |
| 47 | 52 | { |