Skip to content

Commit

Permalink
fix: storeId on AsyncEventPublisherInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
P.R. van Puijenbroek committed Nov 21, 2024
1 parent 99e40f1 commit af72c72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Api/AsyncEventPublisherInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
4 changes: 2 additions & 2 deletions Model/AsyncEventPublisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit af72c72

Please sign in to comment.