Compare commits

...

1 Commits

Author SHA1 Message Date
Daniel Kesselberg 12a78fb7b6
Fix Required parameter $internalPath follows optional parameter
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2021-04-09 16:51:42 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ class CachedMountFileInfo extends CachedMountInfo implements ICachedMountFileInf
/** @var string */
private $internalPath;
public function __construct(IUser $user, $storageId, $rootId, $mountPoint, $mountId = null, $rootInternalPath = '', $internalPath) {
public function __construct(IUser $user, int $storageId, int $rootId, string $mountPoint, ?int $mountId, string $rootInternalPath, string $internalPath) {
parent::__construct($user, $storageId, $rootId, $mountPoint, $mountId, $rootInternalPath);
$this->internalPath = $internalPath;
}

View File

@ -69,7 +69,7 @@ class CachedMountInfo implements ICachedMountInfo {
* @param int|null $mountId
* @param string $rootInternalPath
*/
public function __construct(IUser $user, $storageId, $rootId, $mountPoint, $mountId = null, $rootInternalPath = '') {
public function __construct(IUser $user, int $storageId, int $rootId, string $mountPoint, ?int $mountId, string $rootInternalPath) {
$this->user = $user;
$this->storageId = $storageId;
$this->rootId = $rootId;