Skip to content

Commit

Permalink
TASK: make code more robust for PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
skurfuerst authored May 26, 2021
1 parent dcb5ee8 commit 10aa301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Behavior/Bootstrap/PlaywrightConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function stopContext(string $contextName)
public function execute(string $contextName, string $playwrightJsCode)
{
$successResponse = $this->executeInternal($contextName, $playwrightJsCode);
return $successResponse['returnValue'];
return isset($successResponse['returnValue']) ? $successResponse['returnValue'] : null;
}

public function getCurrentJsCode(string $contextName)
Expand Down

0 comments on commit 10aa301

Please sign in to comment.