File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -956,10 +956,8 @@ public static function xpathLiteral(string $s)
956
956
* Filters the list of nodes with an XPath expression.
957
957
*
958
958
* The XPath expression should already be processed to apply it in the context of each node.
959
- *
960
- * @return static
961
959
*/
962
- private function filterRelativeXPath (string $ xpath ): object
960
+ private function filterRelativeXPath (string $ xpath ): static
963
961
{
964
962
$ crawler = $ this ->createSubCrawler (null );
965
963
if (null === $ this ->document ) {
@@ -1202,10 +1200,8 @@ private function findNamespacePrefixes(string $xpath): array
1202
1200
* Creates a crawler for some subnodes.
1203
1201
*
1204
1202
* @param \DOMNodeList|\DOMNode|\DOMNode[]|string|null $nodes
1205
- *
1206
- * @return static
1207
1203
*/
1208
- private function createSubCrawler (\DOMNodeList |\DOMNode |array |string |null $ nodes ): object
1204
+ private function createSubCrawler (\DOMNodeList |\DOMNode |array |string |null $ nodes ): static
1209
1205
{
1210
1206
$ crawler = new static ($ nodes , $ this ->uri , $ this ->baseHref );
1211
1207
$ crawler ->isHtml = $ this ->isHtml ;
You can’t perform that action at this time.
0 commit comments