From dd059ddb294fc9dda1f632e0d3c41f5f8f71d362 Mon Sep 17 00:00:00 2001 From: Oliver Bartsch <bo@cedev.de> Date: Tue, 15 Feb 2022 13:29:16 +0100 Subject: [PATCH] [TASK] Add Module definiton to .phpstorm.meta.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since #96797, the Module object is added to the PSR-7 Request, in case a TYPO3 backend module is requested. To further support autocompletion, the Module definition is now added to the .phpstorm.meta.php file. Resolves: #96905 Related: #96797 Releases: main Change-Id: Id323f27dbe59a386cf38ba73ee75bd07abb11532 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/73521 Tested-by: Stefan Bürk <stefan@buerk.tech> Tested-by: core-ci <typo3@b13.com> Tested-by: Benni Mack <benni@typo3.org> Reviewed-by: Stefan Bürk <stefan@buerk.tech> Reviewed-by: Benni Mack <benni@typo3.org> --- .phpstorm.meta.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php index 8359b8984364..7469748b597a 100644 --- a/.phpstorm.meta.php +++ b/.phpstorm.meta.php @@ -98,7 +98,8 @@ namespace PHPSTORM_META { 'normalizedParams', 'site', 'language', - 'routing' + 'routing', + 'module' ); override(\Psr\Http\Message\ServerRequestInterface::getAttribute(), map([ @@ -108,6 +109,7 @@ namespace PHPSTORM_META { 'site' => \TYPO3\CMS\Core\Site\Entity\SiteInterface::class, 'language' => \TYPO3\CMS\Core\Site\Entity\SiteLanguage::class, 'routing' => '\TYPO3\CMS\Core\Routing\SiteRouteResult|\TYPO3\CMS\Core\Routing\PageArguments', + 'module' => \TYPO3\CMS\Backend\Module\ModuleInterface::class, ])); expectedArguments( @@ -118,7 +120,8 @@ namespace PHPSTORM_META { 'normalizedParams', 'site', 'language', - 'routing' + 'routing', + 'module' ); override(\TYPO3\CMS\Core\Http\ServerRequest::getAttribute(), map([ @@ -128,6 +131,7 @@ namespace PHPSTORM_META { 'site' => \TYPO3\CMS\Core\Site\Entity\SiteInterface::class, 'language' => \TYPO3\CMS\Core\Site\Entity\SiteLanguage::class, 'routing' => '\TYPO3\CMS\Core\Routing\SiteRouteResult|\TYPO3\CMS\Core\Routing\PageArguments', + 'module' => \TYPO3\CMS\Backend\Module\ModuleInterface::class, ])); override(\TYPO3\CMS\Core\Routing\SiteMatcher::matchRequest(), type( -- GitLab