From 9f6b898fd8834d1bf140882fe82caa03545586b2 Mon Sep 17 00:00:00 2001 From: Benni Mack <benni@typo3.org> Date: Wed, 27 Dec 2017 13:07:27 +0100 Subject: [PATCH] [BUGFIX] Add class name to property deprecations Resolves: #83431 Releases: master Change-Id: I5dbc5649b46b007881717a98458de22b154203ca Reviewed-on: https://review.typo3.org/55216 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Reviewed-by: Reiner Teubner <rteubner@me.com> Tested-by: Reiner Teubner <rteubner@me.com> Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch> Tested-by: Christian Kuhn <lolli@schwarzbu.ch> --- .../Classes/TypoScript/TemplateService.php | 28 +++++++++---------- .../frontend/Classes/Page/PageRepository.php | 6 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/typo3/sysext/core/Classes/TypoScript/TemplateService.php b/typo3/sysext/core/Classes/TypoScript/TemplateService.php index 47b2de335c01..0b9d3d67ac31 100644 --- a/typo3/sysext/core/Classes/TypoScript/TemplateService.php +++ b/typo3/sysext/core/Classes/TypoScript/TemplateService.php @@ -47,20 +47,20 @@ class TemplateService * @var array */ protected $deprecatedPublicProperties = [ - 'matchAll' => 'Using $matchAll from the outside is discouraged, as this variable is only used for internal storage.', - 'whereClause' => 'Using $whereClause is discouraged, as this has been superseeded by Doctrine DBAL API.', - 'debug' => 'Using $debug is discouraged, as this option has no effect anymore.', - 'allowedPaths' => 'Using $allowedPaths from the outside is discouraged, as this variable is only used for internal storage.', - 'simulationHiddenOrTime' => 'Using $simulationHiddenOrTime is discouraged, as this has been superseeded by Doctrine DBAL API.', - 'nextLevel' => 'Using $nextLevel from the outside is discouraged, as this variable is only used for internal storage.', - 'rootId' => 'Using $rootId from the outside is discouraged, as this variable is only used for internal storage.', - 'absoluteRootLine' => 'Using $absoluteRootLine from the outside is discouraged, as this variable is only used for internal storage.', - 'outermostRootlineIndexWithTemplate' => 'Using $outermostRootlineIndexWithTemplate from the outside is discouraged, as this variable is only used for internal storage.', - 'rowSum' => 'Using $rowSum from the outside is discouraged, as this variable is only used for internal storage.', - 'sitetitle' => 'Using $sitetitle from the outside is discouraged, as this variable is only used for internal storage.', - 'sectionsMatch' => 'Using $sectionsMatch from the outside is discouraged, as this variable is only used for internal storage.', - 'frames' => 'Using $frames from the outside is discouraged, as this variable is only used for internal storage.', - 'MPmap' => 'Using $frames from the outside is discouraged, as this variable is only used for internal storage.', + 'matchAll' => 'Using $matchAll of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', + 'whereClause' => 'Using $whereClause of class TemplateService is discouraged, as this has been superseeded by Doctrine DBAL API.', + 'debug' => 'Using $debug of class TemplateService is discouraged, as this option has no effect anymore.', + 'allowedPaths' => 'Using $allowedPaths of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', + 'simulationHiddenOrTime' => 'Using $simulationHiddenOrTime of class TemplateService is discouraged, as this has been superseeded by Doctrine DBAL API.', + 'nextLevel' => 'Using $nextLevel of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', + 'rootId' => 'Using $rootId of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', + 'absoluteRootLine' => 'Using $absoluteRootLine of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', + 'outermostRootlineIndexWithTemplate' => 'Using $outermostRootlineIndexWithTemplate of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', + 'rowSum' => 'Using $rowSum of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', + 'sitetitle' => 'Using $sitetitle of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', + 'sectionsMatch' => 'Using $sectionsMatch of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', + 'frames' => 'Using $frames of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', + 'MPmap' => 'Using $MPmap of class TemplateService from the outside is discouraged, as this variable is only used for internal storage.', ]; /** diff --git a/typo3/sysext/frontend/Classes/Page/PageRepository.php b/typo3/sysext/frontend/Classes/Page/PageRepository.php index 59178b75ae17..5c0c643d6715 100644 --- a/typo3/sysext/frontend/Classes/Page/PageRepository.php +++ b/typo3/sysext/frontend/Classes/Page/PageRepository.php @@ -49,9 +49,9 @@ class PageRepository implements LoggerAwareInterface * @var array */ protected $deprecatedPublicProperties = [ - 'workspaceCache' => 'Using $workspaceCache from the outside is discouraged, as this only reflects a local runtime cache.', - 'error_getRootLine' => 'Using $error_getRootLine from the outside is deprecated as this property only exists for legacy reasons.', - 'error_getRootLine_failPid' => 'Using $error_getRootLine_failPid from the outside is deprecated as this property only exists for legacy reasons.', + 'workspaceCache' => 'Using $workspaceCache of class PageRepository from the outside is discouraged, as this only reflects a local runtime cache.', + 'error_getRootLine' => 'Using $error_getRootLine of class PageRepository from the outside is deprecated as this property only exists for legacy reasons.', + 'error_getRootLine_failPid' => 'Using $error_getRootLine_failPid of class PageRepository from the outside is deprecated as this property only exists for legacy reasons.', ]; /** -- GitLab