Skip to content

Commit fff99fd

Browse files
Narrow existing return types on private/internal/final/test methods
1 parent 2da38bf commit fff99fd

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Crawler.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -956,10 +956,8 @@ public static function xpathLiteral(string $s)
956956
* Filters the list of nodes with an XPath expression.
957957
*
958958
* The XPath expression should already be processed to apply it in the context of each node.
959-
*
960-
* @return static
961959
*/
962-
private function filterRelativeXPath(string $xpath): object
960+
private function filterRelativeXPath(string $xpath): static
963961
{
964962
$crawler = $this->createSubCrawler(null);
965963
if (null === $this->document) {
@@ -1202,10 +1200,8 @@ private function findNamespacePrefixes(string $xpath): array
12021200
* Creates a crawler for some subnodes.
12031201
*
12041202
* @param \DOMNodeList|\DOMNode|\DOMNode[]|string|null $nodes
1205-
*
1206-
* @return static
12071203
*/
1208-
private function createSubCrawler(\DOMNodeList|\DOMNode|array|string|null $nodes): object
1204+
private function createSubCrawler(\DOMNodeList|\DOMNode|array|string|null $nodes): static
12091205
{
12101206
$crawler = new static($nodes, $this->uri, $this->baseHref);
12111207
$crawler->isHtml = $this->isHtml;

0 commit comments

Comments
 (0)