Skip to content

Commit

Permalink
Merge pull request #25 from creative-commoners/pulls/1.0/remove-self
Browse files Browse the repository at this point in the history
ENH Use class name instead of self
  • Loading branch information
GuySartorelli authored Jun 17, 2024
2 parents dbcd3f6 + 2362374 commit aea42ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dispatch/EventDispatcherInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ interface EventDispatcherInterface extends PsrEventDispatcherInterface
* @param EventHandlerInterface $listener
* @return $this
*/
public function addListener(string $eventName, EventHandlerInterface $listener): self;
public function addListener(string $eventName, EventHandlerInterface $listener): EventDispatcherInterface;

/**
* @param string $eventName
* @param EventHandlerInterface $listener
* @return $this
*/
public function removeListener(string $eventName, EventHandlerInterface $listener): self;
public function removeListener(string $eventName, EventHandlerInterface $listener): EventDispatcherInterface;

/**
* @param object $eventContext
Expand Down

0 comments on commit aea42ed

Please sign in to comment.