Sfoglia il codice sorgente

Fix BC layer for events

Jordi Boggiano 10 anni fa
parent
commit
eadc167b12
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. 0 4
      src/Composer/EventDispatcher/EventDispatcher.php

+ 0 - 4
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) {