Skip to content

Commit ef0d51b

Browse files
[5.0] Add return types on internal|final|private methods
1 parent 9a6dc4c commit ef0d51b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Crawler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -898,7 +898,7 @@ public static function xpathLiteral(string $s)
898898
*
899899
* @return static
900900
*/
901-
private function filterRelativeXPath(string $xpath)
901+
private function filterRelativeXPath(string $xpath): object
902902
{
903903
$prefixes = $this->findNamespacePrefixes($xpath);
904904

@@ -1140,7 +1140,7 @@ private function findNamespacePrefixes(string $xpath): array
11401140
*
11411141
* @return static
11421142
*/
1143-
private function createSubCrawler($nodes)
1143+
private function createSubCrawler($nodes): object
11441144
{
11451145
$crawler = new static($nodes, $this->uri, $this->baseHref);
11461146
$crawler->isHtml = $this->isHtml;

0 commit comments

Comments
 (0)