Skip to content

Commit

Permalink
Merge pull request #990 from koot-labs/fix-emitter-types
Browse files Browse the repository at this point in the history
  • Loading branch information
irazasyed authored Aug 9, 2022
2 parents ea59fd0 + 616aae4 commit b78af77
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Events/EmitsEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Telegram\Bot\Events;

use League\Event\Emitter;
use League\Event\EmitterInterface;
use League\Event\EventInterface;

/**
* EmitsEvents.
*/
trait EmitsEvents
{
/** @var Emitter */
/** @var EmitterInterface */
protected $eventEmitter;

/**
Expand Down Expand Up @@ -62,17 +62,17 @@ private function emitBatchOfEvents(array $events): bool
/**
* Returns an event emitter.
*
* @return Emitter
* @return EmitterInterface
*/
public function getEventEmitter(): Emitter
public function getEventEmitter(): EmitterInterface
{
return $this->eventEmitter;
}

/**
* Set an event emitter.
*
* @param Emitter $eventEmitter
* @param EmitterInterface $eventEmitter
*
* @return $this
*/
Expand Down

0 comments on commit b78af77

Please sign in to comment.