[BUGFIX] Fix @var comment in AbstractFileCollection 92/59892/2
authorSusanne Moog <susanne.moog@typo3.com>
Thu, 7 Mar 2019 08:43:32 +0000 (09:43 +0100)
committerBenni Mack <benni@typo3.org>
Thu, 7 Mar 2019 11:45:53 +0000 (12:45 +0100)
A collection can contain either File or FileReferences. The typehint
only referenced Files confusing developers. The typehint has been
fixed.

Resolves: #67091
Releases: master, 9.5
Change-Id: I9362d19e9e80121b8c048d3eb5dd5931ed923cf9
Reviewed-on: https://review.typo3.org/c/59892
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Benni Mack <benni@typo3.org>
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Benni Mack <benni@typo3.org>
typo3/sysext/core/Classes/Resource/Collection/AbstractFileCollection.php

index 2a76d29..dfe4866 100644 (file)
@@ -143,7 +143,7 @@ abstract class AbstractFileCollection extends \TYPO3\CMS\Core\Collection\Abstrac
     public function getItems()
     {
         $itemArray = [];
-        /** @var File $item */
+        /** @var FileInterface $item */
         foreach ($this->storage as $item) {
             $itemArray[] = $item;
         }