diff --git a/src/Composer/EventDispatcher/EventDispatcher.php b/src/Composer/EventDispatcher/EventDispatcher.php index bbebfae31..3bb1c8496 100644 --- a/src/Composer/EventDispatcher/EventDispatcher.php +++ b/src/Composer/EventDispatcher/EventDispatcher.php @@ -205,10 +205,6 @@ class EventDispatcher */ protected function checkListenerExpectedEvent($target, Event $event) { - if (!$event instanceof Script\Event) { - return $event; - } - try { $reflected = new \ReflectionParameter($target, 0); } catch (\Exception $e) {