Skip to content

Commit 9b2bc43

Browse files
Merge branch '5.4' into 6.0
* 5.4: More return type fixes (bis) Cleanup `@return` annotations
2 parents 0542cbc + df10124 commit 9b2bc43

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

AbstractUriElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function __construct(\DOMElement $node, string $currentUri = null, ?strin
5656
/**
5757
* Gets the node associated with this link.
5858
*
59-
* @return \DOMElement A \DOMElement instance
59+
* @return \DOMElement
6060
*/
6161
public function getNode()
6262
{

Crawler.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,7 @@ public function outerHtml(): string
652652
* Since an XPath expression might evaluate to either a simple type or a \DOMNodeList,
653653
* this method will return either an array of simple types or a new Crawler instance.
654654
*
655-
* @return array|Crawler An array of evaluation results or a new Crawler instance
655+
* @return array|Crawler
656656
*/
657657
public function evaluate(string $xpath)
658658
{
@@ -762,7 +762,7 @@ public function selectLink(string $value)
762762
/**
763763
* Selects images by alt value.
764764
*
765-
* @return static A new instance of Crawler with the filtered list of nodes
765+
* @return static
766766
*/
767767
public function selectImage(string $value)
768768
{
@@ -786,7 +786,7 @@ public function selectButton(string $value)
786786
/**
787787
* Returns a Link object for the first node in the list.
788788
*
789-
* @return Link A Link instance
789+
* @return Link
790790
*
791791
* @throws \InvalidArgumentException If the current node list is empty or the selected node is not instance of DOMElement
792792
*/
@@ -808,7 +808,7 @@ public function link(string $method = 'get')
808808
/**
809809
* Returns an array of Link objects for the nodes in the list.
810810
*
811-
* @return Link[] An array of Link instances
811+
* @return Link[]
812812
*
813813
* @throws \InvalidArgumentException If the current node list contains non-DOMElement instances
814814
*/
@@ -829,7 +829,7 @@ public function links()
829829
/**
830830
* Returns an Image object for the first node in the list.
831831
*
832-
* @return Image An Image instance
832+
* @return Image
833833
*
834834
* @throws \InvalidArgumentException If the current node list is empty
835835
*/
@@ -851,7 +851,7 @@ public function image()
851851
/**
852852
* Returns an array of Image objects for the nodes in the list.
853853
*
854-
* @return Image[] An array of Image instances
854+
* @return Image[]
855855
*/
856856
public function images()
857857
{
@@ -870,7 +870,7 @@ public function images()
870870
/**
871871
* Returns a Form object for the first node in the list.
872872
*
873-
* @return Form A Form instance
873+
* @return Form
874874
*
875875
* @throws \InvalidArgumentException If the current node list is empty or the selected node is not instance of DOMElement
876876
*/

Field/FormField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getName()
8989
/**
9090
* Gets the value of the field.
9191
*
92-
* @return string|array The value of the field
92+
* @return string|array|null
9393
*/
9494
public function getValue()
9595
{

Form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function __construct(\DOMElement $node, string $currentUri = null, string
4444
/**
4545
* Gets the form node associated with this form.
4646
*
47-
* @return \DOMElement A \DOMElement instance
47+
* @return \DOMElement
4848
*/
4949
public function getFormNode()
5050
{

0 commit comments

Comments
 (0)