diff --git a/src/Composer/EventDispatcher/EventDispatcher.php b/src/Composer/EventDispatcher/EventDispatcher.php index 83e96d622..c5033124e 100644 --- a/src/Composer/EventDispatcher/EventDispatcher.php +++ b/src/Composer/EventDispatcher/EventDispatcher.php @@ -219,7 +219,7 @@ class EventDispatcher try { $reflected = new \ReflectionParameter($target, 0); - } catch (\ReflectionException $e) { + } catch (\Exception $e) { return $event; }