Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-12 12:40:41 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-10-12 12:40:41 +0300
commitbfd2b74c680836d5746d40023a7dc0f62216a6b7 (patch)
tree869cebd59809332322740cd50f9edd755f065dcf
parentcf5bf3036dee4527b93c5bb8e43c0ed3a216e15a (diff)
Fix wrong types in phpdoc for twofactor registryfix/psalm-twofactor-registry
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--build/psalm-baseline.xml10
-rw-r--r--lib/public/Authentication/TwoFactorAuth/IRegistry.php2
2 files changed, 1 insertions, 11 deletions
diff --git a/build/psalm-baseline.xml b/build/psalm-baseline.xml
index 61d1a7061ef..9022134fbcf 100644
--- a/build/psalm-baseline.xml
+++ b/build/psalm-baseline.xml
@@ -1637,16 +1637,6 @@
<code>$event-&gt;getObjectId()</code>
</InvalidScalarArgument>
</file>
- <file src="apps/twofactor_backupcodes/lib/BackgroundJob/RememberBackupCodesJob.php">
- <InvalidArgument occurrences="1">
- <code>bool</code>
- </InvalidArgument>
- </file>
- <file src="apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php">
- <InvalidArgument occurrences="1">
- <code>bool</code>
- </InvalidArgument>
- </file>
<file src="apps/updatenotification/lib/Controller/AdminController.php">
<InvalidScalarArgument occurrences="2">
<code>$this-&gt;timeFactory-&gt;getTime()</code>
diff --git a/lib/public/Authentication/TwoFactorAuth/IRegistry.php b/lib/public/Authentication/TwoFactorAuth/IRegistry.php
index 1f1b82a4426..0f164902f67 100644
--- a/lib/public/Authentication/TwoFactorAuth/IRegistry.php
+++ b/lib/public/Authentication/TwoFactorAuth/IRegistry.php
@@ -53,7 +53,7 @@ interface IRegistry {
* the given user.
*
* @since 14.0.0
- * @return string[] where the array key is the provider ID (string) and the
+ * @return array<string, bool> where the array key is the provider ID (string) and the
* value is the enabled state (bool)
*/
public function getProviderStates(IUser $user): array;