From 60126b89643053756a6fd45accf46795faf86199 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Tue, 1 Oct 2019 11:06:39 +0200 Subject: [PATCH] [Contracts] Don't remove object type declaration from PSR interface. --- .../Contracts/EventDispatcher/EventDispatcherInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Contracts/EventDispatcher/EventDispatcherInterface.php b/src/Symfony/Contracts/EventDispatcher/EventDispatcherInterface.php index 2d470af92006c..46e2a82c388e2 100644 --- a/src/Symfony/Contracts/EventDispatcher/EventDispatcherInterface.php +++ b/src/Symfony/Contracts/EventDispatcher/EventDispatcherInterface.php @@ -32,7 +32,7 @@ interface EventDispatcherInterface extends PsrEventDispatcherInterface * * @return object The passed $event MUST be returned */ - public function dispatch($event/*, string $eventName = null*/); + public function dispatch(object $event/*, string $eventName = null*/); } } else { /**