type fixes
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
namespace Espo\Core\Utils\Acl;
|
||||
|
||||
use Espo\Entities\User;
|
||||
use Espo\Entities\Portal;
|
||||
use Espo\ORM\EntityManager;
|
||||
use Espo\Core\AclManager;
|
||||
use Espo\Core\Portal\AclManagerContainer as PortalAclManagerContainer;
|
||||
@@ -78,6 +79,7 @@ class UserAclManagerProvider
|
||||
$aclManager = $this->aclManager;
|
||||
|
||||
if ($user->isPortal() && !$this->user->isPortal()) {
|
||||
/** @var ?Portal */
|
||||
$portal = $this->entityManager
|
||||
->getRDBRepository(User::ENTITY_TYPE)
|
||||
->getRelation($user, 'portals')
|
||||
|
||||
@@ -94,7 +94,7 @@ class Manager
|
||||
* If TRUE - returns only file list, if FALSE - only directory list.
|
||||
* @param bool $returnSingleArray Return a single array.
|
||||
*
|
||||
* @return array<int, string>|array<int, string[]>
|
||||
* @return array<int, string>|array<string, string[]>
|
||||
*/
|
||||
public function getFileList(
|
||||
string $path,
|
||||
@@ -267,7 +267,7 @@ class Manager
|
||||
return $data;
|
||||
}
|
||||
|
||||
usleep(self::GET_SAFE_CONTENTS_RETRY_INTERVAL * 1000000);
|
||||
usleep((int) (self::GET_SAFE_CONTENTS_RETRY_INTERVAL * 1000000));
|
||||
|
||||
$counter ++;
|
||||
}
|
||||
@@ -370,7 +370,7 @@ class Manager
|
||||
return true;
|
||||
}
|
||||
|
||||
usleep(self::RENAME_RETRY_INTERVAL * 1000000);
|
||||
usleep((int) (self::RENAME_RETRY_INTERVAL * 1000000));
|
||||
|
||||
$counter++;
|
||||
}
|
||||
|
||||
@@ -163,7 +163,7 @@ class Permission
|
||||
|
||||
$fileInfo = stat($filePath);
|
||||
|
||||
return substr(base_convert($fileInfo['mode'], 10, 8), -4);
|
||||
return substr(base_convert((string) $fileInfo['mode'], 10, 8), -4);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -247,7 +247,7 @@ class Util
|
||||
* Get a full path of the file.
|
||||
*
|
||||
* @param string|array $folderPath
|
||||
* @param string $filePath
|
||||
* @param string|null $filePath
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user