Bug #72932: PHP Warning: Incompatible method declaration in Extbase
File Abstraction Layer (FAL)
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
- Category set to File Abstraction Layer (FAL)
- Status changed from New to Accepted
- Assignee set to Alexander Opitz
- Target version changed from 7 LTS to Candidate for patchlevel
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
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.
- Status changed from Accepted to Closed
- Assignee deleted (
- Parent task set to #72932
Also available in: Atom