Skip to content

Commit 11923b4

Browse files
authored
Merge pull request #1096 from PrinsFrank/fix-return-type-in-remote-web-element
Fix static return types in RemoteWebElement
2 parents 5d8e66f + 3db7b0e commit 11923b4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/Remote/RemoteWebElement.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function __construct(RemoteExecuteMethod $executor, $id, $isW3cCompliant
5555
/**
5656
* Clear content editable or resettable element
5757
*
58-
* @return RemoteWebElement The current instance.
58+
* @return $this The current instance.
5959
*/
6060
public function clear()
6161
{
@@ -70,7 +70,7 @@ public function clear()
7070
/**
7171
* Click this element.
7272
*
73-
* @return RemoteWebElement The current instance.
73+
* @return $this The current instance.
7474
*/
7575
public function click()
7676
{
@@ -96,7 +96,7 @@ public function click()
9696
* search the entire document from the root, not just the children (relative context) of this current node.
9797
* Use ".//" to limit your search to the children of this element.
9898
*
99-
* @return RemoteWebElement NoSuchElementException is thrown in HttpCommandExecutor if no element is found.
99+
* @return static NoSuchElementException is thrown in HttpCommandExecutor if no element is found.
100100
* @see WebDriverBy
101101
*/
102102
public function findElement(WebDriverBy $by)
@@ -119,7 +119,7 @@ public function findElement(WebDriverBy $by)
119119
* search the entire document from the root, not just the children (relative context) of this current node.
120120
* Use ".//" to limit your search to the children of this element.
121121
*
122-
* @return RemoteWebElement[] A list of all WebDriverElements, or an empty
122+
* @return static[] A list of all WebDriverElements, or an empty
123123
* array if nothing matches
124124
* @see WebDriverBy
125125
*/
@@ -381,7 +381,7 @@ public function isSelected()
381381
* Simulate typing into an element, which may set its value.
382382
*
383383
* @param mixed $value The data to be typed.
384-
* @return RemoteWebElement The current instance.
384+
* @return static The current instance.
385385
*/
386386
public function sendKeys($value)
387387
{
@@ -443,7 +443,7 @@ public function sendKeys($value)
443443
*
444444
* eg. `$element->setFileDetector(new LocalFileDetector);`
445445
*
446-
* @return RemoteWebElement
446+
* @return $this
447447
* @see FileDetector
448448
* @see LocalFileDetector
449449
* @see UselessFileDetector
@@ -458,7 +458,7 @@ public function setFileDetector(FileDetector $detector)
458458
/**
459459
* If this current element is a form, or an element within a form, then this will be submitted to the remote server.
460460
*
461-
* @return RemoteWebElement The current instance.
461+
* @return $this The current instance.
462462
*/
463463
public function submit()
464464
{

0 commit comments

Comments
 (0)