From a79ed0653bceb77216d4bc0e3ac633333ecff242 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Tue, 27 Oct 2020 15:43:07 +0100 Subject: [PATCH] Deprecate \OCP\EventDispatcher\IEventDispatcher::dispatch As discussed in https://help.nextcloud.com/t/deprecation-of-ieventdispatcher-dispatch/95381 Signed-off-by: Christoph Wurst --- lib/public/EventDispatcher/IEventDispatcher.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/public/EventDispatcher/IEventDispatcher.php b/lib/public/EventDispatcher/IEventDispatcher.php index 471447e4b9f..095178f16e1 100644 --- a/lib/public/EventDispatcher/IEventDispatcher.php +++ b/lib/public/EventDispatcher/IEventDispatcher.php @@ -75,6 +75,7 @@ interface IEventDispatcher { * @psalm-param T $event * * @since 17.0.0 + * @deprecated 21.0.0 use \OCP\EventDispatcher\IEventDispatcher::dispatchTyped */ public function dispatch(string $eventName, Event $event): void;