@@ -308,7 +308,7 @@ public function addNode(\DOMNode $node)
308
308
/**
309
309
* Returns a node given its position in the node list.
310
310
*
311
- * @return self
311
+ * @return static
312
312
*/
313
313
public function eq (int $ position )
314
314
{
@@ -348,7 +348,7 @@ public function each(\Closure $closure)
348
348
/**
349
349
* Slices the list of nodes by $offset and $length.
350
350
*
351
- * @return self
351
+ * @return static
352
352
*/
353
353
public function slice (int $ offset = 0 , int $ length = null )
354
354
{
@@ -362,7 +362,7 @@ public function slice(int $offset = 0, int $length = null)
362
362
*
363
363
* @param \Closure $closure An anonymous function
364
364
*
365
- * @return self
365
+ * @return static
366
366
*/
367
367
public function reduce (\Closure $ closure )
368
368
{
@@ -379,7 +379,7 @@ public function reduce(\Closure $closure)
379
379
/**
380
380
* Returns the first node of the current selection.
381
381
*
382
- * @return self
382
+ * @return static
383
383
*/
384
384
public function first ()
385
385
{
@@ -389,7 +389,7 @@ public function first()
389
389
/**
390
390
* Returns the last node of the current selection.
391
391
*
392
- * @return self
392
+ * @return static
393
393
*/
394
394
public function last ()
395
395
{
@@ -399,7 +399,7 @@ public function last()
399
399
/**
400
400
* Returns the siblings nodes of the current selection.
401
401
*
402
- * @return self
402
+ * @return static
403
403
*
404
404
* @throws \InvalidArgumentException When current node is empty
405
405
*/
@@ -415,7 +415,7 @@ public function siblings()
415
415
/**
416
416
* Returns the next siblings nodes of the current selection.
417
417
*
418
- * @return self
418
+ * @return static
419
419
*
420
420
* @throws \InvalidArgumentException When current node is empty
421
421
*/
@@ -431,7 +431,7 @@ public function nextAll()
431
431
/**
432
432
* Returns the previous sibling nodes of the current selection.
433
433
*
434
- * @return self
434
+ * @return static
435
435
*
436
436
* @throws \InvalidArgumentException
437
437
*/
@@ -447,7 +447,7 @@ public function previousAll()
447
447
/**
448
448
* Returns the parents nodes of the current selection.
449
449
*
450
- * @return self
450
+ * @return static
451
451
*
452
452
* @throws \InvalidArgumentException When current node is empty
453
453
*/
@@ -472,7 +472,7 @@ public function parents()
472
472
/**
473
473
* Returns the children nodes of the current selection.
474
474
*
475
- * @return self
475
+ * @return static
476
476
*
477
477
* @throws \InvalidArgumentException When current node is empty
478
478
* @throws \RuntimeException If the CssSelector Component is not available and $selector is provided
@@ -655,7 +655,7 @@ public function extract(array $attributes)
655
655
* This means that a child selector "div" or "./div" will match only
656
656
* the div elements of the current crawler, not their children.
657
657
*
658
- * @return self
658
+ * @return static
659
659
*/
660
660
public function filterXPath (string $ xpath )
661
661
{
@@ -674,7 +674,7 @@ public function filterXPath(string $xpath)
674
674
*
675
675
* This method only works if you have installed the CssSelector Symfony Component.
676
676
*
677
- * @return self
677
+ * @return static
678
678
*
679
679
* @throws \RuntimeException if the CssSelector Component is not available
680
680
*/
@@ -689,7 +689,7 @@ public function filter(string $selector)
689
689
/**
690
690
* Selects links by name or alt value for clickable images.
691
691
*
692
- * @return self
692
+ * @return static
693
693
*/
694
694
public function selectLink (string $ value )
695
695
{
@@ -701,7 +701,7 @@ public function selectLink(string $value)
701
701
/**
702
702
* Selects images by alt value.
703
703
*
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
705
705
*/
706
706
public function selectImage (string $ value )
707
707
{
@@ -713,7 +713,7 @@ public function selectImage(string $value)
713
713
/**
714
714
* Selects a button by name or alt value for images.
715
715
*
716
- * @return self
716
+ * @return static
717
717
*/
718
718
public function selectButton (string $ value )
719
719
{
@@ -897,7 +897,7 @@ public static function xpathLiteral(string $s)
897
897
*
898
898
* The XPath expression should already be processed to apply it in the context of each node.
899
899
*
900
- * @return self
900
+ * @return static
901
901
*/
902
902
private function filterRelativeXPath (string $ xpath )
903
903
{
0 commit comments