Breaking: #101327 - Harden FileInterface::getSize()¶
A return type declaration has been added to method stub
As a consequence, implementations of said method,
\TYPO3\CMS\Core\Resource\FileReference::getSize() received return type declarations as well.
\TYPO3\CMS\Core\Resource\AbstractFile::getSize() has been adjusted to actually just
return integer. It formerly returned
null if the actual size could not be gathered. It now returns
0 in that case.
Code, that calls
\TYPO3\CMS\Core\Resource\AbstractFile::getSize() through derivatives like
\TYPO3\CMS\Core\Resource\File::getSize() might be adjusted to not respect
null any more.
Implementations (classes) that implement
\TYPO3\CMS\Core\Resource\FileInterface, have to
adjust the return type of method
getSize() to match the contract.
Installations that implement
\TYPO3\CMS\Core\Resource\FileInterface or that call
\TYPO3\CMS\Core\Resource\FileInterface::getSize() via derivatives.
Adjust the return type and possible