We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cb036c commit 1884e25Copy full SHA for 1884e25
src/Communication/Connection.php
@@ -246,8 +246,9 @@ public function createSession($targetId): Session
246
$response = $this->sendMessageSync(
247
new Message('Target.attachToTarget', ['targetId' => $targetId])
248
);
249
- if (empty($response['result']))
250
- throw new TargetDestroyed('The target was destroyed.');
+ if (empty($response['result'])) {
+ throw new TargetDestroyed('The target was destroyed.');
251
+ }
252
$sessionId = $response['result']['sessionId'];
253
$session = new Session($targetId, $sessionId, $this);
254
0 commit comments