Bug #71567
closedBug #72932: PHP Warning: Incompatible method declaration in Extbase
FAL FileReference
0%
Description
The following error occurs when switching from PHP 5.6 to PHP 7 in combination with TYPO3 7.6 LTS
1: PHP Warning: Declaration of TYPO3\CMS\Extbase\Domain\Model\FileReference::setOriginalResource(TYPO3\CMS\Core\Resource\FileReference $originalResource) should be compatible with TYPO3\CMS\Extbase\Domain\Model\AbstractFileFolder::setOriginalResource(TYPO3\CMS\Core\Resource\ResourceInterface $originalResource) in ***/typo3_src-7.6.0/typo3/sysext/extbase/Classes/Domain/Model/FileReference.php line 22
Updated by Riccardo De Contardi about 9 years ago
- Category set to File Abstraction Layer (FAL)
Updated by Alexander Opitz almost 9 years ago
- Status changed from New to Accepted
- Assignee set to Alexander Opitz
- Target version changed from 7 LTS to Candidate for patchlevel
Updated by Frank Buijze almost 9 years ago
Michael Oehlhof wrote:
How is it to reproduce?
Basic use of File Reference in combination with PHP 7. I experienced this error during the development of a plugin fro Typo3. Issue does not exist in earlier versions of PHP
Updated by Philipp Faber almost 9 years ago
Is there a fix or workaround for this? I just took a a whole installation and moved it to another server that runs PHP7 and now I get this error.
Updated by Michael Oehlhof almost 9 years ago
- Status changed from Accepted to Closed
- Assignee deleted (
Alexander Opitz) - Parent task set to #72932
Duplicate of 72932