type fixes

This commit is contained in:
Yuri Kuznetsov
2021-11-09 12:01:22 +02:00
parent c41b92d15a
commit 4152ee10ea
4 changed files with 7 additions and 5 deletions
@@ -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')
+3 -3
View File
@@ -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);
}
/**
+1 -1
View File
@@ -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
*/