From 6f319764f49b2b97564d420c5713f97012b4c0ed Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Wed, 4 Sep 2024 18:05:06 +0200 Subject: [PATCH] [TASK] Drop `.phpstorm.meta.php` With modern PHPDoc annotations and modern PhpStorm versions, this file is not needed anymore. --- .gitattributes | 1 - .phpstorm.meta.php | 168 --------------------------------------------- 2 files changed, 169 deletions(-) delete mode 100644 .phpstorm.meta.php diff --git a/.gitattributes b/.gitattributes index ba2fcd8..59bf335 100644 --- a/.gitattributes +++ b/.gitattributes @@ -8,7 +8,6 @@ /.npmrc export-ignore /.nvmrc export-ignore /.php-cs-fixer.php export-ignore -/.phpstorm.meta.php export-ignore /.prettierrc.js export-ignore /Build/ export-ignore /Configuration/FunctionalTests.xml export-ignore diff --git a/.phpstorm.meta.php b/.phpstorm.meta.php deleted file mode 100644 index 68311ca..0000000 --- a/.phpstorm.meta.php +++ /dev/null @@ -1,168 +0,0 @@ - '@|\\PHPUnit\\Framework\\MockObject\\MockObject' - . '|\\TYPO3\\TestingFramework\\Core\\AccessibleObjectInterface', - ] - ) - ); - override( - \TYPO3\TestingFramework\Core\BaseTestCase::getAccessibleMockForAbstractClass(0), - map( - [ - '' => '@|\\PHPUnit\\Framework\\MockObject\\MockObject' - . '|\\TYPO3\TestingFramework\\Core\\AccessibleObjectInterface', - ] - ) - ); - - // Contexts - // @see https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.4/Feature-85389-ContextAPIForConsistentDataHandling.html - expectedArguments( - \TYPO3\CMS\Core\Context\Context::getAspect(), - 0, - 'date', - 'visibility', - 'backend.user', - 'frontend.user', - 'workspace', - 'language', - 'typoscript' - ); - - override(\TYPO3\CMS\Core\Context\Context::getAspect(), map([ - 'date' => \TYPO3\CMS\Core\Context\DateTimeAspect::class, - 'visibility' => \TYPO3\CMS\Core\Context\VisibilityAspect::class, - 'backend.user' => \TYPO3\CMS\Core\Context\UserAspect::class, - 'frontend.user' => \TYPO3\CMS\Core\Context\UserAspect::class, - 'workspace' => \TYPO3\CMS\Core\Context\WorkspaceAspect::class, - 'language' => \TYPO3\CMS\Core\Context\LanguageAspect::class, - 'typoscript' => \TYPO3\CMS\Core\Context\TypoScriptAspect::class, - ])); - - expectedArguments( - \TYPO3\CMS\Core\Context\DateTimeAspect::get(), - 0, - 'timestamp', - 'iso', - 'timezone', - 'full', - 'accessTime' - ); - - expectedArguments( - \TYPO3\CMS\Core\Context\VisibilityAspect::get(), - 0, - 'includeHiddenPages', - 'includeHiddenContent', - 'includeDeletedRecords' - ); - - expectedArguments( - \TYPO3\CMS\Core\Context\UserAspect::get(), - 0, - 'id', - 'username', - 'isLoggedIn', - 'isAdmin', - 'groupIds', - 'groupNames' - ); - - expectedArguments( - \TYPO3\CMS\Core\Context\WorkspaceAspect::get(), - 0, - 'id', - 'isLive', - 'isOffline' - ); - - expectedArguments( - \TYPO3\CMS\Core\Context\LanguageAspect::get(), - 0, - 'id', - 'contentId', - 'fallbackChain', - 'overlayType', - 'legacyLanguageMode', - 'legacyOverlayType' - ); - - expectedArguments( - \TYPO3\CMS\Core\Context\TypoScriptAspect::get(), - 0, - 'forcedTemplateParsing' - ); - - expectedArguments( - \Psr\Http\Message\ServerRequestInterface::getAttribute(), - 0, - 'backend.user', - 'frontend.user', - 'normalizedParams', - 'site', - 'language', - 'routing', - 'module', - 'moduleData' - ); - - override(\Psr\Http\Message\ServerRequestInterface::getAttribute(), map([ - 'backend.user' => \TYPO3\CMS\Backend\FrontendBackendUserAuthentication::class, - 'frontend.user' => \TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication::class, - 'normalizedParams' => \TYPO3\CMS\Core\Http\NormalizedParams::class, - '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( - \TYPO3\CMS\Core\Http\ServerRequest::getAttribute(), - 0, - 'backend.user', - 'frontend.user', - 'normalizedParams', - 'site', - 'language', - 'routing', - 'module', - 'moduleData' - ); - - override(\TYPO3\CMS\Core\Http\ServerRequest::getAttribute(), map([ - 'backend.user' => \TYPO3\CMS\Backend\FrontendBackendUserAuthentication::class, - 'frontend.user' => \TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication::class, - 'normalizedParams' => \TYPO3\CMS\Core\Http\NormalizedParams::class, - '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( - \TYPO3\CMS\Core\Routing\SiteRouteResult::class, - \TYPO3\CMS\Core\Routing\RouteResultInterface::class - ) - ); - - override(\TYPO3\CMS\Core\Routing\PageRouter::matchRequest(), type( - \TYPO3\CMS\Core\Routing\PageArguments::class, - \TYPO3\CMS\Core\Routing\RouteResultInterface::class - )); -}