Skip to content

Commit 5e9c114

Browse files
authored
Merge pull request #50 from guywithnose/php7.4
Fix deprecation warning in PHP7.4
2 parents 51c1c17 + f0825de commit 5e9c114

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GuzzleAdapter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function end(string $endHandle) : ResponseInterface
9292

9393
$this->promises = [];
9494

95-
if (array_key_exists($endHandle, $this->exceptions)) {
95+
if ($this->exceptions->offsetExists($endHandle)) {
9696
$exception = $this->exceptions[$endHandle];
9797
unset($this->exceptions[$endHandle]);
9898
throw $exception;

0 commit comments

Comments
 (0)