[BUGFIX] AbstractMessage should have string, but integer is given 45/52445/2
authorOliver Hader <oliver@typo3.org>
Fri, 14 Apr 2017 10:54:41 +0000 (12:54 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Fri, 14 Apr 2017 17:03:30 +0000 (19:03 +0200)
FlashMessage setter have been extended with strict scalar types,
however the disposal for e.g. Exception has not been adjusted to
ensure proper types.

Change-Id: Idcfbef5a7ee6a401977c69bebd9f9516ec1b6997
Resolves: #80762
Releases: master
Reviewed-on: https://review.typo3.org/52445
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/extbase/Classes/Mvc/Controller/AbstractController.php

index 7986839..441ec5a 100644 (file)
@@ -182,7 +182,11 @@ abstract class AbstractController implements ControllerInterface
         }
         /* @var \TYPO3\CMS\Core\Messaging\FlashMessage $flashMessage */
         $flashMessage = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
-            \TYPO3\CMS\Core\Messaging\FlashMessage::class, $messageBody, $messageTitle, $severity, $storeInSession
+            \TYPO3\CMS\Core\Messaging\FlashMessage::class,
+            (string)$messageBody,
+            (string)$messageTitle,
+            $severity,
+            $storeInSession
         );
         $this->controllerContext->getFlashMessageQueue()->enqueue($flashMessage);
     }