Skip to content

Commit a23fb7b

Browse files
committed
minor #19658 [Ldap] Adds return value hint of LdapUser::getExtraFields() (mvhirsch)
This PR was merged into the 5.4 branch. Discussion ---------- [Ldap] Adds return value hint of `LdapUser::getExtraFields()` Hi, I'm not sure if this is the correct approach to document that. Please advice me where to document this. I'd love to get this done correctly. - Fixes symfony/symfony#49994 - refs symfony/symfony#49187 Commits ------- f75e437 adds hint of return value
2 parents 1ed09e7 + f75e437 commit a23fb7b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

security/ldap.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,12 @@ use the ``ldap`` user provider.
197197
;
198198
};
199199
200+
.. versionadded:: 5.4
201+
202+
`LdapUser::getExtraFields()` always returns an array of values. Prior
203+
`LdapUserProvider` threw and `InvalidArgumentException` on multiple
204+
attributes.
205+
200206
.. caution::
201207

202208
The Security component escapes provided input data when the LDAP user

0 commit comments

Comments
 (0)