From eadc167b121359986f542cc9cf976ecee3fcbf69 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 2 Mar 2015 18:20:22 +0000 Subject: [PATCH] Fix BC layer for events --- 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 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) {