Skip to content

Commit 873a824

Browse files
author
Melvin D. Protacio
committed
add promise resolution to actually invoke the call
1 parent a4107ad commit 873a824

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Optimizely/Event/Dispatcher/DefaultEventDispatcher.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function dispatchEvent(LogEvent $event)
5050
'connect_timeout' => DefaultEventDispatcher::TIMEOUT
5151
];
5252

53-
$this->httpClient->requestAsync($event->getHttpVerb(), $event->getUrl(), $options);
53+
$this->httpClient->requestAsync($event->getHttpVerb(), $event->getUrl(), $options)
54+
->then(fn($response) => $response);
5455
}
5556
}

0 commit comments

Comments
 (0)