Skip to content

Commit

Permalink
fix phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robocoder committed Dec 7, 2023
1 parent 9e60018 commit b756195
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/WebDriver/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getID()
/**
* Get the value of an element's attribute: /session/:sessionId/element/:id/attribute/:name
*
* @param string name
* @param string $name
*
* @return mixed
*/
Expand Down
2 changes: 1 addition & 1 deletion lib/WebDriver/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public function open($url)
*/
public function capabilities()
{
if (! isset($this->capabilities)) {
if ($this->capabilities === null) {
$result = $this->curl('GET', '');

$this->capabilities = $result['value'];
Expand Down

0 comments on commit b756195

Please sign in to comment.