From f00f5113bfc4c1c7035921a2c9dace34f6071e8d Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Wed, 14 Aug 2013 18:30:09 +0200 Subject: [PATCH] Fix typo --- src/Composer/EventDispatcher/EventDispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/EventDispatcher/EventDispatcher.php b/src/Composer/EventDispatcher/EventDispatcher.php index f47e77044..3762529e7 100644 --- a/src/Composer/EventDispatcher/EventDispatcher.php +++ b/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, '::'));