@@ -33,16 +33,22 @@ class LdapMulti extends UserPassOrgBase
3333
3434 /**
3535 * An array with mappings for organization => authsource.
36+ *
37+ * @var array<mixed>
3638 */
3739 private array $ mapping ;
3840
3941 /**
4042 * An array with descriptions for organizations.
43+ *
44+ * @var array<mixed>
4145 */
4246 private array $ orgs ;
4347
4448 /**
4549 * An array of organization IDs to LDAP configuration objects.
50+ *
51+ * @var array<mixed>
4652 */
4753 private array $ ldapOrgs ;
4854
@@ -55,8 +61,8 @@ class LdapMulti extends UserPassOrgBase
5561 /**
5662 * Constructor for this authentication source.
5763 *
58- * @param array $info Information about this authentication source.
59- * @param array $config Configuration.
64+ * @param array<mixed. $info Information about this authentication source.
65+ * @param array<mixed> $config Configuration.
6066 */
6167 public function __construct (array $ info , array $ config )
6268 {
@@ -109,9 +115,9 @@ public function __construct(array $info, array $config)
109115 *
110116 * @param string $username The username the user wrote.
111117 * @param string $password The password the user wrote.
112- * @param string $organizaion The organization the user chose.
113- * @param array|null $sasl_args SASL options
114- * @return array Associative array with the users attributes.
118+ * @param string $organization The organization the user chose.
119+ * @param array<mixed> |null $sasl_args SASL options
120+ * @return array<mixed> Associative array with the users attributes.
115121 */
116122 protected function loginSasl (
117123 string $ username ,
@@ -134,6 +140,9 @@ protected function loginSasl(
134140
135141 $ ldap = new class (['AuthId ' => $ authsource ], $ sourceConfig ->toArray ()) extends Ldap
136142 {
143+ /**
144+ * @return array<mixed>
145+ */
137146 public function loginOverload (
138147 string $ username ,
139148 #[\SensitiveParameter]string $ password ,
@@ -146,19 +155,21 @@ public function loginOverload(
146155 return $ ldap ->loginOverload ($ username , $ password , $ sasl_args );
147156 }
148157
158+
149159 /**
150160 * Attempt to log in using the given username and password.
151161 *
152162 * @param string $username The username the user wrote.
153163 * @param string $password The password the user wrote.
154- * @param string $organizaion The organization the user chose.
155- * @return array Associative array with the users attributes.
164+ * @param string $organization The organization the user chose.
165+ * @return array<mixed> Associative array with the users attributes.
156166 */
157167 protected function login (string $ username , #[\SensitiveParameter]string $ password , string $ organization ): array
158168 {
159169 return $ this ->loginSasl ($ username , $ password , $ organization );
160170 }
161171
172+
162173 /**
163174 * Retrieve list of organizations.
164175 *
0 commit comments