Skip to content

Commit 590fc9a

Browse files
committed
[CssSelector] Fix BC break by adding @method instead of directly adding it
1 parent a41dc8b commit 590fc9a

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

src/Symfony/Component/CssSelector/Parser/Parser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private function parseSelectorList(TokenStream $stream): array
108108

109109
private function parserSelectorNode(TokenStream $stream): Node\SelectorNode
110110
{
111-
[$result, $pseudoElement] = $this->parseSimpleSelector($stream, false);
111+
[$result, $pseudoElement] = $this->parseSimpleSelector($stream);
112112

113113
while (true) {
114114
$stream->skipWhitespace();
@@ -129,7 +129,7 @@ private function parserSelectorNode(TokenStream $stream): Node\SelectorNode
129129
$combinator = ' ';
130130
}
131131

132-
[$nextSelector, $pseudoElement] = $this->parseSimpleSelector($stream, false);
132+
[$nextSelector, $pseudoElement] = $this->parseSimpleSelector($stream);
133133
$result = new Node\CombinedSelectorNode($result, $combinator, $nextSelector);
134134
}
135135

src/Symfony/Component/CssSelector/XPath/Extension/ExtensionInterface.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
* XPath expression translator extension interface.
1616
*
1717
* This component is a port of the Python cssselect library,
18-
* which is copyright Ian Bicking, @see https://github.com/SimonSapin/cssselect.
18+
* which is copyright Ian Bicking, @see https://github.com/scrapy/cssselect.
1919
*
2020
* @author Jean-François Simon <jeanfrancois.simon@sensiolabs.com>
21-
*
21+
*
22+
* @method array<string, callable(XPathExpr, XPathExpr): XPathExpr> getRelativeCombinationTranslators() Returns combination translators found inside ":has()" relation.
23+
*
2224
* @internal
2325
*/
2426
interface ExtensionInterface
@@ -60,13 +62,6 @@ public function getPseudoClassTranslators(): array;
6062
*/
6163
public function getAttributeMatchingTranslators(): array;
6264

63-
/**
64-
* Returns relative combinators translators.
65-
*
66-
* @return callable[]
67-
*/
68-
public function getRelativeCombinationTranslators(): array;
69-
7065
/**
7166
* Returns extension name.
7267
*/

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy