[BUGFIX] Workspaces: Exception with PHP 7 79/46079/2
authorMichael Oehlhof <typo3@oehlhof.de>
Sat, 16 Jan 2016 11:51:36 +0000 (12:51 +0100)
committerStefan Neufeind <typo3.neufeind@speedpartner.de>
Fri, 22 Jan 2016 13:22:15 +0000 (14:22 +0100)
Make the Declaration of
TYPO3\CMS\Workspaces\Controller\ReviewController::initializeView()
compatible with
TYPO3\CMS\Extbase\Mvc\Controller\ActionController::initializeView()

Resolves: #72766
Releases: master, 7.6
Change-Id: I1b7723e61ba7386e95690926b8e30dbd25c0fdb4
Reviewed-on: https://review.typo3.org/46079
Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de>
typo3/sysext/workspaces/Classes/Controller/ReviewController.php

index 3127065..0e59ff7 100644 (file)
@@ -15,10 +15,10 @@ namespace TYPO3\CMS\Workspaces\Controller;
  */
 
 use TYPO3\CMS\Backend\Utility\BackendUtility;
-use TYPO3\CMS\Backend\View\BackendTemplateView;
 use TYPO3\CMS\Core\Imaging\Icon;
 use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
 use TYPO3\CMS\Core\Utility\GeneralUtility;
+use TYPO3\CMS\Extbase\Mvc\View\ViewInterface;
 use TYPO3\CMS\Workspaces\Service\WorkspaceService;
 
 /**
@@ -29,9 +29,9 @@ class ReviewController extends AbstractController
     /**
      * Set up the doc header properly here
      *
-     * @param BackendTemplateView $view
+     * @param ViewInterface $view
      */
-    protected function initializeView(BackendTemplateView $view)
+    protected function initializeView(ViewInterface $view)
     {
         parent::initializeView($view);
         $this->registerButtons();