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

Commit a7e3f06

Browse files
committed
Merge pull request #60 from sabir-jamia/patch-1
corrected type hint for detach function argument
2 parents b4c6ffb + 04687c2 commit a7e3f06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/book/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class LogEvents implements ListenerAggregateInterface
293293
$this->listeners[] = $events->attach('doSomethingElse', [$this, 'log']);
294294
}
295295

296-
public function detach(EventCollection $events)
296+
public function detach(EventManagerInterface $events)
297297
{
298298
foreach ($this->listeners as $index => $listener) {
299299
$events->detach($listener);

0 commit comments

Comments
 (0)