Skip to content

Commit 75eac8b

Browse files
committed
CR fixes
1 parent eed87e4 commit 75eac8b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/WebdriverClassicDriver.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class WebdriverClassicDriver extends CoreDriver
8484
private const W3C_WINDOW_HANDLE_PREFIX = 'w3cwh:';
8585

8686
/**
87-
* @var TWebDriver|null
87+
* @phpstan-var TWebDriver|null
8888
*/
8989
private ?WebDriver $webDriver = null;
9090

@@ -766,7 +766,7 @@ public function getBrowserName(): string
766766
*/
767767
public function getWebDriverSessionId(): ?string
768768
{
769-
return $this->isStarted() && method_exists($this->getWebDriver(), 'getSessionId')
769+
return $this->isStarted() && method_exists($this->getWebDriver(), 'getSessionID')
770770
? $this->getAsString($this->getWebDriver()->getSessionID(), 'Session ID')
771771
: null;
772772
}
@@ -804,7 +804,7 @@ protected function createWebDriver(): void
804804
}
805805

806806
/**
807-
* @return TWebDriver
807+
* @phpstan-return TWebDriver
808808
* @throws DriverException
809809
*/
810810
protected function getWebDriver(): WebDriver
@@ -988,7 +988,7 @@ private function executeJsOnXpath(
988988
* $this->executeJsOnElement($element, 'return argument[0].childNodes.length');
989989
* ```
990990
*
991-
* @param TWebDriverElement $element
991+
* @phpstan-param TWebDriverElement $element
992992
* @return mixed
993993
* @throws DriverException
994994
*/
@@ -1067,7 +1067,7 @@ private function getWindowHandleFromName(string $name): string
10671067
}
10681068

10691069
/**
1070-
* @param TWebDriverElement $element
1070+
* @phpstan-param TWebDriverElement $element
10711071
* @throws DriverException
10721072
*/
10731073
private function clickOnElement($element): void
@@ -1103,7 +1103,7 @@ private function withWindow(?string $name, callable $callback): void
11031103
}
11041104

11051105
/**
1106-
* @return TWebDriverElement
1106+
* @phpstan-return TWebDriverElement
11071107
* @throws DriverException
11081108
*/
11091109
private function findElement(
@@ -1121,7 +1121,7 @@ private function findElement(
11211121
}
11221122

11231123
/**
1124-
* @param TWebDriverElement $element
1124+
* @phpstan-param TWebDriverElement $element
11251125
* @throws DriverException
11261126
*/
11271127
private function selectRadioValue($element, string $value): void
@@ -1140,7 +1140,7 @@ private function selectRadioValue($element, string $value): void
11401140
}
11411141

11421142
/**
1143-
* @param TWebDriverElement $element
1143+
* @phpstan-param TWebDriverElement $element
11441144
* @throws DriverException
11451145
*/
11461146
private function selectOptionOnElement($element, string $value, bool $multiple = false): void
@@ -1171,7 +1171,7 @@ private function selectOptionOnElement($element, string $value, bool $multiple =
11711171
*
11721172
* Note: this implementation does not trigger a change event after deselecting the elements.
11731173
*
1174-
* @param TWebDriverElement $element
1174+
* @phpstan-param TWebDriverElement $element
11751175
* @throws DriverException
11761176
*/
11771177
private function deselectAllOptions($element): void
@@ -1189,7 +1189,7 @@ private function deselectAllOptions($element): void
11891189
}
11901190

11911191
/**
1192-
* @param TWebDriverElement $element
1192+
* @phpstan-param TWebDriverElement $element
11931193
* @throws DriverException
11941194
*/
11951195
private function ensureInputType(
@@ -1233,7 +1233,7 @@ private function jsonEncode($value, string $action, string $field): string
12331233
}
12341234

12351235
/**
1236-
* @param TWebDriverElement $element
1236+
* @phpstan-param TWebDriverElement $element
12371237
* @param mixed $value
12381238
* @throws DriverException
12391239
*/
@@ -1246,7 +1246,7 @@ private function setElementDomProperty($element, string $property, $value): void
12461246
}
12471247

12481248
/**
1249-
* @param TWebDriverElement $element
1249+
* @phpstan-param TWebDriverElement $element
12501250
* @return mixed
12511251
* @throws DriverException
12521252
*/

0 commit comments

Comments
 (0)