From af72c726e408d7c40d8f619e5bfe3d742d0ae5cf Mon Sep 17 00:00:00 2001 From: "P.R. van Puijenbroek" Date: Thu, 21 Nov 2024 16:36:16 +0100 Subject: [PATCH] fix: storeId on AsyncEventPublisherInterface --- Api/AsyncEventPublisherInterface.php | 3 ++- Model/AsyncEventPublisher.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Api/AsyncEventPublisherInterface.php b/Api/AsyncEventPublisherInterface.php index 76c37c5..61d5ba5 100644 --- a/Api/AsyncEventPublisherInterface.php +++ b/Api/AsyncEventPublisherInterface.php @@ -9,7 +9,8 @@ interface AsyncEventPublisherInterface * * @param string $eventName * @param array $data + * @param int $storeId * @return void */ - public function publish(string $eventName, array $data): void; + public function publish(string $eventName, array $data, int $storeId): void; } diff --git a/Model/AsyncEventPublisher.php b/Model/AsyncEventPublisher.php index 5389bb8..f71069c 100644 --- a/Model/AsyncEventPublisher.php +++ b/Model/AsyncEventPublisher.php @@ -24,10 +24,10 @@ public function __construct( * * @param string $eventName * @param array $data - * @param string $storeId + * @param int $storeId * @return void */ - public function publish(string $eventName, array $data, string $storeId = "0"): void + public function publish(string $eventName, array $data, int $storeId = 0): void { $arguments = $this->serializer->serialize($data);