From 9c96199feb9b04b0b40f2455c7214c8050666ca6 Mon Sep 17 00:00:00 2001 From: Andreas Fernandez <a.fernandez@scripting-base.de> Date: Mon, 13 Feb 2023 12:18:14 +0100 Subject: [PATCH] [TASK] PhpStorm understands EventDispatcher->dispatch() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PhpStorm now understands that PSR-14 `EventDispatcherInterface->dispatch()` returns an instance of the first argument. Resolves: #99929 Releases: main Change-Id: I0fda1df8cc434b897311049fbef5fe4f1389a2e7 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77837 Tested-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de> Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: core-ci <typo3@b13.com> --- .phpstorm.meta.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php index d2c853a0020b..408390456feb 100644 --- a/.phpstorm.meta.php +++ b/.phpstorm.meta.php @@ -136,4 +136,8 @@ namespace PHPSTORM_META { override(\Psr\Container\ContainerInterface::get(0), map([ '' => '@', ])); + + override(\Psr\EventDispatcher\EventDispatcherInterface::dispatch(0), map([ + '' => '@', + ])); } -- GitLab