Commit 931f486b authored by Tim Wagner's avatar Tim Wagner

[TASK] Suppress PHP warnings when aliassing classes

parent 40362fa0
......@@ -63,12 +63,12 @@ call_user_func(
if (version_compare(\TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version(), '10.3.0', '<')) {
if (!class_exists('LanguageVisibilityPageRepository')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
class_alias(\TYPO3\CMS\Frontend\Page\PageRepository::class, 'LanguageVisibilityPageRepository');
@class_alias(\TYPO3\CMS\Frontend\Page\PageRepository::class, 'LanguageVisibilityPageRepository');
}
if (!class_exists('LanguageVisibilityPageRepositoryGetPageOverlayHookInterface')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
class_alias(
@class_alias(
\TYPO3\CMS\Frontend\Page\PageRepositoryGetPageOverlayHookInterface::class,
'LanguageVisibilityPageRepositoryGetPageOverlayHookInterface'
);
......@@ -76,7 +76,7 @@ call_user_func(
if (!class_exists('LanguageVisibilityPageRepositoryGetRecordOverlayHookInterface')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
class_alias(
@class_alias(
\TYPO3\CMS\Frontend\Page\PageRepositoryGetRecordOverlayHookInterface::class,
'LanguageVisibilityPageRepositoryGetRecordOverlayHookInterface'
);
......@@ -86,8 +86,8 @@ call_user_func(
['className' => \TYPO3\Languagevisibility\Xclass\PageRepository::class];
} else {
if (!class_exists('LanguageVisibilityPageRepository')) {
/** @noinspection PhpUndefinedClassInspection */
class_alias(
/** @noinspection PhpIgnoredClassAliasDeclaration */
@class_alias(
\TYPO3\CMS\Core\Domain\Repository\PageRepository::class,
'LanguageVisibilityPageRepository'
);
......@@ -95,7 +95,7 @@ call_user_func(
if (!class_exists('LanguageVisibilityPageRepositoryGetPageOverlayHookInterface')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
class_alias(
@class_alias(
\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetPageOverlayHookInterface::class,
'LanguageVisibilityPageRepositoryGetPageOverlayHookInterface'
);
......@@ -103,7 +103,7 @@ call_user_func(
if (!class_exists('LanguageVisibilityPageRepositoryGetRecordOverlayHookInterface')) {
/** @noinspection PhpIgnoredClassAliasDeclaration */
class_alias(
@class_alias(
\TYPO3\CMS\Core\Domain\Repository\PageRepositoryGetRecordOverlayHookInterface::class,
'LanguageVisibilityPageRepositoryGetRecordOverlayHookInterface'
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment