Breaking: #101294 - Introduce type declarations in FileInterface

See forge#101294


Return and param type declarations have been introduced for all methods stubs of \TYPO3\CMS\Core\Resource\FileInterface.


In consequence, all implementations of \TYPO3\CMS\Core\Resource\FileInterface need to reflect those changes and add the same return and param type declarations.

In case, any of the Core implementations are extended, overridden methods might need to be adjusted. The Core classes, implementing \TYPO3\CMS\Core\Resource\FileInterface, are:

  • \TYPO3\CMS\Core\Resource\AbstractFile
  • \TYPO3\CMS\Core\Resource\File
  • \TYPO3\CMS\Core\Resource\FileReference
  • \TYPO3\CMS\Core\Resource\ProcessedFile

Affected installations

Only those installations that implement \TYPO3\CMS\Core\Resource\FileInterface directly or that extend any of those mentioned core implementations.


Return and param type declarations have to be synced with the ones of the interface.