/** @var callable|null */
protected $quotaCallback;
/** @var int|float|null int on 64bits, float on 32bits for bigint */
- protected $quota;
+ protected int|float|null $quota;
protected string $sizeRoot;
private SystemConfig $config;
/**
* @return int|float quota value
*/
- public function getQuota() {
+ public function getQuota(): int|float {
if ($this->quota === null) {
$quotaCallback = $this->quotaCallback;
if ($quotaCallback === null) {
*
* @param string $filename Path to the file.
*
- * @return int|float Number of bytes as number (float or int) or
- * null on failure.
+ * @return int|float Number of bytes as number (float or int)
*/
- public function getFileSize(string $filename): null|int|float {
+ public function getFileSize(string $filename): int|float {
$fileSize = $this->getFileSizeViaCurl($filename);
if (!is_null($fileSize)) {
return $fileSize;