[BUGFIX] Fix comments in various places 00/57200/2
authorBenni Mack <benni@typo3.org>
Tue, 12 Jun 2018 08:21:15 +0000 (10:21 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 12 Jun 2018 11:22:50 +0000 (13:22 +0200)
There are some places where phpdoc comments and return types are wrong,
(an IDE shows this ASAP to you if you open up the file).

The patch fixes the small glitches.

Resolves: #85231
Releases: master, 8.7
Change-Id: I3550e7631b31144989d09feee79d1c96da3079db
Reviewed-on: https://review.typo3.org/57195
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
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>
(cherry picked from commit 721dea9726deca920639d026169b33acf4842b9a)
Reviewed-on: https://review.typo3.org/57200

typo3/sysext/core/Classes/Resource/StorageRepository.php
typo3/sysext/core/Classes/TypoScript/ExtendedTemplateService.php
typo3/sysext/frontend/Classes/Hooks/TreelistCacheUpdateHooks.php

index 2f87898..f86c553 100644 (file)
@@ -26,7 +26,7 @@ use TYPO3\CMS\Core\Utility\GeneralUtility;
 class StorageRepository extends AbstractRepository
 {
     /**
-     * @var NULL|array‚
+     * @var array|null
      */
     protected static $storageRowCache = null;
 
index adf60a1..d6f9701 100644 (file)
@@ -394,7 +394,7 @@ class ExtendedTemplateService extends TemplateService
      * @param string $parentType (unused)
      * @param string $parentValue (unused)
      * @param string $alphaSort sorts the array keys / tree by alphabet when set to 1
-     * @return array
+     * @return string
      */
     public function ext_getObjTree($arr, $depth_in, $depthData, $parentType = '', $parentValue = '', $alphaSort = '0')
     {
index 34a8560..aaa4d53 100644 (file)
@@ -322,9 +322,9 @@ class TreelistCacheUpdateHooks
      *
      * @param string $status DataHandler operation status, either 'new' or 'update'
      * @param array $updatedFields Array of updated fields
-     * @return string List of actions that happened to the page record
+     * @return array List of actions that happened to the page record
      */
-    protected function determineClearCacheActions($status, $updatedFields)
+    protected function determineClearCacheActions($status, $updatedFields): array
     {
         $actions = [];
         if ($status === 'new') {