Skip to content

Commit

Permalink
Changed return type to void for `Hyperf\Event\Contract\ListenerInte…
Browse files Browse the repository at this point in the history
…rface::process()`. (#4611)
  • Loading branch information
limingxinleo authored Mar 18, 2022
1 parent 43873f2 commit 80faaf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Listener/BeforeMainServerStartListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function listen(): array
* Handle the Event when the event is triggered, all listeners will
* complete before the event is returned to the EventDispatcher.
*/
public function process(object $event)
public function process(object $event): void
{
// Init the consumer process.
$consumerManager = $this->container->get(ConsumerManager::class);
Expand Down
2 changes: 1 addition & 1 deletion src/Listener/MainWorkerStartListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function listen(): array
* Handle the Event when the event is triggered, all listeners will
* complete before the event is returned to the EventDispatcher.
*/
public function process(object $event)
public function process(object $event): void
{
// Declare exchange and routingKey
$producerMessages = AnnotationCollector::getClassesByAnnotation(Producer::class);
Expand Down

0 comments on commit 80faaf2

Please sign in to comment.