intelephense

1.14.41.16.1
lib/stub/ldap/ldap.php
lib/stub/ldap/ldap.php
+15−1
Index: package/lib/stub/ldap/ldap.php
===================================================================
--- package/lib/stub/ldap/ldap.php
+++ package/lib/stub/ldap/ldap.php
@@ -15,8 +15,9 @@
  * @param string $user dn of the user to change the password of.
  * @param string $old_password The old password of this user. May be omitted depending of server configuration.
  * @param string $new_password The new password for this user. May be omitted or empty to have a generated password.
  * @param array &$controls If provided, a password policy request control is send with the request and this is filled with an array of LDAP Controls returned with the request.
+ * @param-out array $controls
  * @return string|bool Returns the generated password if newpw is empty or omitted. Otherwise returns TRUE on success and FALSE on failure.
  * @since 7.2
  */
 function ldap_exop_passwd(
@@ -60,9 +61,11 @@
  * @param string $request_oid The extended operation request OID. You may use one of LDAP_EXOP_START_TLS, LDAP_EXOP_MODIFY_PASSWD, LDAP_EXOP_REFRESH, LDAP_EXOP_WHO_AM_I, LDAP_EXOP_TURN, or a string with the OID of the operation you want to send.
  * @param string|null $request_data [optional] The extended operation request data. May be NULL for some operations like LDAP_EXOP_WHO_AM_I, may also need to be BER encoded.
  * @param array|null $controls If provided, a password policy request control is send with the request and this is filled with an array of LDAP Controls returned with the request.
  * @param string &$response_data [optional] Will be filled with the extended operation response data if provided. If not provided you may use ldap_parse_exop on the result object later to get this data.
+ * @param-out string $response_data
  * @param string &$response_oid [optional] Will be filled with the response OID if provided, usually equal to the request OID.
+ * @param-out string $response_oid
  * @return resource|bool When used with retdata, returns TRUE on success or FALSE on error. When used without retdata, returns a result identifier or FALSE on error.
  * @since 7.2
  */
 #[PhpVersionAware(['8.1' => 'LDAP\Result|bool'], default: 'resource|bool')]
@@ -73,9 +76,11 @@
  * @link https://www.php.net/manual/en/function.ldap-parse-exop.php
  * @param resource $ldap An LDAP link identifier, returned by ldap_connect().
  * @param resource $result An LDAP result resource, returned by ldap_exop().
  * @param string &$response_data  Will be filled by the response data.
+ * @param-out string $response_data
  * @param string &$response_oid Will be filled by the response OID.
+ * @param-out string $response_oid
  * @return bool Returns TRUE on success or FALSE on failure.
  * @since 7.2
  */
 function ldap_parse_exop(
@@ -1076,12 +1081,13 @@
  * </p>
  * @param mixed &$value <p>
  * This will be set to the option value.
  * </p>
+ * @param-out mixed $value
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  */
 function ldap_get_option(
-    #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
+    #[PhpVersionAware(['8.1' => 'LDAP\Connection', '8.5' => 'LDAP\Connection|null'], default: 'resource')] $ldap,
     int $option,
     #[Available(from: '5.3', to: '7.4')] &$value,
     #[Available(from: '8.0')] &$value = null
 ): bool {}
@@ -1222,8 +1228,9 @@
  * @link https://php.net/manual/en/function.ldap-parse-reference.php
  * @param resource $ldap
  * @param resource $entry
  * @param array &$referrals
+ * @param-out array $referrals
  * @return bool
  */
 function ldap_parse_reference(
     #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
@@ -1236,12 +1243,17 @@
  * @link https://php.net/manual/en/function.ldap-parse-result.php
  * @param resource $ldap
  * @param resource $result
  * @param int &$error_code
+ * @param-out int $error_code
  * @param string &$matched_dn [optional]
+ * @param-out string $matched_dn
  * @param string &$error_message [optional]
+ * @param-out string $error_message
  * @param array &$referrals [optional]
+ * @param-out array $referrals
  * @param array &$controls An array of LDAP Controls which have been sent with the response.
+ * @param-out array $controls
  * @return bool
  */
 function ldap_parse_result(
     #[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'resource')] $ldap,
@@ -1304,11 +1316,13 @@
  * @param resource $result
  * @param string &$cookie [optional] <p>
  * An opaque structure sent by the server.
  * </p>
+ * @param-out string $cookie
  * @param int &$estimated [optional] <p>
  * The estimated number of entries to retrieve.
  * </p>
+ * @param-out int $estimated
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  * @since 5.4
  * @removed 8.0
  */