From 05a7e612087b1eeb4411f1ce0393684ecd979be2 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Thu, 17 Feb 2022 18:20:14 +0100 Subject: [PATCH] [FEATURE] Add module definitions to the PhpStorm meta file (#388) Copied from: - https://review.typo3.org/c/Packages/TYPO3.CMS/+/73521 - https://review.typo3.org/c/Packages/TYPO3.CMS/+/73415 Fixes #382 --- .phpstorm.meta.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php index b3fc134..87afdbd 100644 --- a/.phpstorm.meta.php +++ b/.phpstorm.meta.php @@ -136,7 +136,9 @@ namespace PHPSTORM_META { 'normalizedParams', 'site', 'language', - 'routing' + 'routing', + 'module', + 'moduleData' ); override(\Psr\Http\Message\ServerRequestInterface::getAttribute(), map([ @@ -146,6 +148,8 @@ 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, + 'moduleData' => \TYPO3\CMS\Backend\Module\ModuleData::class, ])); expectedArguments( @@ -156,7 +160,9 @@ namespace PHPSTORM_META { 'normalizedParams', 'site', 'language', - 'routing' + 'routing', + 'module', + 'moduleData' ); override(\TYPO3\CMS\Core\Http\ServerRequest::getAttribute(), map([ @@ -166,6 +172,8 @@ 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, + 'moduleData' => \TYPO3\CMS\Backend\Module\ModuleData::class, ])); override(\TYPO3\CMS\Core\Routing\SiteMatcher::matchRequest(), type(