[BUGFIX] Method is not compatible with its parent's counterpart 19/46319/2
authorXavier Perseguers <xavier@typo3.org>
Mon, 25 Jan 2016 14:17:00 +0000 (15:17 +0100)
committerBenni Mack <benni@typo3.org>
Fri, 29 Jan 2016 08:44:42 +0000 (09:44 +0100)
Change-Id: I03903572eb718d3b6e5054fbe6bca62dfe0f50ac
Releases: master, 7.6
Resolves: #72932
Reviewed-on: https://review.typo3.org/46319
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/extbase/Classes/Domain/Model/FileReference.php

index 4935ad5..ab651ff 100644 (file)
@@ -30,9 +30,9 @@ class FileReference extends \TYPO3\CMS\Extbase\Domain\Model\AbstractFileFolder
     protected $uidLocal;
 
     /**
-     * @param \TYPO3\CMS\Core\Resource\FileReference $originalResource
+     * @param \TYPO3\CMS\Core\Resource\ResourceInterface $originalResource
      */
-    public function setOriginalResource(\TYPO3\CMS\Core\Resource\FileReference $originalResource)
+    public function setOriginalResource(\TYPO3\CMS\Core\Resource\ResourceInterface $originalResource)
     {
         $this->originalResource = $originalResource;
         $this->uidLocal = (int)$originalResource->getOriginalFile()->getUid();