From c819ea0633d2ae097002526c34ebfbd467ee0e34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frank=20N=C3=A4gler?= Date: Thu, 12 Mar 2015 20:29:06 +0100 Subject: [PATCH] [TASK] Use ::class instead of strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In some cases makeInstance is used with strings instead of ::class. This patch fix it. Resolves: #65704 Releases: master Change-Id: I69afa653f50efbebaa7456acfb5d20f401e639fb Reviewed-on: http://review.typo3.org/37798 Reviewed-by: Frank Nägler Tested-by: Frank Nägler Reviewed-by: Stephan Großberndt Reviewed-by: Michael Oehlhof Reviewed-by: Markus Klein Tested-by: Markus Klein --- Classes/FrontendEditPanel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index 0930e54..e631e9a 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -65,7 +65,7 @@ class FrontendEditPanel { $this->databaseConnection = $databaseConnection ?: $GLOBALS['TYPO3_DB']; $this->frontendController = $frontendController ?: $GLOBALS['TSFE']; $this->backendUser = $backendUser ?: $GLOBALS['BE_USER']; - $this->cObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer'); + $this->cObj = GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class); $this->cObj->start(array()); }