Nils Adermann 12 年之前
父节点
当前提交
f00f5113bf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Composer/EventDispatcher/EventDispatcher.php

+ 1 - 1
src/Composer/EventDispatcher/EventDispatcher.php

@@ -119,7 +119,7 @@ class EventDispatcher
         $listeners = $this->getListeners($event);
 
         foreach ($listeners as $callable) {
-            if ((is_array($callable) && $is_callable($callable)) || $callable instanceof Closure) {
+            if ((is_array($callable) && is_callable($callable)) || $callable instanceof Closure) {
                 $callable($event);
             } elseif ($this->isPhpScript($callable)) {
                 $className = substr($callable, 0, strpos($callable, '::'));