type fixes

This commit is contained in:
Robin Appelman 2021-03-09 18:10:27 +01:00
commit 7cb4e41f8a
7 changed files with 32 additions and 7 deletions

View file

@ -165,7 +165,7 @@ class Parser {
$mode = $this->parseMode($mode);
$time = strtotime($time . ' ' . $this->timeZone);
$path = $basePath . '/' . $name;
$content[] = new FileInfo($path, $name, $size, $time, $mode, function () use ($aclCallback, $path) {
$content[] = new FileInfo($path, $name, (int)$size, $time, $mode, function () use ($aclCallback, $path) {
return $aclCallback($path);
});
}