diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-10-18 14:44:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 14:44:28 +0200 |
commit | 0270068fedd0282585bb5d2ffd5c823932a8ea72 (patch) | |
tree | 988dc8ad317ce4ba136b5ce171eb2d6147c37c99 /lib | |
parent | 00c2c620acfdcf188a3ea9047458414749520fa9 (diff) | |
parent | 54031e370ac05b127d4bc799de99ce1b643adcbb (diff) | |
download | nextcloud-server-0270068fedd0282585bb5d2ffd5c823932a8ea72.tar.gz nextcloud-server-0270068fedd0282585bb5d2ffd5c823932a8ea72.zip |
Merge pull request #34628 from nextcloud/fix/files_sharing_psalm
Various psalm fixes in files_sharing
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Cache/Wrapper/CacheJail.php | 2 | ||||
-rw-r--r-- | lib/private/Share20/Manager.php | 2 | ||||
-rw-r--r-- | lib/private/Template/Base.php | 2 | ||||
-rw-r--r-- | lib/public/Share/IManager.php | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Files/Cache/Wrapper/CacheJail.php b/lib/private/Files/Cache/Wrapper/CacheJail.php index 996f0c02603..c0a6acd118b 100644 --- a/lib/private/Files/Cache/Wrapper/CacheJail.php +++ b/lib/private/Files/Cache/Wrapper/CacheJail.php @@ -46,7 +46,7 @@ class CacheJail extends CacheWrapper { protected $unjailedRoot; /** - * @param \OCP\Files\Cache\ICache $cache + * @param ?\OCP\Files\Cache\ICache $cache * @param string $root */ public function __construct($cache, $root) { diff --git a/lib/private/Share20/Manager.php b/lib/private/Share20/Manager.php index 2ef61cf3404..ffd779707df 100644 --- a/lib/private/Share20/Manager.php +++ b/lib/private/Share20/Manager.php @@ -1562,7 +1562,7 @@ class Manager implements IManager { * Verify the password of a public share * * @param IShare $share - * @param string $password + * @param ?string $password * @return bool */ public function checkPassword(IShare $share, $password) { diff --git a/lib/private/Template/Base.php b/lib/private/Template/Base.php index 2de8c7ad5b1..71ce2ed9d86 100644 --- a/lib/private/Template/Base.php +++ b/lib/private/Template/Base.php @@ -92,7 +92,7 @@ class Base { /** * Assign variables * @param string $key key - * @param array|bool|integer|string|Throwable $value value + * @param float|array|bool|integer|string|Throwable $value value * @return bool * * This function assigns a variable. It can be accessed via $_[$key] in diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php index 0810acc673a..82a92428b31 100644 --- a/lib/public/Share/IManager.php +++ b/lib/public/Share/IManager.php @@ -211,7 +211,7 @@ interface IManager { * Verify the password of a public share * * @param IShare $share - * @param string $password + * @param ?string $password * @return bool * @since 9.0.0 */ |