提交 68bf75e8 编写于 作者: M Márk Sági-Kazár 提交者: GitHub

Merge pull request #1595 from LawnGnome/4.x

don't use eventName as parameter and variable
......@@ -44,8 +44,7 @@ class Emitter implements EmitterInterface
public function once($eventName, callable $listener, $priority = 0)
{
$onceListener = function (
EventInterface $event,
$eventName
EventInterface $event
) use (&$onceListener, $eventName, $listener, $priority) {
$this->removeListener($eventName, $onceListener);
$listener($event, $eventName, $this);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册