Breaking: #101327 - Harden FileInterface::getSize()
See forge#101327
Description
A return type declaration has been added to the method stub \TYPO3\
.
As a consequence, implementations of said method, \TYPO3\
and \TYPO3\
received return type declarations as well.
Also, \TYPO3\
has been adjusted to actually just
return an integer. Previously, it returned null
, if the actual size could not be gathered. It now returns
0
in that case.
Impact
Code, that calls \TYPO3\
through derivatives like
\TYPO3\
might be adjusted to not respect null
any more.
Implementations (classes) that implement \TYPO3\
, have to
adjust the return type of the method get
to match the contract.
Affected installations
Installations that implement \TYPO3\
or that call
\TYPO3\
via derivatives.
Migration
Adjust the return type and possible null
checks.