Skip to content

Commit 52ae76b

Browse files
Merge branch '4.4'
* 4.4: Fix some return type annotations.
2 parents f7defd0 + c841909 commit 52ae76b

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

Crawler.php

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function addNode(\DOMNode $node)
308308
/**
309309
* Returns a node given its position in the node list.
310310
*
311-
* @return self
311+
* @return static
312312
*/
313313
public function eq(int $position)
314314
{
@@ -348,7 +348,7 @@ public function each(\Closure $closure)
348348
/**
349349
* Slices the list of nodes by $offset and $length.
350350
*
351-
* @return self
351+
* @return static
352352
*/
353353
public function slice(int $offset = 0, int $length = null)
354354
{
@@ -362,7 +362,7 @@ public function slice(int $offset = 0, int $length = null)
362362
*
363363
* @param \Closure $closure An anonymous function
364364
*
365-
* @return self
365+
* @return static
366366
*/
367367
public function reduce(\Closure $closure)
368368
{
@@ -379,7 +379,7 @@ public function reduce(\Closure $closure)
379379
/**
380380
* Returns the first node of the current selection.
381381
*
382-
* @return self
382+
* @return static
383383
*/
384384
public function first()
385385
{
@@ -389,7 +389,7 @@ public function first()
389389
/**
390390
* Returns the last node of the current selection.
391391
*
392-
* @return self
392+
* @return static
393393
*/
394394
public function last()
395395
{
@@ -399,7 +399,7 @@ public function last()
399399
/**
400400
* Returns the siblings nodes of the current selection.
401401
*
402-
* @return self
402+
* @return static
403403
*
404404
* @throws \InvalidArgumentException When current node is empty
405405
*/
@@ -415,7 +415,7 @@ public function siblings()
415415
/**
416416
* Returns the next siblings nodes of the current selection.
417417
*
418-
* @return self
418+
* @return static
419419
*
420420
* @throws \InvalidArgumentException When current node is empty
421421
*/
@@ -431,7 +431,7 @@ public function nextAll()
431431
/**
432432
* Returns the previous sibling nodes of the current selection.
433433
*
434-
* @return self
434+
* @return static
435435
*
436436
* @throws \InvalidArgumentException
437437
*/
@@ -447,7 +447,7 @@ public function previousAll()
447447
/**
448448
* Returns the parents nodes of the current selection.
449449
*
450-
* @return self
450+
* @return static
451451
*
452452
* @throws \InvalidArgumentException When current node is empty
453453
*/
@@ -472,7 +472,7 @@ public function parents()
472472
/**
473473
* Returns the children nodes of the current selection.
474474
*
475-
* @return self
475+
* @return static
476476
*
477477
* @throws \InvalidArgumentException When current node is empty
478478
* @throws \RuntimeException If the CssSelector Component is not available and $selector is provided
@@ -655,7 +655,7 @@ public function extract(array $attributes)
655655
* This means that a child selector "div" or "./div" will match only
656656
* the div elements of the current crawler, not their children.
657657
*
658-
* @return self
658+
* @return static
659659
*/
660660
public function filterXPath(string $xpath)
661661
{
@@ -674,7 +674,7 @@ public function filterXPath(string $xpath)
674674
*
675675
* This method only works if you have installed the CssSelector Symfony Component.
676676
*
677-
* @return self
677+
* @return static
678678
*
679679
* @throws \RuntimeException if the CssSelector Component is not available
680680
*/
@@ -689,7 +689,7 @@ public function filter(string $selector)
689689
/**
690690
* Selects links by name or alt value for clickable images.
691691
*
692-
* @return self
692+
* @return static
693693
*/
694694
public function selectLink(string $value)
695695
{
@@ -701,7 +701,7 @@ public function selectLink(string $value)
701701
/**
702702
* Selects images by alt value.
703703
*
704-
* @return self A new instance of Crawler with the filtered list of nodes
704+
* @return static A new instance of Crawler with the filtered list of nodes
705705
*/
706706
public function selectImage(string $value)
707707
{
@@ -713,7 +713,7 @@ public function selectImage(string $value)
713713
/**
714714
* Selects a button by name or alt value for images.
715715
*
716-
* @return self
716+
* @return static
717717
*/
718718
public function selectButton(string $value)
719719
{
@@ -897,7 +897,7 @@ public static function xpathLiteral(string $s)
897897
*
898898
* The XPath expression should already be processed to apply it in the context of each node.
899899
*
900-
* @return self
900+
* @return static
901901
*/
902902
private function filterRelativeXPath(string $xpath)
903903
{

0 commit comments

Comments
 (0)