Skip to content
This repository was archived by the owner on Feb 21, 2022. It is now read-only.

Commit be646bd

Browse files
committed
Fix bug in EventMEssageBus
1 parent 5dcf8d7 commit be646bd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LiteCQRS/Bus/AbstractEventMessageBus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(array $proxyFactories = array())
1919
$this->scheduledEvents = new SplObjectStorage();
2020
}
2121

22-
public function publish(DomainEvent $event)
22+
public function publish($event)
2323
{
2424
if ($this->events->contains($event)) {
2525
return;

src/LiteCQRS/Bus/EventMessageBus.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface EventMessageBus
1919
* @param DomainEvent $event
2020
* @return void
2121
*/
22-
public function publish(DomainEvent $event);
22+
public function publish($event);
2323

2424
/**
2525
* Clear all events that have been published, but not yet dispatched to handlers.

0 commit comments

Comments
 (0)