Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
corrected type hint for detach function argument
Browse files Browse the repository at this point in the history
  • Loading branch information
sabir-jamia committed Sep 15, 2017
1 parent 5079ece commit 04687c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/book/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ class LogEvents implements ListenerAggregateInterface
$this->listeners[] = $events->attach('doSomethingElse', [$this, 'log']);
}

public function detach(EventCollection $events)
public function detach(EventManagerInterface $events)
{
foreach ($this->listeners as $index => $listener) {
$events->detach($listener);
Expand Down

0 comments on commit 04687c2

Please sign in to comment.