From aeb19ec7859e5d3ee710c0cdcf6155cf66168447 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Wed, 11 Sep 2019 16:15:27 +0200 Subject: [PATCH] Fix signatures of \ldap_bind() and \ldap_bind_ext() Both functions accepts a null $bind_rdn parameter to do an anonymous bind and they also accept a fourth optional parameter. References: https://www.php.net/manual/en/function.ldap-bind.php https://github.com/php/php-src/blob/php-7.3.9/ext/ldap/ldap.c#L1152 https://github.com/php/php-src/blob/php-7.3.9/ext/ldap/ldap.c#L1209 --- src/Psalm/Internal/CallMap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Psalm/Internal/CallMap.php b/src/Psalm/Internal/CallMap.php index fedd57b7bc8..7c71992d7d1 100644 --- a/src/Psalm/Internal/CallMap.php +++ b/src/Psalm/Internal/CallMap.php @@ -6644,8 +6644,8 @@ 'ldap_8859_to_t61' => ['string', 'value'=>'string'], 'ldap_add' => ['bool', 'link_identifier'=>'resource', 'dn'=>'string', 'entry'=>'array', 'serverctrls='=>'array'], 'ldap_add_ext' => ['resource|false', 'link_identifier'=>'resource', 'dn'=>'string', 'entry'=>'array', 'serverctrls='=>'array'], -'ldap_bind' => ['bool', 'link_identifier'=>'resource', 'dn='=>'string', 'password='=>'?string'], -'ldap_bind_ext' => ['resource|false', 'link_identifier'=>'resource', 'bind_rdn='=>'string', 'bind_password='=>'string'], +'ldap_bind' => ['bool', 'link_identifier'=>'resource', 'dn='=>'?string', 'password='=>'?string', 'serverctrls='=>'array'], +'ldap_bind_ext' => ['resource|false', 'link_identifier'=>'resource', 'bind_rdn='=>'?string', 'bind_password='=>'?string', 'serverctrls='=>'array'], 'ldap_close' => ['bool', 'link_identifier'=>'resource'], 'ldap_compare' => ['bool|int', 'link_identifier'=>'resource', 'dn'=>'string', 'attr'=>'string', 'value'=>'string'], 'ldap_connect' => ['resource|false', 'host='=>'string', 'port='=>'int', 'wallet='=>'string', 'wallet_passwd='=>'string', 'authmode='=>'int'],