From 10aa301b0eb41b71f7d51b0b85a816b8cc81688f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Kurf=C3=BCrst?= Date: Wed, 26 May 2021 12:24:00 +0200 Subject: [PATCH] TASK: make code more robust for PHP8 --- Tests/Behavior/Bootstrap/PlaywrightConnector.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Behavior/Bootstrap/PlaywrightConnector.php b/Tests/Behavior/Bootstrap/PlaywrightConnector.php index c8ebf70..1ca0f42 100644 --- a/Tests/Behavior/Bootstrap/PlaywrightConnector.php +++ b/Tests/Behavior/Bootstrap/PlaywrightConnector.php @@ -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)