From a12ed492ef52c72575e8c3c1a89d6837fa8885f7 Mon Sep 17 00:00:00 2001 From: Max Gfeller Date: Thu, 19 Dec 2013 08:47:55 +0100 Subject: [PATCH] Don't throw exception in the doDispatch method. --- src/Composer/EventDispatcher/EventDispatcher.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Composer/EventDispatcher/EventDispatcher.php b/src/Composer/EventDispatcher/EventDispatcher.php index 2f19673c4..9c2aee91f 100644 --- a/src/Composer/EventDispatcher/EventDispatcher.php +++ b/src/Composer/EventDispatcher/EventDispatcher.php @@ -118,10 +118,6 @@ class EventDispatcher { $listeners = $this->getListeners($event); - if(sizeof($listeners) === 0) { - throw new \InvalidArgumentException(sprintf('Script "%s" does not exist', $event->getName())); - } - foreach ($listeners as $callable) { if (!is_string($callable) && is_callable($callable)) { call_user_func($callable, $event);