@@ -320,7 +320,7 @@ public function addNode(\DOMNode $node)
320
320
*
321
321
* @param int $position The position
322
322
*
323
- * @return self
323
+ * @return static
324
324
*/
325
325
public function eq ($ position )
326
326
{
@@ -363,7 +363,7 @@ public function each(\Closure $closure)
363
363
* @param int $offset
364
364
* @param int $length
365
365
*
366
- * @return self
366
+ * @return static
367
367
*/
368
368
public function slice ($ offset = 0 , $ length = null )
369
369
{
@@ -377,7 +377,7 @@ public function slice($offset = 0, $length = null)
377
377
*
378
378
* @param \Closure $closure An anonymous function
379
379
*
380
- * @return self
380
+ * @return static
381
381
*/
382
382
public function reduce (\Closure $ closure )
383
383
{
@@ -394,7 +394,7 @@ public function reduce(\Closure $closure)
394
394
/**
395
395
* Returns the first node of the current selection.
396
396
*
397
- * @return self
397
+ * @return static
398
398
*/
399
399
public function first ()
400
400
{
@@ -404,7 +404,7 @@ public function first()
404
404
/**
405
405
* Returns the last node of the current selection.
406
406
*
407
- * @return self
407
+ * @return static
408
408
*/
409
409
public function last ()
410
410
{
@@ -414,7 +414,7 @@ public function last()
414
414
/**
415
415
* Returns the siblings nodes of the current selection.
416
416
*
417
- * @return self
417
+ * @return static
418
418
*
419
419
* @throws \InvalidArgumentException When current node is empty
420
420
*/
@@ -430,7 +430,7 @@ public function siblings()
430
430
/**
431
431
* Returns the next siblings nodes of the current selection.
432
432
*
433
- * @return self
433
+ * @return static
434
434
*
435
435
* @throws \InvalidArgumentException When current node is empty
436
436
*/
@@ -446,7 +446,7 @@ public function nextAll()
446
446
/**
447
447
* Returns the previous sibling nodes of the current selection.
448
448
*
449
- * @return self
449
+ * @return static
450
450
*
451
451
* @throws \InvalidArgumentException
452
452
*/
@@ -462,7 +462,7 @@ public function previousAll()
462
462
/**
463
463
* Returns the parents nodes of the current selection.
464
464
*
465
- * @return self
465
+ * @return static
466
466
*
467
467
* @throws \InvalidArgumentException When current node is empty
468
468
*/
@@ -489,7 +489,7 @@ public function parents()
489
489
*
490
490
* @param string|null $selector An optional CSS selector to filter children
491
491
*
492
- * @return self
492
+ * @return static
493
493
*
494
494
* @throws \InvalidArgumentException When current node is empty
495
495
* @throws \RuntimeException If the CssSelector Component is not available and $selector is provided
@@ -686,7 +686,7 @@ public function extract($attributes)
686
686
*
687
687
* @param string $xpath An XPath expression
688
688
*
689
- * @return self
689
+ * @return static
690
690
*/
691
691
public function filterXPath ($ xpath )
692
692
{
@@ -707,7 +707,7 @@ public function filterXPath($xpath)
707
707
*
708
708
* @param string $selector A CSS selector
709
709
*
710
- * @return self
710
+ * @return static
711
711
*
712
712
* @throws \RuntimeException if the CssSelector Component is not available
713
713
*/
@@ -724,7 +724,7 @@ public function filter($selector)
724
724
*
725
725
* @param string $value The link text
726
726
*
727
- * @return self
727
+ * @return static
728
728
*/
729
729
public function selectLink ($ value )
730
730
{
@@ -738,7 +738,7 @@ public function selectLink($value)
738
738
*
739
739
* @param string $value The image alt
740
740
*
741
- * @return self A new instance of Crawler with the filtered list of nodes
741
+ * @return static A new instance of Crawler with the filtered list of nodes
742
742
*/
743
743
public function selectImage ($ value )
744
744
{
@@ -752,7 +752,7 @@ public function selectImage($value)
752
752
*
753
753
* @param string $value The button text
754
754
*
755
- * @return self
755
+ * @return static
756
756
*/
757
757
public function selectButton ($ value )
758
758
{
@@ -951,7 +951,7 @@ public static function xpathLiteral($s)
951
951
*
952
952
* @param string $xpath
953
953
*
954
- * @return self
954
+ * @return static
955
955
*/
956
956
private function filterRelativeXPath ($ xpath )
957
957
{
0 commit comments