diff --git a/src/Optimizely/Event/Dispatcher/DefaultEventDispatcher.php b/src/Optimizely/Event/Dispatcher/DefaultEventDispatcher.php index af819f02..5dcf86b0 100644 --- a/src/Optimizely/Event/Dispatcher/DefaultEventDispatcher.php +++ b/src/Optimizely/Event/Dispatcher/DefaultEventDispatcher.php @@ -50,6 +50,7 @@ public function dispatchEvent(LogEvent $event) 'connect_timeout' => DefaultEventDispatcher::TIMEOUT ]; - $this->httpClient->requestAsync($event->getHttpVerb(), $event->getUrl(), $options); + $this->httpClient->requestAsync($event->getHttpVerb(), $event->getUrl(), $options) + ->then(fn($response) => $response); } }