diff --git a/Core/Core.php b/Core/Core.php index fcc4aa294..ea95f5b46 100755 --- a/Core/Core.php +++ b/Core/Core.php @@ -168,7 +168,7 @@ function str_contains(string $haystack, string $needle): bool {} /** * Return the current key and value pair from an array and advance the array cursor * @link https://php.net/manual/en/function.each.php - * @param array|ArrayObject &$array
+ * @param array|ArrayObject $array
* The input array. *
* @return array the current key and value pair from the array diff --git a/PDO/PDO.php b/PDO/PDO.php index dabf03bd3..2961a5f0c 100644 --- a/PDO/PDO.php +++ b/PDO/PDO.php @@ -1346,7 +1346,7 @@ public function fetch( * question mark placeholders, this will be the 1-indexed position of * the parameter. * - * @param mixed &$var+ * @param mixed $var
* Name of the PHP variable to bind to the SQL statement parameter. *
* @param int $type [optional]@@ -1382,7 +1382,7 @@ public function bindParam( * If using the column name, be aware that the name should match the * case of the column, as returned by the driver. *
- * @param mixed &$var+ * @param mixed $var
* Name of the PHP variable to which the column will be bound. *
* @param int $type [optional]diff --git a/SPL/SPL_c1.php b/SPL/SPL_c1.php index 2e9744ed8..d0f94a8a9 100644 --- a/SPL/SPL_c1.php +++ b/SPL/SPL_c1.php @@ -707,7 +707,7 @@ public function getCsvControl() {} * operation is one of the following: * LOCK_SH to acquire a shared lock (reader). *
- * @param int &$wouldBlock [optional]+ * @param int $wouldBlock [optional]
* Set to 1 if the lock would block (EWOULDBLOCK errno condition). *
* @return bool true on success or false on failure. diff --git a/SQLite/SQLite.php b/SQLite/SQLite.php index 97ae08fd5..2a11927cd 100644 --- a/SQLite/SQLite.php +++ b/SQLite/SQLite.php @@ -13,7 +13,7 @@ class SQLiteDatabase * @link https://php.net/manual/en/function.sqlite-open.php * @param string $filenameThe filename of the SQLite database. If the file does not exist, SQLite will attempt to create it. PHP must have write permissions to the file if data is inserted, the database schema is modified or to create the database if it does not exist.
* @param int $mode [optional]The mode of the file. Intended to be used to open the database in read-only mode. Presently, this parameter is ignored by the sqlite library. The default value for mode is the octal value 0666 and this is the recommended value.
- * @param string &$error_message [optional]Passed by reference and is set to hold a descriptive error message explaining why the database could not be opened if there was an error.
+ * @param string $error_message [optional]Passed by reference and is set to hold a descriptive error message explaining why the database could not be opened if there was an error.
*/ final public function __construct($filename, $mode = 0666, &$error_message) {} @@ -28,7 +28,7 @@ final public function __construct($filename, $mode = 0666, &$error_message) {} * * @param int $result_type [optional] *The optional result_type parameter accepts a constant and determines how the returned array will be indexed. Using SQLITE_ASSOC will return only associative indices (named fields) while SQLITE_NUM will return only numerical indices (ordinal field numbers). SQLITE_BOTH will return both associative and numerical indices. SQLITE_BOTH is the default for this function.
- * @param string &$error_message [optional]The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the {@see sqlite_last_error()} function.
+ * @param string $error_message [optional]The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the {@see sqlite_last_error()} function.
* @return resource|false* This function will return a result handle or FALSE on failure. * For queries that return rows, the result handle can then be used with @@ -60,7 +60,7 @@ public function query($query, $result_type, &$error_message) {} *
* Data inside the query should be {@link https://php.net/manual/en/function.sqlite-escape-string.php properly escaped}. *
- * @param string &$error_message [optional]The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the + * @param string $error_message [optional]
The specified variable will be filled if an error occurs. This is specially important because SQL syntax errors can't be fetched using the * {@see sqlite_last_error()} function.
* @return bool* This function will return a boolean result; TRUE for success or FALSE for failure. @@ -134,7 +134,7 @@ public function singleQuery($query, $first_row_only, $decode_binary) {} * Using SQLITE_ASSOC will return only associative indices (named fields) while SQLITE_NUM will return only numerical indices (ordinal field numbers). * SQLITE_BOTH will return both associative and numerical indices. SQLITE_BOTH is the default for this function. *
- * @param string &$error_message [optional] + * @param string $error_message [optional] * @return resource Returns a result handle or FALSE on failure. * {@see sqlite_unbuffered_query()} returns a sequential forward-only result set that can only be used to read each row, one after the other. */ @@ -564,7 +564,7 @@ public function __toString() {} * library. The default value for mode is the octal value * 0666 and this is the recommended value. * - * @param string &$error_message [optional]+ * @param string $error_message [optional]
* Passed by reference and is set to hold a descriptive error message * explaining why the database could not be opened if there was an error. *
@@ -588,7 +588,7 @@ function sqlite_open($filename, $mode = null, &$error_message = null) {} * library. The default value for mode is the octal value * 0666 and this is the recommended value. * - * @param string &$error_message [optional]+ * @param string $error_message [optional]
* Passed by reference and is set to hold a descriptive error message * explaining why the database could not be opened if there was an error. *
@@ -627,7 +627,7 @@ function sqlite_close($dbhandle) {} * only numerical indices (ordinal field numbers). SQLITE_BOTH * will return both associative and numerical indices. * SQLITE_BOTH is the default for this function. - * @param string &$error_msg [optional]+ * @param string $error_msg [optional]
* The specified variable will be filled if an error occurs. This is * specially important because SQL syntax errors can't be fetched using * the @@ -669,7 +669,7 @@ function sqlite_query($query, $dbhandle, $result_type = SQLITE_BOTH, &$error_msg * {@see sqlite_open()} when used procedurally. This parameter * is not required when using the object-oriented method. *
- * @param string &$error_msg [optional]+ * @param string $error_msg [optional]
* The specified variable will be filled if an error occurs. This is * specially important because SQL syntax errors can't be fetched using * the @@ -1079,7 +1079,7 @@ function sqlite_error_string($error_code) {} * Data inside the query should be properly escaped. *
* @param int $result_type [optional] - * @param string &$error_msg [optional]+ * @param string $error_msg [optional]
* The specified variable will be filled if an error occurs. This is * specially important because SQL syntax errors can't be fetched using * the sqlite_last_error function. @@ -1152,7 +1152,7 @@ function sqlite_create_function($dbhandle, $function_name, $callback, $num_args * library. The default value for mode is the octal value * 0666 and this is the recommended value. *
- * @param string &$error_message [optional]+ * @param string $error_message [optional]
* Passed by reference and is set to hold a descriptive error message * explaining why the database could not be opened if there was an error. *
diff --git a/aerospike/aerospike.php b/aerospike/aerospike.php index 8b8839798..02c1a122f 100644 --- a/aerospike/aerospike.php +++ b/aerospike/aerospike.php @@ -629,7 +629,7 @@ public function put(array $key, array $bins, int $ttl = 0, array $options = []) * @link https://www.aerospike.com/docs/guide/kvs.html Key-Value Store * @link https://www.aerospike.com/docs/guide/glossary.html Glossary * @param array $key The key identifying the record. An array with keys `['ns','set','key']` or `['ns','set','digest']` - * @param array &$record a reference to a variable which will contain the retrieved record of `['key', metadata', 'bins]` with the structure: + * @param array $record a reference to a variable which will contain the retrieved record of `['key', metadata', 'bins]` with the structure: * ``` * Array: * key => Array @@ -699,7 +699,7 @@ public function get(array $key, &$record, ?array $select = null, array $options * ``` * @link https://www.aerospike.com/docs/guide/glossary.html Glossary * @param array $key The key identifying the record. An array with keys `['ns','set','key']` or `['ns','set','digest']` - * @param array &$metadata a reference to a variable which will be filled with an array of `['ttl', 'generation']` values + * @param array $metadata a reference to a variable which will be filled with an array of `['ttl', 'generation']` values * @param array $options an optional array of read policy options, whose keys include * * Aerospike::OPT_READ_TIMEOUT * * Aerospike::OPT_DESERIALIZE @@ -1388,7 +1388,7 @@ public function prepend(array $key, string $bin, string $value, array $options = * * ``` * - * @param array &$returned a pass-by-reference array of bins retrieved by read operations. If multiple operations exist for a specific bin name, the last operation will be the one placed as the value + * @param array $returned a pass-by-reference array of bins retrieved by read operations. If multiple operations exist for a specific bin name, the last operation will be the one placed as the value * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_WRITE_TIMEOUT * * Aerospike::OPT_TTL @@ -1767,7 +1767,7 @@ public function operate(array $key, array $operations, &$returned, array $option * * ``` * - * @param array &$returned a pass-by-reference array of bins retrieved by read operations. If multiple operations exist for a specific bin name, the last operation will be the one placed as the value + * @param array $returned a pass-by-reference array of bins retrieved by read operations. If multiple operations exist for a specific bin name, the last operation will be the one placed as the value * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_WRITE_TIMEOUT * * Aerospike::OPT_TTL @@ -1811,7 +1811,7 @@ public function operateOrdered(array $key, array $operations, &$returned, array * @version 3.7 Requires server >= 3.7 * @param array $key The key identifying the record. An array with keys `['ns','set','key']` or `['ns','set','digest']` * @param string $bin - * @param int &$count pass-by-reference param + * @param int $count pass-by-reference param * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_READ_TIMEOUT * * Aerospike::OPT_POLICY_KEY @@ -1980,7 +1980,7 @@ public function listInsertItems(array $key, $bin, $index, array $elements, array * @param array $key The key identifying the record. An array with keys `['ns','set','key']` or `['ns','set','digest']` * @param string $bin * @param int $index - * @param mixed &$element pass-by-reference param + * @param mixed $element pass-by-reference param * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_WRITE_TIMEOUT * * Aerospike::OPT_TTL @@ -2018,7 +2018,7 @@ public function listPop(array $key, $bin, $index, &$element, array $options = [] * @param string $bin * @param int $index * @param int $count - * @param array &$elements pass-by-reference param. After the method call it will be an array holding the popped elements. + * @param array $elements pass-by-reference param. After the method call it will be an array holding the popped elements. * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_WRITE_TIMEOUT * * Aerospike::OPT_TTL @@ -2228,7 +2228,7 @@ public function listSet(array $key, $bin, $index, $value, array $options = []) { * @param array $key The key identifying the record. An array with keys `['ns','set','key']` or `['ns','set','digest']` * @param string $bin * @param int $index - * @param array &$element pass-by-reference param which will hold the returned element. + * @param array $element pass-by-reference param which will hold the returned element. * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_READ_TIMEOUT * * Aerospike::OPT_POLICY_KEY @@ -2263,7 +2263,7 @@ public function listGet(array $key, $bin, $index, array &$element, array $option * @param string $bin * @param int $index * @param int $count - * @param array &$elements pass-by-reference param which will hold an array of returned elements from the specified list bin. + * @param array $elements pass-by-reference param which will hold an array of returned elements from the specified list bin. * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_READ_TIMEOUT * * Aerospike::OPT_POLICY_KEY @@ -2484,7 +2484,7 @@ public function listGetRange(array $key, $bin, $index, $count, &$elements, array * } * ``` * @param array $keys an array of initialized keys, each key an array with keys `['ns','set','key']` or `['ns','set','digest']` - * @param array &$records a pass-by-reference variable which will hold an array of record values, each record an array of `['key', 'metadata', 'bins']` + * @param array $records a pass-by-reference variable which will hold an array of record values, each record an array of `['key', 'metadata', 'bins']` * @param array $select only these bins out of the record (optional) * @param array $options an optional array of read policy options, whose keys include * * Aerospike::OPT_READ_TIMEOUT @@ -2608,7 +2608,7 @@ public function getMany(array $keys, &$records, array $select = [], array $optio * } * ``` * @param array $keys an array of initialized keys, each key an array with keys `['ns','set','key']` or `['ns','set','digest']` - * @param array &$metadata a pass-by-reference array of metadata values, each an array of `['key', 'metadata']` + * @param array $metadata a pass-by-reference array of metadata values, each an array of `['key', 'metadata']` * @param array $options an optional array of read policy options, whose keys include * * Aerospike::OPT_READ_TIMEOUT * * Aerospike::USE_BATCH_DIRECT @@ -2923,7 +2923,7 @@ public static function predicateGeoWithinRadius(string $bin, float $long, float * * @param int $job_id The Job ID * @param int $job_type The type of the job, either Aerospike::JOB_QUERY, or Aerospike::JOB_SCAN - * @param array &$info The status of the background job filled (by reference) as an array of + * @param array $info The status of the background job filled (by reference) as an array of * ``` * [ * 'progress_pct' => progress percentage for the job @@ -3026,7 +3026,7 @@ public function deregister($module, $options = []) {} * } * } * ``` - * @param array &$modules pass-by-reference param + * @param array $modules pass-by-reference param * @param int $language * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_READ_TIMEOUT @@ -3073,7 +3073,7 @@ public function listRegistered(&$modules, $language = Aerospike::UDF_TYPE_LUA, $ * " * ``` * @param string $module the name of the UDF module registered with the cluster - * @param string &$code pass-by-reference param + * @param string $code pass-by-reference param * @param string $language * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_READ_TIMEOUT @@ -3115,7 +3115,7 @@ public function getRegistered($module, &$code, $language = Aerospike::UDF_TYPE_L * @param string $module the name of the UDF module registered with the cluster * @param string $function the name of the UDF * @param array $args optional arguments for the UDF - * @param mixed &$returned pass-by-reference param + * @param mixed $returned pass-by-reference param * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_WRITE_TIMEOUT * * Aerospike::OPT_POLICY_KEY @@ -3166,7 +3166,7 @@ public function apply(array $key, string $module, string $function, array $args * @param string $module the name of the UDF module registered with the cluster * @param string $function the name of the UDF * @param array $args optional arguments for the UDF - * @param int &$job_id pass-by-reference filled by the job ID of the scan + * @param int $job_id pass-by-reference filled by the job ID of the scan * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_WRITE_TIMEOUT * * Aerospike::OPT_POLICY_DURABLE_DELETE @@ -3233,7 +3233,7 @@ public function scanApply(string $ns, string $set, string $module, string $funct * @param string $module the name of the UDF module registered with the cluster * @param string $function the name of the UDF * @param array $args optional arguments for the UDF - * @param int &$job_id pass-by-reference filled by the job ID of the scan + * @param int $job_id pass-by-reference filled by the job ID of the scan * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_WRITE_TIMEOUT * * Aerospike::OPT_POLICY_DURABLE_DELETE @@ -3371,7 +3371,7 @@ public function queryApply(string $ns, string $set, array $where, string $module * @param string $module the name of the UDF module registered with the cluster * @param string $function the name of the UDF * @param array $args optional arguments for the UDF - * @param mixed &$returned pass-by-reference param + * @param mixed $returned pass-by-reference param * @param array $options an optional array of policy options, whose keys include * * Aerospike::OPT_READ_TIMEOUT * * Aerospike::OPT_READ_TIMEOUT @@ -3472,7 +3472,7 @@ public function dropIndex(string $ns, string $name, array $options = []) {} * ``` * @link https://www.aerospike.com/docs/reference/info Info Command Reference * @param string $request a formatted info command - * @param string &$response a formatted response from the server, filled by reference + * @param string $response a formatted response from the server, filled by reference * @param null|array $host an array holding the cluster node connection information cluster * and manage its connections to them. ```[ 'addr' => $addr , 'port' => $port ]``` * @param array $options an optional array of policy options, whose keys include diff --git a/apcu/apcu.php b/apcu/apcu.php index fab1eb44c..24f68358e 100644 --- a/apcu/apcu.php +++ b/apcu/apcu.php @@ -65,7 +65,7 @@ function apc_store($key, $var, $ttl = 0) {} * @link https://php.net/manual/en/function.apc-fetch.php * @param string|string[] $key The key used to store the value (with apc_store()). * If an array is passed then each element is fetched and returned. - * @param bool|null &$success Set to TRUE in success and FALSE in failure. + * @param bool|null $success Set to TRUE in success and FALSE in failure. * @return mixed|false The stored variable or array of variables on success; FALSE on failure. */ function apc_fetch($key, &$success = null) {} @@ -163,7 +163,7 @@ function apc_delete_file($keys) {} * @link https://php.net/manual/en/function.apc-inc.php * @param string $key The key of the value being increased. * @param int $step The step, or value to increase. - * @param bool|null &$success Optionally pass the success or fail boolean value to this referenced variable. + * @param bool|null $success Optionally pass the success or fail boolean value to this referenced variable. * @return int|false Returns the current value of key's value on success, or FALSE on failure. */ function apc_inc($key, $step = 1, &$success = null) {} @@ -173,7 +173,7 @@ function apc_inc($key, $step = 1, &$success = null) {} * @link https://php.net/manual/en/function.apc-dec.php * @param string $key The key of the value being decreased. * @param int $step The step, or value to decrease. - * @param bool|null &$success Optionally pass the success or fail boolean value to this referenced variable. + * @param bool|null $success Optionally pass the success or fail boolean value to this referenced variable. * @return int|false Returns the current value of key's value on success, or FALSE on failure. */ function apc_dec($key, $step = 1, &$success = null) {} @@ -438,7 +438,7 @@ function apcu_store($key, $var, $ttl = 0) {} * @link https://php.net/manual/en/function.apcu-fetch.php * @param string|string[] $key The key used to store the value (with apcu_store()). * If an array is passed then each element is fetched and returned. - * @param bool|null &$success Set to TRUE in success and FALSE in failure. + * @param bool|null $success Set to TRUE in success and FALSE in failure. * @return mixed|false The stored variable or array of variables on success; FALSE on failure. */ function apcu_fetch($key, &$success = null) {} @@ -488,7 +488,7 @@ function apcu_exists($keys) {} * the stored variable will be expunged from the cache (on the next request). If no ttl is supplied * (or if the ttl is 0), the value will persist until it is removed from the cache manually, * or otherwise fails to exist in the cache (clear, restart, etc.). - * @param bool|null &$success Optionally pass the success or fail boolean value to this referenced variable. + * @param bool|null $success Optionally pass the success or fail boolean value to this referenced variable. * @return int|false Returns the current value of key's value on success, or FALSE on failure. */ function apcu_inc($key, $step = 1, &$success = null, $ttl = 0) {} @@ -502,7 +502,7 @@ function apcu_inc($key, $step = 1, &$success = null, $ttl = 0) {} * the stored variable will be expunged from the cache (on the next request). If no ttl is supplied * (or if the ttl is 0), the value will persist until it is removed from the cache manually, * or otherwise fails to exist in the cache (clear, restart, etc.). - * @param bool|null &$success Optionally pass the success or fail boolean value to this referenced variable. + * @param bool|null $success Optionally pass the success or fail boolean value to this referenced variable. * @return int|false Returns the current value of key's value on success, or FALSE on failure. */ function apcu_dec($key, $step = 1, &$success = null, $ttl = 0) {} diff --git a/crypto/crypto.php b/crypto/crypto.php index 8910e6e60..8cd861934 100644 --- a/crypto/crypto.php +++ b/crypto/crypto.php @@ -706,7 +706,7 @@ class Rand * Generates pseudo random bytes * @param int $num * @param bool $must_be_strong - * @param bool &$returned_strong_result + * @param bool $returned_strong_result * @return string */ public static function generate($num, $must_be_strong = true, &$returned_strong_result = true) {} diff --git a/curl/curl.php b/curl/curl.php index e849a23c0..aac5052e3 100644 --- a/curl/curl.php +++ b/curl/curl.php @@ -2483,7 +2483,7 @@ function curl_reset(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], default: ' * Run the sub-connections of the current cURL handle * @link https://php.net/manual/en/function.curl-multi-exec.php * @param CurlMultiHandle|resource $multi_handle - * @param int &$still_running+ * @param int $still_running
* A reference to a flag to tell whether the operations are still running. *
* @return int A cURL code defined in the cURL Predefined Constants. @@ -2512,7 +2512,7 @@ function curl_multi_getcontent(#[LanguageLevelTypeAware(['8.0' => 'CurlHandle'], * Get information about the current transfers * @link https://php.net/manual/en/function.curl-multi-info-read.php * @param CurlMultiHandle|resource $multi_handle - * @param int &$queued_messages [optional]+ * @param int $queued_messages [optional]
* Number of messages that are still in the queue *
* @return array|false On success, returns an associative array for the message, false on failure. diff --git a/enchant/enchant.php b/enchant/enchant.php index 56114710b..4b583e7ba 100644 --- a/enchant/enchant.php +++ b/enchant/enchant.php @@ -311,7 +311,7 @@ function enchant_dict_describe($dict) {} * @param string $word* The word to check *
- * @param null|array &$suggestions [optional]+ * @param null|array $suggestions [optional]
* If the word is not correctly spelled, this variable will * contain an array of suggestions. *
diff --git a/event/event.php b/event/event.php index f3a17d282..fd3ec2c61 100644 --- a/event/event.php +++ b/event/event.php @@ -471,7 +471,7 @@ public function appendFrom(EventBuffer $buf, int $len): int {} * copyout. * Copies out specified number of bytes from the front of the buffer. * - * @param string &$data + * @param string $data * @param int $max_bytes * * @return int @@ -1437,8 +1437,8 @@ public function getBase(): false|EventBase {} * getPeer. * Gets the remote address and port associated with the connection. * - * @param string &$address - * @param int &$port + * @param string $address + * @param int $port * * @see https://secure.php.net/manual/en/eventhttpconnection.getpeer.php */ @@ -1683,8 +1683,8 @@ public function getBase(): void {} * getSocketName. * Retreives the current address to which the listener's socket is bound. * - * @param string &$address - * @param mixed &$port + * @param string $address + * @param mixed $port * * @return bool * @@ -1889,8 +1889,8 @@ public static function getSocketFd(mixed $socket): int {} * Retreives the current address to which the socket is bound. * * @param mixed $socket - * @param string &$address - * @param mixed &$port + * @param string $address + * @param mixed $port * * @return bool * diff --git a/exif/exif.php b/exif/exif.php index ed12944c5..99ae65f42 100644 --- a/exif/exif.php +++ b/exif/exif.php @@ -110,13 +110,13 @@ function exif_tagname(int $index): string|false {} * Since 7.2.0 this can either be a path to the file (stream wrappers are also supported as usual) * or a stream resource. * - * @param int &$width [optional]+ * @param int $width [optional]
* The return width of the returned thumbnail. *
- * @param int &$height [optional]+ * @param int $height [optional]
* The returned height of the returned thumbnail. *
- * @param int &$image_type [optional]+ * @param int $image_type [optional]
* The returned image type of the returned thumbnail. This is either * TIFF or JPEG. *
diff --git a/expect/expect.php b/expect/expect.php index 8205276eb..835ca21d8 100644 --- a/expect/expect.php +++ b/expect/expect.php @@ -85,7 +85,7 @@ function expect_popen(string $command) ** The number of bytes to allocate. *
- * @param string &$response [optional]+ * @param string $response [optional]
* A textual representation of the servers response will be returned by * reference in result if a variable is provided. *
diff --git a/gnupg/gnupg.php b/gnupg/gnupg.php index cf4905420..e01ffe990 100644 --- a/gnupg/gnupg.php +++ b/gnupg/gnupg.php @@ -104,7 +104,7 @@ public function adddecryptkey($kye, $passphrase) {} * * @param string $text * @param string $signature - * @param string &$plaintext + * @param string $plaintext * * @return array|false On success, this function returns information about the signature. * On failure, this function returns false. @@ -178,7 +178,7 @@ public function decrypt($enctext) {} * @link https://php.net/manual/en/function.gnupg-decryptverify.php * * @param string $enctext - * @param string &$plaintext + * @param string $plaintext * * @return array|false On success, this function returns information about the signature and * fills the parameter with the decrypted text. @@ -365,7 +365,7 @@ function gnupg_clearsignkeys($res) {} * @param resource $res The gnupg identifier, from a call to gnupg_init() or gnupg. * @param string $text The signed text. * @param string|false $signature The signature. To verify a clearsigned text, set signature to false. - * @param string &$plaintext The plain text. If this optional parameter is passed, it is filled with the plain text. + * @param string $plaintext The plain text. If this optional parameter is passed, it is filled with the plain text. * @return array|false On success, this function returns information about the signature. * On failure, this function returns false. */ @@ -489,7 +489,7 @@ function gnupg_encryptsign($res, $text) {} * @link https://www.php.net/manual/en/function.gnupg-decryptverify.php * @param resource $res The gnupg identifier, from a call to gnupg_init() or gnupg. * @param string $enctext The text being decrypted. - * @param string &$plaintext The parameter plaintext gets filled with the decrypted text. + * @param string $plaintext The parameter plaintext gets filled with the decrypted text. * @return array|false On success, this function returns information about the signature and fills the plaintext parameter * with the decrypted text. On failure, this function returns false. */ diff --git a/http/http.php b/http/http.php index 32808172c..13fed33ec 100644 --- a/http/http.php +++ b/http/http.php @@ -1429,14 +1429,14 @@ public static function factory($url, $method, $options, $class_name) {} /** * @param $url * @param $options [optional] - * @param &$info [optional] + * @param $info [optional] */ public static function get($url, $options, &$info) {} /** * @param $url * @param $options [optional] - * @param &$info [optional] + * @param $info [optional] */ public static function head($url, $options, &$info) {} @@ -1444,7 +1444,7 @@ public static function head($url, $options, &$info) {} * @param $url * @param $data * @param $options [optional] - * @param &$info [optional] + * @param $info [optional] */ public static function postData($url, $data, $options, &$info) {} @@ -1452,7 +1452,7 @@ public static function postData($url, $data, $options, &$info) {} * @param $url * @param $data * @param $options [optional] - * @param &$info [optional] + * @param $info [optional] */ public static function postFields($url, $data, $options, &$info) {} @@ -1460,7 +1460,7 @@ public static function postFields($url, $data, $options, &$info) {} * @param $url * @param $data * @param $options [optional] - * @param &$info [optional] + * @param $info [optional] */ public static function putData($url, $data, $options, &$info) {} @@ -1468,7 +1468,7 @@ public static function putData($url, $data, $options, &$info) {} * @param $url * @param $file * @param $options [optional] - * @param &$info [optional] + * @param $info [optional] */ public static function putFile($url, $file, $options, &$info) {} @@ -1476,7 +1476,7 @@ public static function putFile($url, $file, $options, &$info) {} * @param $url * @param $stream * @param $options [optional] - * @param &$info [optional] + * @param $info [optional] */ public static function putStream($url, $stream, $options, &$info) {} @@ -2049,7 +2049,7 @@ public static function date($timestamp) {} * @param $url * @param $parts [optional] * @param $flags [optional] - * @param &$composed [optional] + * @param $composed [optional] */ public static function buildUrl($url, $parts, $flags, &$composed) {} @@ -2062,19 +2062,19 @@ public static function buildStr($query, $prefix, $arg_sep) {} /** * @param $supported - * @param &$result [optional] + * @param $result [optional] */ public static function negotiateLanguage($supported, &$result) {} /** * @param $supported - * @param &$result [optional] + * @param $result [optional] */ public static function negotiateCharset($supported, &$result) {} /** * @param $supported - * @param &$result [optional] + * @param $result [optional] */ public static function negotiateContentType($supported, &$result) {} @@ -2171,7 +2171,7 @@ function http_date($timestamp = null) {} * a bitmask of binary or'ed HTTP_URL constants; * HTTP_URL_REPLACE is the default * - * @param null|array &$new_url [optional]+ * @param null|array $new_url [optional]
* if set, it will be filled with the parts of the composed url like parse_url would return *
* @return string|false the new URL as string on success or false on failure. @@ -2203,7 +2203,7 @@ function http_build_str(array $query, $prefix = null, $arg_separator = null) {} * @param array $supported* array containing the supported languages as values *
- * @param null|array &$result [optional]+ * @param null|array $result [optional]
* will be filled with an array containing the negotiation results *
* @return string the negotiated language or the default language (i.e. first array entry) if none match. @@ -2217,7 +2217,7 @@ function http_negotiate_language(array $supported, ?array &$result = null) {} * @param array $supported* array containing the supported charsets as values *
- * @param null|array &$result [optional]+ * @param null|array $result [optional]
* will be filled with an array containing the negotiation results *
* @return string the negotiated charset or the default charset (i.e. first array entry) if none match. @@ -2231,7 +2231,7 @@ function http_negotiate_charset(array $supported, ?array &$result = null) {} * @param array $supported* array containing the supported content types as values *
- * @param null|array &$result [optional]+ * @param null|array $result [optional]
* will be filled with an array containing the negotiation results *
* @return string the negotiated content type or the default content type (i.e. first array entry) if none match. @@ -2574,7 +2574,7 @@ function http_persistent_handles_ident($ident) {} * * @param null|array $options [optional]*
- * @param null|array &$info [optional]+ * @param null|array $info [optional]
* Will be filled with request/response information *
* @return string @@ -2590,7 +2590,7 @@ function http_get($url, ?array $options = null, ?array &$info = null) {} * * @param null|array $options [optional]*
- * @param null|array &$info [optional]+ * @param null|array $info [optional]
*
* @return string */ @@ -2608,7 +2608,7 @@ function http_head($url = null, ?array $options = null, ?array &$info = null) {} * * @param null|array $options [optional]*
- * @param null|array &$info [optional]+ * @param null|array $info [optional]
*
* @return string */ @@ -2629,7 +2629,7 @@ function http_post_data($url, $data = null, ?array $options = null, ?array &$inf * * @param null|array $options [optional]*
- * @param null|array &$info [optional]+ * @param null|array $info [optional]
*
* @return string */ @@ -2647,7 +2647,7 @@ function http_post_fields($url, ?array $data = null, ?array $files = null, ?arra * * @param null|array $options [optional]*
- * @param null|array &$info [optional]+ * @param null|array $info [optional]
*
* @return string */ @@ -2665,7 +2665,7 @@ function http_put_data($url, $data = null, ?array $options = null, ?array &$info * * @param null|array $options [optional]*
- * @param null|array &$info [optional]+ * @param null|array $info [optional]
*
* @return string */ @@ -2683,7 +2683,7 @@ function http_put_file($url, $file = null, ?array $options = null, ?array &$info * * @param null|array $options [optional]*
- * @param null|array &$info [optional]+ * @param null|array $info [optional]
*
* @return string */ @@ -2704,7 +2704,7 @@ function http_put_stream($url, $stream = null, ?array $options = null, ?array &$ * * @param null|array $options [optional]*
- * @param null|array &$info [optional]+ * @param null|array $info [optional]
*
* @return string */ diff --git a/http/http3.php b/http/http3.php index 0e2facdcd..7cb86f51d 100644 --- a/http/http3.php +++ b/http/http3.php @@ -702,7 +702,7 @@ public function getResponseStatusForCode(int $code) {} * @param string $params HTTP header parameter's value to negotiate. * @param array $supported List of supported negotiation operands. * @param string $prim_typ_sep A "primary type separator", i.e. that would be a hyphen for content language negotiation (en-US, de-DE, etc.). - * @param array &$result Out parameter recording negotiation results. + * @param array $result Out parameter recording negotiation results. * @return string|null NULL if negotiation fails. * or string the closest match negotiated, or the default (first entry of $supported). */ @@ -714,7 +714,7 @@ public function negotiate(string $params, array $supported, string $prim_typ_sep * The first element of $supported character sets serves as a default if no character set matches. * * @param array $supported List of supported content character sets. - * @param array &$result Out parameter recording negotiation results. + * @param array $result Out parameter recording negotiation results. * @return string|null NULL if negotiation fails. * or string the negotiated character set. */ @@ -726,7 +726,7 @@ public function negotiateCharset(array $supported, array &$result = null) {} * The first element of $supported content types serves as a default if no content-type matches. * * @param array $supported List of supported MIME content types. - * @param array &$result Out parameter recording negotiation results. + * @param array $result Out parameter recording negotiation results. * @return string|null NULL if negotiation fails. * or string the negotiated content type. */ @@ -738,7 +738,7 @@ public function negotiateContentType(array $supported, array &$result = null) {} * The first element of $supported encodings serves as a default if no encoding matches. * * @param array $supported List of supported content encodings. - * @param array &$result Out parameter recording negotiation results. + * @param array $result Out parameter recording negotiation results. * @return string|null NULL if negotiation fails. * or string the negotiated encoding. */ @@ -750,7 +750,7 @@ public function negotiateEncoding(array $supported, array &$result = null) {} * The first element of $supported languages serves as a default if no language matches. * * @param array $supported List of supported content languages. - * @param array &$result Out parameter recording negotiation results. + * @param array $result Out parameter recording negotiation results. * @return string|null NULL if negotiation fails. * or string the negotiated language. */ @@ -866,7 +866,7 @@ public function match(string $value, int $flags = null) {} * The first element of $supported serves as a default if no operand matches. * * @param array $supported The list of supported values to negotiate. - * @param array &$result Out parameter recording the negotiation results. + * @param array $result Out parameter recording the negotiation results. * @return string|null NULL if negotiation fails. * or string the closest match negotiated, or the default (first entry of $supported). */ @@ -1136,7 +1136,7 @@ public function getType() {} * * See http\Message::splitMultipartBody(). * - * @param string &$boundary A reference where the boundary string will be stored. + * @param string $boundary A reference where the boundary string will be stored. * @return bool whether this is a message with a multipart "Content-Type". */ public function isMultipart(string &$boundary = null) {} @@ -2468,7 +2468,7 @@ class Dechunk extends \http\Encoding\Stream * Decode chunked encoded data. * * @param string $data The data to decode. - * @param int &$decoded_len Out parameter with the length of $data that's been decoded. + * @param int $decoded_len Out parameter with the length of $data that's been decoded. * Should be ```strlen($data)``` if not truncated. * @return string|string|string|false string the decoded data. * or string the unencoded data. @@ -3036,7 +3036,7 @@ public function getState() {} * * @param string $data The (part of the) header to parse. * @param int $flags Any combination of [parser flags](http/Header/Parser#Parser.flags:). - * @param array &$header Successfully parsed headers. + * @param array $header Successfully parsed headers. * @throws \http\Exception\InvalidArgumentException * @return int http\Header\Parser::STATE_* constant. */ @@ -3046,7 +3046,7 @@ public function parse(string $data, int $flags, array &$header = null) {} * * @param resource $stream The header stream to parse from. * @param int $flags Any combination of [parser flags](http/Header/Parser#Parser.flags:). - * @param array &$headers The headers parsed. + * @param array $headers The headers parsed. * @throws \http\Exception\InvalidArgumentException * @throws \http\Exception\UnexpectedValueException * @return int http\Header\Parser::STATE_* constant. diff --git a/imagick/imagick.php b/imagick/imagick.php index 5ccd40d50..428f92d53 100644 --- a/imagick/imagick.php +++ b/imagick/imagick.php @@ -5119,8 +5119,8 @@ public function statisticImage($type, $width, $height, $channel = Imagick::CHANN * * @link https://php.net/manual/en/imagick.subimagematch.php * @param Imagick $imagick - * @param array &$bestMatch [optional] - * @param float &$similarity [optional] A new image that displays the amount of similarity at each pixel. + * @param array $bestMatch [optional] + * @param float $similarity [optional] A new image that displays the amount of similarity at each pixel. * @param float $similarity_threshold [optional] Only used if compiled with ImageMagick (library) > 7 * @param int $metric [optional] Only used if compiled with ImageMagick (library) > 7 * @return Imagick @@ -5133,8 +5133,8 @@ public function subImageMatch(Imagick $imagick, array &$bestMatch, &$similarity, * Is an alias of Imagick::subImageMatch * * @param Imagick $imagick - * @param array &$bestMatch [optional] - * @param float &$similarity [optional] A new image that displays the amount of similarity at each pixel. + * @param array $bestMatch [optional] + * @param float $similarity [optional] A new image that displays the amount of similarity at each pixel. * @param float $similarity_threshold [optional] * @param int $metric [optional] * @return Imagick diff --git a/intl/intl.php b/intl/intl.php index aa13666cc..5109cb11d 100644 --- a/intl/intl.php +++ b/intl/intl.php @@ -303,7 +303,7 @@ public function compare( * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)+ * @param string[] $array
* Array of strings to sort. *
* @param int $flags [optional]
@@ -324,7 +324,7 @@ public function sort(
* (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)
* Sort array using specified collator and sort keys
* @link https://php.net/manual/en/collator.sortwithsortkeys.php
- * @param string[] &$array
Array of strings to sort
+ * @param string[] $arrayArray of strings to sort
* @return bool TRUE on success or FALSE on failure. */ public function sortWithSortKeys(array &$array) {} @@ -333,7 +333,7 @@ public function sortWithSortKeys(array &$array) {} * (PHP 5 >= 5.3.0, PECL intl >= 1.0.0)Array of strings to sort.
+ * @param string[] $arrayArray of strings to sort.
* @param int $flags [optional]* Optional sorting type, one of the following: * Collator::SORT_REGULAR @@ -971,7 +971,7 @@ public function format( * formatting type to use. By default, * NumberFormatter::TYPE_DOUBLE is used. *
- * @param int &$offset [optional]+ * @param int $offset [optional]
* Offset in the string at which to begin parsing. On return, this value * will hold the offset at which parsing ended. *
@@ -1006,11 +1006,11 @@ public function formatCurrency( * Parse a currency number * @link https://php.net/manual/en/numberformatter.parsecurrency.php * @param string $string - * @param string &$currency+ * @param string $currency
* Parameter to receive the currency name (3-letter ISO 4217 currency * code). *
- * @param int &$offset [optional]+ * @param int $offset [optional]
* Offset in the string at which to begin parsing. On return, this value * will hold the offset at which parsing ended. *
@@ -2097,7 +2097,7 @@ public static function formatObject($datetime, $format = null, #[TypeAware(['8.0 * @param string $string* string to convert to a time *
- * @param int &$offset [optional]+ * @param int $offset [optional]
* Position at which to start the parsing in $value (zero-based). * If no error occurs before $value is consumed, $parse_pos will contain -1 * otherwise it will contain the position at which parsing ended (and the error occurred). @@ -2115,7 +2115,7 @@ public function parse(#[TypeAware(['8.0' => 'string'], default: '')] $string, &$ * @param string $string
* string to convert to a time *
- * @param int &$offset [optional]+ * @param int $offset [optional]
* Position at which to start the parsing in $value (zero-based). * If no error occurs before $value is consumed, $parse_pos will contain -1 * otherwise it will contain the position at which parsing ended . @@ -2401,7 +2401,7 @@ public function __construct() {} * @link https://php.net/manual/en/spoofchecker.issuspicious.php * @param string $string
*
- * @param string &$errorCode [optional]+ * @param string $errorCode [optional]
*
* @return bool */ @@ -2415,7 +2415,7 @@ public function isSuspicious(#[TypeAware(['8.0' => 'string'], default: '')] $str * * @param string $string2*
- * @param string &$errorCode [optional]+ * @param string $errorCode [optional]
*
* @return bool */ @@ -3371,7 +3371,7 @@ public static function fromDateTimeZone(#[TypeAware(['8.0' => 'DateTimeZone'], d * Get the canonical system timezone ID or the normalized custom time zone ID for the given time zone ID * @link https://secure.php.net/manual/en/intltimezone.getcanonicalid.php * @param string $timezoneId - * @param bool &$isSystemId [optional] + * @param bool $isSystemId [optional] * @return string|false the timezone ID or FALSE on failure */ public static function getCanonicalID(#[TypeAware(['8.0' => 'string'], default: '')] $timezoneId, &$isSystemId) {} @@ -3457,10 +3457,10 @@ public function getID() {} * `local'. * @param bool $local * if true, `date' is local wall time; otherwise it is in GMT time. - * @param int &$rawOffset + * @param int $rawOffset * output parameter to receive the raw offset, that is, the offset not * including DST adjustments - * @param int &$dstOffset + * @param int $dstOffset * output parameter to receive the DST offset, that is, the offset to be added * to `rawOffset' to obtain the total offset between local and GMT time. If * DST is not in effect, this value is zero; otherwise it is a positive value, @@ -3660,7 +3660,7 @@ function collator_set_strength(Collator $object, int $strength): bool {} * Sort array using specified collator * @link https://php.net/manual/en/collator.sort.php * @param Collator $object - * @param string[] &$array+ * @param string[] $array
* Array of strings to sort. *
* @param int $flags [optional]@@ -3679,7 +3679,7 @@ function collator_sort(Collator $object, array &$array, int $flags = null): bool * Sort array using specified collator and sort keys * @link https://php.net/manual/en/collator.sortwithsortkeys.php * @param Collator $object - * @param string[] &$array
Array of strings to sort
+ * @param string[] $arrayArray of strings to sort
* @return bool TRUE on success or FALSE on failure. */ function collator_sort_with_sort_keys(Collator $object, array &$array): bool {} @@ -3689,7 +3689,7 @@ function collator_sort_with_sort_keys(Collator $object, array &$array): bool {} * Sort array maintaining index association * @link https://php.net/manual/en/collator.asort.php * @param Collator $object - * @param string[] &$arrayArray of strings to sort.
+ * @param string[] $arrayArray of strings to sort.
* @param int $flags [optional]* Optional sorting type, one of the following: * Collator::SORT_REGULAR @@ -3806,7 +3806,7 @@ function numfmt_format(NumberFormatter $formatter, int|float $num, int $type = n * formatting type to use. By default, * NumberFormatter::TYPE_DOUBLE is used. *
- * @param int &$offset [optional]+ * @param int $offset [optional]
* Offset in the string at which to begin parsing. On return, this value * will hold the offset at which parsing ended. *
@@ -3837,11 +3837,11 @@ function numfmt_format_currency(NumberFormatter $formatter, float $amount, strin * @link https://php.net/manual/en/numberformatter.parsecurrency.php * @param NumberFormatter $formatter * @param string $string - * @param string &$currency+ * @param string $currency
* Parameter to receive the currency name (3-letter ISO 4217 currency * code). *
- * @param int &$offset [optional]+ * @param int $offset [optional]
* Offset in the string at which to begin parsing. On return, this value * will hold the offset at which parsing ended. *
@@ -4717,7 +4717,7 @@ function datefmt_format_object($datetime, $format = null, ?string $locale = null * @param string $string* string to convert to a time *
- * @param int &$offset [optional]+ * @param int $offset [optional]
* Position at which to start the parsing in $value (zero-based). * If no error occurs before $value is consumed, $parse_pos will contain -1 * otherwise it will contain the position at which parsing ended (and the error occurred). @@ -4736,7 +4736,7 @@ function datefmt_parse(IntlDateFormatter $formatter, string $string, &$offset = * @param string $string
* string to convert to a time *
- * @param int &$offset [optional]+ * @param int $offset [optional]
* Position at which to start the parsing in $value (zero-based). * If no error occurs before $value is consumed, $parse_pos will contain -1 * otherwise it will contain the position at which parsing ended . @@ -4957,7 +4957,7 @@ function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = * bytes. If $start does not point to the first byte of a UTF-8 * character, the start position is moved to the next character boundary. *
- * @param int &$next [optional]+ * @param int $next [optional]
* Reference to a value that will be set to the next starting position. * When the call returns, this may point to the first byte position past the end of the string. *
@@ -4982,7 +4982,7 @@ function grapheme_extract(string $haystack, int $size, int $type = null, int $of * @param int $variant [optional]* Either INTL_IDNA_VARIANT_2003 for IDNA 2003 or INTL_IDNA_VARIANT_UTS46 for UTS #46. *
- * @param array &$idna_info [optional]+ * @param array $idna_info [optional]
* This parameter can be used only if INTL_IDNA_VARIANT_UTS46 was used for variant. * In that case, it will be filled with an array with the keys 'result', * the possibly illegal result of the transformation, 'isTransitionalDifferent', @@ -5008,7 +5008,7 @@ function idn_to_ascii(string $domain, int $flags = 0, int $variant = INTL_IDNA_V * @param int $variant [optional]
* Either INTL_IDNA_VARIANT_2003 for IDNA 2003 or INTL_IDNA_VARIANT_UTS46 for UTS #46. *
- * @param array &$idna_info [optional]+ * @param array $idna_info [optional]
* This parameter can be used only if INTL_IDNA_VARIANT_UTS46 was used for variant. * In that case, it will be filled with an array with the keys 'result', * the possibly illegal result of the transformation, 'isTransitionalDifferent', @@ -6008,7 +6008,7 @@ function intltz_from_date_time_zone(DateTimeZone $timezone): ?IntlTimeZone {} * Get the canonical system timezone ID or the normalized custom time zone ID for the given time zone ID * @link https://secure.php.net/manual/en/intltimezone.getcanonicalid.php * @param string $timezoneId - * @param bool &$isSystemId [optional] + * @param bool $isSystemId [optional] * @return string|false * @since 5.5 */ @@ -6109,8 +6109,8 @@ function intltz_get_id(IntlTimeZone $timezone): string|false {} * @param IntlTimeZone $timezone * @param float $timestamp * @param bool $local - * @param int &$rawOffset - * @param int &$dstOffset + * @param int $rawOffset + * @param int $dstOffset * @return bool * @since 5.5 */ @@ -7245,7 +7245,7 @@ public function convert( * @param int $reason * @param string $source * @param string $codePoint - * @param int &$error + * @param int $error * @return mixed */ public function fromUCallback( @@ -7388,7 +7388,7 @@ public function setSubstChars(#[TypeAware(['8.0' => 'string'], default: '')] $ch * @param int $reason * @param string $source * @param string $codeUnits - * @param int &$error + * @param int $error * @return mixed */ public function toUCallback( diff --git a/ldap/ldap.php b/ldap/ldap.php index 93b8f0fb7..20bec0549 100644 --- a/ldap/ldap.php +++ b/ldap/ldap.php @@ -12,7 +12,7 @@ * @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 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. * @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 */ @@ -57,8 +57,8 @@ function ldap_exop_whoami(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], defaul * @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 [optional] 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 string &$response_oid [optional] Will be filled with the response OID if provided, usually equal to the request OID. + * @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 string $response_oid [optional] Will be filled with the response OID if provided, usually equal to the request 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 */ @@ -70,8 +70,8 @@ function ldap_exop(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default: 'res * @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 string &$response_oid Will be filled by the response OID. + * @param string $response_data Will be filled by the response data. + * @param string $response_oid Will be filled by the response OID. * @return bool Returns TRUE on success or FALSE on failure. * @since 7.2 */ @@ -1056,7 +1056,7 @@ function ldap_rename_ext(#[PhpVersionAware(['8.1' => 'LDAP\Connection'], default *
+ * @param mixed $value
* This will be set to the option value. *
* @return bool TRUE on success or FALSE on failure. @@ -1204,7 +1204,7 @@ function ldap_next_reference( * @link https://php.net/manual/en/function.ldap-parse-reference.php * @param resource $ldap * @param resource $entry - * @param array &$referrals + * @param array $referrals * @return bool */ function ldap_parse_reference( @@ -1218,11 +1218,11 @@ function ldap_parse_reference( * @link https://php.net/manual/en/function.ldap-parse-result.php * @param resource $ldap * @param resource $result - * @param int &$error_code - * @param string &$matched_dn [optional] - * @param string &$error_message [optional] - * @param array &$referrals [optional] - * @param array &$controls [optional] An array of LDAP Controls which have been sent with the response. + * @param int $error_code + * @param string $matched_dn [optional] + * @param string $error_message [optional] + * @param array $referrals [optional] + * @param array $controls [optional] An array of LDAP Controls which have been sent with the response. * @return bool */ function ldap_parse_result( @@ -1284,10 +1284,10 @@ function ldap_control_paged_result(#[PhpVersionAware(['8.1' => 'LDAP\Connection' * An LDAP link identifier, returned by ldap_connect. * * @param resource $result - * @param string &$cookie [optional]+ * @param string $cookie [optional]
* An opaque structure sent by the server. *
- * @param int &$estimated [optional]+ * @param int $estimated [optional]
* The estimated number of entries to retrieve. *
* @return bool TRUE on success or FALSE on failure. diff --git a/libsodium/libsodium.php b/libsodium/libsodium.php index 58651eb0c..8071a7d4f 100644 --- a/libsodium/libsodium.php +++ b/libsodium/libsodium.php @@ -326,7 +326,7 @@ function crypto_generichash_init( * Update the hash state with some data * BLAKE2b * - * @param string &$hashState + * @param string $hashState * @param string $append * @return bool */ @@ -724,7 +724,7 @@ function hex2bin( /** * Increment a string in little-endian * - * @param string &$nonce + * @param string $nonce * @return string */ function increment( @@ -734,7 +734,7 @@ function increment( /** * Add the right operand to the left * - * @param string &$left + * @param string $left * @param string $right */ function add( @@ -769,7 +769,7 @@ function memcmp( /** * Wipe a buffer * - * @param string &$target + * @param string $target */ function memzero(string &$target) {} diff --git a/mbstring/mbstring.php b/mbstring/mbstring.php index 3e8aa28e3..e28fcb8be 100644 --- a/mbstring/mbstring.php +++ b/mbstring/mbstring.php @@ -194,7 +194,7 @@ function mb_substitute_character(string|int|null $substitute_character = null): * @param string $string* The URL encoded data. *
- * @param array &$result [optional]+ * @param array $result [optional]
* An array containing decoded and character encoded converted values. *
* @return bool true on success or false on failure. @@ -208,7 +208,7 @@ function mb_parse_str(string $string, &$result): bool {} * @param string $string* The URL encoded data. *
- * @param array &$result+ * @param array $result
* An array containing decoded and character encoded converted values. *
* @return bool true on success or false on failure. @@ -802,8 +802,8 @@ function mb_decode_mimeheader(string $string): string {} * from-coding. When from_encoding * is omitted, detect_order is used. * - * @param string|array|object &$var var is the reference to the variable being converted. - * @param string|array|object &...$vars+ * @param string|array|object $var var is the reference to the variable being converted. + * @param string|array|object ...$vars
* vars is the other references to the * variables being converted. String, Array and Object are accepted. * mb_convert_variables assumes all parameters @@ -955,7 +955,7 @@ function mb_regex_set_options(?string $options): string {} * @param string $string
* The search string. *
- * @param string[] &$matches [optional]+ * @param string[] $matches [optional]
* Contains a substring of the matched string. *
* @return bool @@ -971,7 +971,7 @@ function mb_ereg(string $pattern, string $string, &$matches): bool {} * @param string $string* The string being searched. *
- * @param string[] &$matches [optional]+ * @param string[] $matches [optional]
* Contains a substring of the matched string. *
* @return bool|int @@ -1217,7 +1217,7 @@ function mbregex_encoding($encoding) {} /** * @param string $pattern * @param string $string - * @param array &$registers [optional] + * @param array $registers [optional] * @see mb_ereg * @removed 8.0 */ @@ -1227,7 +1227,7 @@ function mbereg(string $pattern, string $string, array &$registers) {} /** * @param string $pattern * @param string $string - * @param array &$registers [optional] + * @param array $registers [optional] * @see mb_eregi * @removed 8.0 */ diff --git a/memcache/memcache.php b/memcache/memcache.php index 887504a39..67f256742 100644 --- a/memcache/memcache.php +++ b/memcache/memcache.php @@ -211,7 +211,7 @@ public function prepend() {} * @param string|array $key* The key or array of keys to fetch. *
- * @param int|array &$flags [optional]+ * @param int|array $flags [optional]
* If present, flags fetched along with the values will be written to this parameter. These * flags are the same as the ones given to for example {@link https://php.net/manual/en/memcache.set.php Memcache::set()}. * The lowest byte of the int is reserved for pecl/memcache internal usage (e.g. to indicate diff --git a/mqseries/mqseries.php b/mqseries/mqseries.php index 30575ab05..28391a689 100644 --- a/mqseries/mqseries.php +++ b/mqseries/mqseries.php @@ -2,16 +2,16 @@ /** * @param resource $hconn - * @param resource &$compCode - * @param resource &$reason + * @param resource $compCode + * @param resource $reason */ function mqseries_back($hconn, &$compCode, &$reason) {} /** * @param resource $hconn * @param array $beginOptions - * @param resource &$compCode - * @param resource &$reason + * @param resource $compCode + * @param resource $reason */ function mqseries_begin($hconn, array $beginOptions, &$compCode, &$reason) {} @@ -19,52 +19,52 @@ function mqseries_begin($hconn, array $beginOptions, &$compCode, &$reason) {} * @param resource $hconn * @param resource $hobj * @param int $options - * @param resource &$compCode - * @param resource &$reason + * @param resource $compCode + * @param resource $reason */ function mqseries_close($hconn, $hobj, $options, &$compCode, &$reason) {} /** * @param resource $hconn - * @param resource &$compCode - * @param resource &$reason + * @param resource $compCode + * @param resource $reason */ function mqseries_cmit($hconn, &$compCode, &$reason) {} /** * @param string $qManagerName - * @param resource &$hconn - * @param resource &$compCode - * @param resource &$reason + * @param resource $hconn + * @param resource $compCode + * @param resource $reason */ function mqseries_conn($qManagerName, &$hconn, &$compCode, &$reason) {} /** * @param string $qManagerName - * @param array &$connOptions - * @param resource &$hconn - * @param resource &$compCode - * @param resource &$reason + * @param array $connOptions + * @param resource $hconn + * @param resource $compCode + * @param resource $reason */ function mqseries_connx($qManagerName, array &$connOptions, &$hconn, &$compCode, &$reason) {} /** * @param resource $hconn - * @param resource &$compCode - * @param resource &$reason + * @param resource $compCode + * @param resource $reason */ function mqseries_disc($hconn, &$compCode, &$reason) {} /** * @param resource $hConn * @param resource $hObj - * @param array &$md - * @param array &$gmo - * @param int &$bufferLength - * @param string &$msg - * @param int &$data_length - * @param resource &$compCode - * @param resource &$reason + * @param array $md + * @param array $gmo + * @param int $bufferLength + * @param string $msg + * @param int $data_length + * @param resource $compCode + * @param resource $reason */ function mqseries_get($hConn, $hObj, array &$md, array &$gmo, &$bufferLength, &$msg, &$data_length, &$compCode, &$reason) {} @@ -74,43 +74,43 @@ function mqseries_get($hConn, $hObj, array &$md, array &$gmo, &$bufferLength, &$ * @param int $selectorCount * @param array $selectors * @param int $intAttrCount - * @param resource &$intAttr + * @param resource $intAttr * @param int $charAttrLength - * @param resource &$charAttr - * @param resource &$compCode - * @param resource &$reason + * @param resource $charAttr + * @param resource $compCode + * @param resource $reason */ function mqseries_inq($hconn, $hobj, $selectorCount, array $selectors, $intAttrCount, &$intAttr, $charAttrLength, &$charAttr, &$compCode, &$reason) {} /** * @param resource $hconn - * @param array &$objDesc + * @param array $objDesc * @param int $option - * @param resource &$hobj - * @param resource &$compCode - * @param resource &$reason + * @param resource $hobj + * @param resource $compCode + * @param resource $reason */ function mqseries_open($hconn, array &$objDesc, $option, &$hobj, &$compCode, &$reason) {} /** * @param resource $hconn - * @param resource &$objDesc - * @param resource &$msgDesc - * @param resource &$pmo - * @param string &$buffer - * @param resource &$compCode - * @param resource &$reason + * @param resource $objDesc + * @param resource $msgDesc + * @param resource $pmo + * @param string $buffer + * @param resource $compCode + * @param resource $reason */ function mqseries_put1($hconn, &$objDesc, &$msgDesc, &$pmo, $buffer, &$compCode, &$reason) {} /** * @param resource $hConn * @param resource $hObj - * @param array &$md - * @param array &$pmo + * @param array $md + * @param array $pmo * @param string $message - * @param resource &$compCode - * @param resource &$reason + * @param resource $compCode + * @param resource $reason */ function mqseries_put($hConn, $hObj, array &$md, array &$pmo, $message, &$compCode, &$reason) {} @@ -123,8 +123,8 @@ function mqseries_put($hConn, $hObj, array &$md, array &$pmo, $message, &$compCo * @param array $intattrs * @param int $charattrlength * @param array $charattrs - * @param resource &$compCode - * @param resource &$reason + * @param resource $compCode + * @param resource $reason */ function mqseries_set($hconn, $hobj, $selectorcount, array $selectors, $intattrcount, array $intattrs, $charattrlength, array $charattrs, &$compCode, &$reason) {} diff --git a/mssql/mssql.php b/mssql/mssql.php index 8d950c6d9..cb01bf4cb 100644 --- a/mssql/mssql.php +++ b/mssql/mssql.php @@ -466,7 +466,7 @@ function mssql_init($sp_name, $link_identifier = null) {} * T-SQL syntax. See the explanation included in * mssql_execute. *
- * @param mixed &$var+ * @param mixed $var
* The PHP variable you'll bind the MSSQL parameter to. It is passed by * reference, to retrieve OUTPUT and RETVAL values after * the procedure execution. diff --git a/mysqli/mysqli.php b/mysqli/mysqli.php index 6d499b0bd..28fd99726 100644 --- a/mysqli/mysqli.php +++ b/mysqli/mysqli.php @@ -632,11 +632,11 @@ public function real_escape_string(string $string) {} /** * Poll connections * @link https://php.net/manual/en/mysqli.poll.php - * @param array &$read
+ * @param array $read
*
- * @param array &$error+ * @param array $error
*
- * @param array &$reject+ * @param array $reject
*
* @param int $seconds* Number of seconds to wait, must be non-negative. @@ -1384,11 +1384,11 @@ public function attr_set(int $attribute, int $value) {} * * *
- * @param mixed &$var1+ * @param mixed $var1
* The number of variables and length of string * types must match the parameters in the statement. *
- * @param mixed &...$_ [optional] + * @param mixed ...$_ [optional] * @return bool true on success or false on failure. */ public function bind_param($types, &$var1, &...$_) {} @@ -1396,8 +1396,8 @@ public function bind_param($types, &$var1, &...$_) {} /** * Binds variables to a prepared statement for result storage * @link https://php.net/manual/en/mysqli-stmt.bind-result.php - * @param mixed &$var1 The variable to be bound. - * @param mixed &...$_ The variables to be bound. + * @param mixed $var1 The variable to be bound. + * @param mixed ...$_ The variables to be bound. * @return bool true on success or false on failure. */ public function bind_result(&$var1, &...$_) {} @@ -2123,9 +2123,9 @@ function mysqli_ping(mysqli $mysql): bool {} /** * Poll connections * @link https://php.net/manual/en/mysqli.poll.php - * @param array|null &$read - * @param array|null &$error - * @param array &$reject + * @param array|null $read + * @param array|null $error + * @param array $reject * @param int $seconds * @param int $microseconds [optional] * @return int|false number of ready connections upon success, FALSE otherwise. @@ -2392,11 +2392,11 @@ function mysqli_stmt_send_long_data(mysqli_stmt $statement, int $param_num, stri * * * - * @param mixed &$var1+ * @param mixed $var1
* The number of variables and length of string * types must match the parameters in the statement. *
- * @param mixed &...$vars + * @param mixed ...$vars * @return bool true on success or false on failure. */ function mysqli_stmt_bind_param( @@ -2648,7 +2648,7 @@ function mysqli_bind_param(mysqli_stmt $statement, string $types) {} * @link https://php.net/manual/en/function.mysqli-bind-result.php * @param mysqli_stmt $statement * @param string $types - * @param mixed &$var1 + * @param mixed $var1 * @removed 5.4 */ #[Deprecated(since: '5.3')] diff --git a/ncurses/ncurses.php b/ncurses/ncurses.php index 093bcf588..139fca9d9 100644 --- a/ncurses/ncurses.php +++ b/ncurses/ncurses.php @@ -75,11 +75,11 @@ function ncurses_init_pair($pair, $fg, $bg) {} * @link https://php.net/manual/en/function.ncurses-color-content.php * @param int $color*
- * @param int &$r+ * @param int $r
*
- * @param int &$g+ * @param int $g
*
- * @param int &$b+ * @param int $b
*
* @return int */ @@ -90,9 +90,9 @@ function ncurses_color_content($color, &$r, &$g, &$b) {} * @link https://php.net/manual/en/function.ncurses-pair-content.php * @param int $pair*
- * @param int &$f+ * @param int $f
*
- * @param int &$b+ * @param int $b
*
* @return int */ @@ -969,7 +969,7 @@ function ncurses_insstr($text) {} /** * Reads string from terminal screen * @link https://php.net/manual/en/function.ncurses-instr.php - * @param string &$buffer+ * @param string $buffer
* The characters. Attributes will be stripped. *
* @return int the number of characters. @@ -1125,7 +1125,7 @@ function ncurses_longname() {} * @param int $newmask* Mouse mask options can be set with the following predefined constants: *
NCURSES_BUTTON1_PRESSED
- * @param int &$oldmask+ * @param int $oldmask
* This will be set to the previous value of the mouse event mask. *
* @return int a mask to indicated which of the in parameter @@ -1138,7 +1138,7 @@ function ncurses_mousemask($newmask, &$oldmask) {} /** * Reads mouse event * @link https://php.net/manual/en/function.ncurses-getmouse.php - * @param array &$mevent+ * @param array $mevent
* Event options will be delivered in this parameter which has to be an * array, passed by reference (see example below). *
@@ -1167,9 +1167,9 @@ function ncurses_ungetmouse(array $mevent) {} /** * Transforms coordinates * @link https://php.net/manual/en/function.ncurses-mouse-trafo.php - * @param int &$y+ * @param int $y
*
- * @param int &$x+ * @param int $x
*
* @param bool $toscreen*
@@ -1182,9 +1182,9 @@ function ncurses_mouse_trafo(&$y, &$x, $toscreen) {} * @link https://php.net/manual/en/function.ncurses-wmouse-trafo.php * @param resource $window*
- * @param int &$y+ * @param int $y
*
- * @param int &$x+ * @param int $x
*
* @param bool $toscreen*
@@ -1443,9 +1443,9 @@ function ncurses_wvline($window, $charattr, $n) {} * @link https://php.net/manual/en/function.ncurses-getyx.php * @param resource $window*
- * @param int &$y+ * @param int $y
*
- * @param int &$x+ * @param int $x
*
* @return void */ @@ -1457,10 +1457,10 @@ function ncurses_getyx($window, &$y, &$x) {} * @param resource $window* The measured window *
- * @param int &$y+ * @param int $y
* This will be set to the window height *
- * @param int &$x+ * @param int $x
* This will be set to the window width *
* @return void diff --git a/oci8/oci8.php b/oci8/oci8.php index d565052ce..02bf22236 100644 --- a/oci8/oci8.php +++ b/oci8/oci8.php @@ -412,7 +412,7 @@ function oci_unregister_taf_callback($connection) {} * names. Use the exact column name case for case-sensitive * column names. * - * @param mixed &$variable+ * @param mixed $variable
* The PHP variable that will contain the returned column value. *
* @param int $type [optional]@@ -442,7 +442,7 @@ function oci_define_by_name($statement, $column_name, &$variable, $type = SQLT_C * in bv_name. Oracle does not use question * marks for placeholders. *
- * @param mixed &$variable+ * @param mixed $variable
* The PHP variable to be associated with bv_name *
* @param int $maxlength [optional]@@ -488,7 +488,7 @@ function oci_bind_by_name($statement, $bv_name, &$variable, $maxlength = -1, $ty * @param string $name
* The Oracle placeholder. *
- * @param array &$var_array+ * @param array $var_array
* An array. *
* @param int $max_table_length@@ -857,7 +857,7 @@ function oci_fetch_array($statement, $mode = null) {} * {@see oci_fetch_row} * @link https://php.net/manual/en/function.ocifetchinto.php * @param resource $statement_resource - * @param array &$result + * @param array $result * @param int $mode [optional] * @return int|bool */ @@ -871,7 +871,7 @@ function ocifetchinto($statement_resource, &$result, $mode = null) {} * identifier created by {@see oci_parse} and executed * by {@see oci_execute}, or a REF * CURSOR statement identifier.
- * @param array &$output+ * @param array $output
* The variable to contain the returned rows. *
*@@ -1737,7 +1737,7 @@ function ocifreecursor($statement_resource) {} * @link https://php.net/manual/en/function.ocibindbyname.php * @param resource $statement * @param string $column_name - * @param mixed &$variable + * @param mixed $variable * @param int $maximum_length [optional] * @param int $type [optional] * @return bool Returns TRUE on success or FALSE on failure. @@ -1750,7 +1750,7 @@ function ocibindbyname($statement, $column_name, &$variable, $maximum_length = - * @link https://php.net/manual/en/function.ocidefinebyname.php * @param resource $statement
A valid OCI8 statement identifier created by {@see oci_parse()} and executed by {@see oci_execute()}, or a REF CURSOR statement identifier.
* @param string $column_nameThe column name used in the query. Use uppercase for Oracle's default, non-case sensitive column names. Use the exact column name case for case-sensitive column names.
- * @param mixed &$variableThe PHP variable that will contain the returned column value.
+ * @param mixed $variableThe PHP variable that will contain the returned column value.
* @param int $type [optional]The data type to be returned. Generally not needed. Note that Oracle-style data conversions are not performed. For example, SQLT_INT will be ignored and the returned data type will still be SQLT_CHR. * You can optionally use {@see oci_new_descriptor()} to allocate LOB/ROWID/BFILE descriptors.
* @return bool Returns TRUE on success or FALSE on failure. @@ -1860,7 +1860,7 @@ function ocifetch($statement_resource) {} * Alias of {@see oci_fetch_all} * @link https://php.net/manual/en/function.ocifetchstatement.php * @param resource $statement_resource - * @param array &$output + * @param array $output * @param int $skip [optional] * @param int $maximum_rows [optional] * @param int $flags [optional] diff --git a/odbc/odbc.php b/odbc/odbc.php index cd76ebfad..8c21d1acb 100644 --- a/odbc/odbc.php +++ b/odbc/odbc.php @@ -294,7 +294,7 @@ function odbc_fetch_row($result_id, $row_number = null) {} * @param resource $result_id* The result resource. *
- * @param array &$result_array+ * @param array $result_array
* The result array * that can be of any type since it will be converted to type * array. The array will contain the column values starting at array diff --git a/openssl/openssl.php b/openssl/openssl.php index a147471c8..43f6029b5 100644 --- a/openssl/openssl.php +++ b/openssl/openssl.php @@ -35,7 +35,7 @@ function openssl_pkey_new(?array $options) {} * Gets an exportable representation of a key into a string * @link https://php.net/manual/en/function.openssl-pkey-export.php * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $key - * @param string &$output + * @param string $output * @param string|null $passphrase [optional]
* The key is optionally protected by passphrase. *
@@ -363,7 +363,7 @@ function openssl_x509_check_private_key( * Exports a certificate as a string * @link https://php.net/manual/en/function.openssl-x509-export.php * @param OpenSSLCertificate|string|resource $certificate - * @param string &$output+ * @param string $output
* On success, this will hold the PEM. *
* @param bool $no_text [optional] @@ -400,7 +400,7 @@ function openssl_x509_verify( * Exports a PKCS#12 Compatible Certificate Store File to variable. * @link https://php.net/manual/en/function.openssl-pkcs12-export.php * @param OpenSSLCertificate|string|resource $certificate - * @param string &$output+ * @param string $output
* On success, this will hold the PKCS#12. *
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key@@ -444,7 +444,7 @@ function openssl_pkcs12_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenS * Parse a PKCS#12 Certificate Store into an array * @link https://php.net/manual/en/function.openssl-pkcs12-read.php * @param string $pkcs12 - * @param array &$certificates
+ * @param array $certificates
* On success, this will hold the Certificate Store Data. *
* @param string $passphrase@@ -461,7 +461,7 @@ function openssl_pkcs12_read(string $pkcs12, &$certificates, string $passphrase) * @param array $distinguished_names
* The Distinguished Name to be used in the certificate. *
- * @param OpenSSLAsymmetricKey &$private_key+ * @param OpenSSLAsymmetricKey $private_key
* privkey should be set to a private key that was * previously generated by openssl_pkey_new (or * otherwise obtained from the other openssl_pkey family of functions). @@ -560,7 +560,7 @@ function openssl_csr_new( * Exports a CSR as a string * @link https://php.net/manual/en/function.openssl-csr-export.php * @param OpenSSLCertificateSigningRequest|string|resource $csr - * @param string &$output + * @param string $output * @param bool $no_text [optional] * @return bool true on success or false on failure. */ @@ -675,7 +675,7 @@ function openssl_digest(string $data, string $digest_algo, bool $binary = false) * @param string $iv [optional]
* A non-NULL Initialization Vector. *
- * @param string &$tag [optional]The authentication tag passed by reference when using AEAD cipher mode (GCM or CCM).
+ * @param string $tag [optional]The authentication tag passed by reference when using AEAD cipher mode (GCM or CCM).
* @param string $aad [optional]Additional authentication data.
* @param int $tag_length [optional]* The length of the authentication tag. Its value can be between 4 and 16 for GCM mode. @@ -727,7 +727,7 @@ function openssl_cipher_iv_length(string $cipher_algo): int|false {} * Generate signature * @link https://php.net/manual/en/function.openssl-sign.php * @param string $data - * @param string &$signature
+ * @param string $signature
* If the call was successful the signature is returned in * signature. *
@@ -767,11 +767,11 @@ function openssl_verify( * Seal (encrypt) data * @link https://php.net/manual/en/function.openssl-seal.php * @param string $data - * @param string &$sealed_data - * @param array &$encrypted_keys + * @param string $sealed_data + * @param array $encrypted_keys * @param array $public_key * @param string $cipher_algo - * @param string &$iv + * @param string $iv * @return int|false the length of the sealed data on success, or false on error. * If successful the sealed data is returned in * sealed_data, and the envelope keys in @@ -791,7 +791,7 @@ function openssl_seal( * Open sealed data * @link https://php.net/manual/en/function.openssl-open.php * @param string $data - * @param string &$output+ * @param string $output
* If the call is successful the opened data is returned in this * parameter. *
@@ -955,7 +955,7 @@ function openssl_pkcs7_encrypt(string $input_filename, string $output_filename, * Encrypts data with private key * @link https://php.net/manual/en/function.openssl-private-encrypt.php * @param string $data - * @param string &$encrypted_data + * @param string $encrypted_data * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key * @param int $padding [optional]* padding can be one of @@ -975,7 +975,7 @@ function openssl_private_encrypt( * Decrypts data with private key * @link https://php.net/manual/en/function.openssl-private-decrypt.php * @param string $data - * @param string &$decrypted_data + * @param string $decrypted_data * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
* key must be the private key corresponding that * was used to encrypt the data. @@ -1000,7 +1000,7 @@ function openssl_private_decrypt( * Encrypts data with public key * @link https://php.net/manual/en/function.openssl-public-encrypt.php * @param string $data - * @param string &$encrypted_data
+ * @param string $encrypted_data
* This will hold the result of the encryption. *
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key@@ -1026,7 +1026,7 @@ function openssl_public_encrypt( * Decrypts data with public key * @link https://php.net/manual/en/function.openssl-public-decrypt.php * @param string $data - * @param string &$decrypted_data + * @param string $decrypted_data * @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
* key must be the public key corresponding that * was used to encrypt the data. @@ -1103,7 +1103,7 @@ function openssl_pkey_derive( * The length of the desired string of bytes. Must be a positive integer. PHP will * try to cast this parameter to a non-null integer to use it. *
- * @param bool &$strong_result [optional]+ * @param bool $strong_result [optional]
* If passed into the function, this will hold a boolean value that determines * if the algorithm used was "cryptographically strong", e.g., safe for usage with GPG, * passwords, etc. true if it did, otherwise false @@ -1133,7 +1133,7 @@ function openssl_get_curve_names(): array|false {} /** * @param string $data - * @param array &$certificates + * @param array $certificates * @return bool * @since 7.2 */ @@ -1199,7 +1199,7 @@ function openssl_cms_decrypt(string $input_filename, string $output_filename, $c /** * Exports the CMS file to an array of PEM certificates. * @param string $input_filename - * @param array &$certificates + * @param array $certificates * @return bool * @since 8.0 */ diff --git a/pcntl/pcntl.php b/pcntl/pcntl.php index 8362a7297..d567c61c5 100644 --- a/pcntl/pcntl.php +++ b/pcntl/pcntl.php @@ -58,7 +58,7 @@ function pcntl_fork(): int {} * equivalent to the functionality pcntl_wait provides * (minus options). *
- * @param int &$status+ * @param int $status
* pcntl_waitpid will store status information * in the status parameter which can be * evaluated using the following functions: @@ -90,7 +90,7 @@ function pcntl_fork(): int {} * * *
- * @param array &$resource_usage [optional] + * @param array $resource_usage [optional] * @return int pcntl_waitpid returns the process ID of the * child which exited, -1 on error or zero if WNOHANG was used and no * child was available @@ -100,7 +100,7 @@ function pcntl_waitpid(int $process_id, &$status, int $flags = 0, &$resource_usa /** * Waits on or returns the status of a forked child * @link https://php.net/manual/en/function.pcntl-wait.php - * @param int &$status+ * @param int $status
* pcntl_wait will store status information * in the status parameter which can be * evaluated using the following functions: @@ -136,7 +136,7 @@ function pcntl_waitpid(int $process_id, &$status, int $flags = 0, &$resource_usa * * *
- * @param array &$resource_usage [optional] + * @param array $resource_usage [optional] * @return int pcntl_wait returns the process ID of the * child which exited, -1 on error or zero if WNOHANG was provided as an * option (on wait3-available systems) and no child was available. @@ -377,7 +377,7 @@ function pcntl_setpriority(int $priority, ?int $process_id, int $mode = PRIO_PRO * @param array $signals* List of signals. *
- * @param array &$old_signals [optional]+ * @param array $old_signals [optional]
* The old_signals parameter is set to an array * containing the list of the previously blocked signals. *
@@ -391,7 +391,7 @@ function pcntl_sigprocmask(int $mode, array $signals, &$old_signals): bool {} * @param array $signals* Array of signals to wait for. *
- * @param array &$info [optional]+ * @param array $info [optional]
* The info parameter is set to an array containing * informations about the signal. *
@@ -431,7 +431,7 @@ function pcntl_sigwaitinfo(array $signals, &$info): int|false {} * @param array $signals* Array of signals to wait for. *
- * @param array &$info [optional]+ * @param array $info [optional]
* The siginfo is set to an array containing * informations about the signal. See * pcntl_sigwaitinfo. diff --git a/pcre/pcre.php b/pcre/pcre.php index 3829f61d8..0f50825a7 100644 --- a/pcre/pcre.php +++ b/pcre/pcre.php @@ -13,7 +13,7 @@ * @param string $subject
* The input string. *
- * @param string[] &$matches [optional]+ * @param string[] $matches [optional]
* If matches is provided, then it is filled with * the results of search. $matches[0] will contain the * text that matched the full pattern, $matches[1] @@ -167,7 +167,7 @@ function preg_match(string $pattern, string $subject, &$matches, int $flags = 0, * @param string $subject
* The input string. *
- * @param string[][] &$matches [optional]+ * @param string[][] $matches [optional]
* Array of all matches in multi-dimensional array ordered according to flags. *
* @param int $flags [optional]@@ -289,7 +289,7 @@ function preg_match_all(string $pattern, string $subject, &$matches, int $flags * subject string. Defaults to * -1 (no limit). *
- * @param int &$count [optional]+ * @param int $count [optional]
* If specified, this variable will be filled with the number of * replacements done. *
@@ -360,7 +360,7 @@ function preg_replace(array|string $pattern, array|string $replacement, array|st * subject string. Defaults to * -1 (no limit). * - * @param int &$count [optional]+ * @param int $count [optional]
* If specified, this variable will be filled with the number of * replacements done. *
@@ -388,7 +388,7 @@ function preg_replace_callback( * @param array|callable[] $pattern An associative array mapping patterns (keys) to callbacks (values) * @param string|string[] $subject * @param int $limit [optional] - * @param int &$count [optional] + * @param int $count [optional] * @param int $flags [optional] * @return string|string[]|nullpreg_replace_callback_array() returns an array if the subject parameter is an array, or a string otherwise. On errors the return value is NULL
*If matches are found, the new subject will be returned, otherwise subject will be returned unchanged.
@@ -408,7 +408,7 @@ function preg_replace_callback_array( * @param string|string[] $replacement * @param string|string[] $subject * @param int $limit [optional] - * @param int &$count [optional] + * @param int $count [optional] * @return string|string[]|null an array if the subject * parameter is an array, or a string otherwise. * diff --git a/pq/pq.php b/pq/pq.php index 1b5a58083..0521dfc02 100644 --- a/pq/pq.php +++ b/pq/pq.php @@ -83,7 +83,7 @@ public function end(string $error = null) {} /** * Receive data from the server during pq\Result::COPY_OUT state. * - * @param string &$data Data read from the server. + * @param string $data Data read from the server. * @throws \pq\Exception\InvalidArgumentException * @throws \pq\Exception\BadMethodCallException * @throws \pq\Exception\RuntimeException @@ -1060,7 +1060,7 @@ public function __construct(pq\Transaction $txn, int $oid = \pq\LOB::INVALID_OID * Read a string of data from the current position of the *large object*. * * @param int $length The amount of bytes to read from the *large object*. - * @param int &$read The amount of bytes actually read from the *large object*. + * @param int $read The amount of bytes actually read from the *large object*. * @throws \pq\Exception\InvalidArgumentException * @throws \pq\Exception\BadMethodCallException * @throws \pq\Exception\RuntimeException @@ -1420,7 +1420,7 @@ public function __construct(pq\Connection $conn, string $name, string $query, ar * Bind a variable to an input parameter. * * @param int $param_no The parameter index to bind to. - * @param mixed &$param_ref The variable to bind. + * @param mixed $param_ref The variable to bind. * @throws \pq\Exception\InvalidArgumentException * @throws \pq\Exception\BadMethodCallException */ diff --git a/rdkafka/RdKafka/KafkaConsumer.php b/rdkafka/RdKafka/KafkaConsumer.php index f982cdd3b..0d4f04981 100755 --- a/rdkafka/RdKafka/KafkaConsumer.php +++ b/rdkafka/RdKafka/KafkaConsumer.php @@ -96,8 +96,8 @@ public function offsetsForTimes($topic_partitions, $timeout_ms) {} /** * @param string $topic * @param int $partition - * @param int &$low - * @param int &$high + * @param int $low + * @param int $high * @param int $timeout_ms * * @return void diff --git a/redis/Redis.php b/redis/Redis.php index af00ed5a7..fa502b937 100644 --- a/redis/Redis.php +++ b/redis/Redis.php @@ -1756,7 +1756,7 @@ public function sGetMembers($key) {} * Scan a set for members * * @param string $key The set to search. - * @param int &$iterator LONG (reference) to the iterator as we go. + * @param int $iterator LONG (reference) to the iterator as we go. * @param string $pattern String, optional pattern to match against. * @param int $count How many members to return at a time (Redis might return a different amount) * @@ -3198,7 +3198,7 @@ public function zInter($Output, $ZSetKeys, array $Weights = null, $aggregateFunc * Scan a sorted set for members, with optional pattern and count * * @param string $key String, the set to scan. - * @param int &$iterator Long (reference), initialized to NULL. + * @param int $iterator Long (reference), initialized to NULL. * @param string $pattern String (optional), the pattern to match. * @param int $count How many keys to return per iteration (Redis might return a different number). * @@ -3617,7 +3617,7 @@ public function hMGet($key, $hashKeys) {} * Scan a HASH value for members, with an optional pattern and count. * * @param string $key - * @param int &$iterator + * @param int $iterator * @param string $pattern Optional pattern to match against. * @param int $count How many keys to return in a go (only a sugestion to Redis). * @@ -4233,7 +4233,7 @@ public function time() {} /** * Scan the keyspace for keys * - * @param int &$iterator Iterator, initialized to NULL. + * @param int $iterator Iterator, initialized to NULL. * @param string $pattern Pattern to match. * @param int $count Count of keys per iteration (only a suggestion to Redis). * diff --git a/redis/RedisCluster.php b/redis/RedisCluster.php index 8cb17a83f..1346ceddb 100644 --- a/redis/RedisCluster.php +++ b/redis/RedisCluster.php @@ -2691,7 +2691,7 @@ public function evalSha($scriptSha, $args = [], $numKeys = 0) {} /** * Scan the keyspace for keys. * - * @param int &$iterator Iterator, initialized to NULL. + * @param int $iterator Iterator, initialized to NULL. * @param string|array $node Node identified by key or host/port array * @param string $pattern Pattern to match. * @param int $count Count of keys per iteration (only a suggestion to Redis). @@ -2714,7 +2714,7 @@ public function scan(&$iterator, $node, $pattern = null, $count = 0) {} * Scan a set for members. * * @param string $key The set to search. - * @param int &$iterator LONG (reference) to the iterator as we go. + * @param int $iterator LONG (reference) to the iterator as we go. * @param null $pattern String, optional pattern to match against. * @param int $count How many members to return at a time (Redis might return a different amount). * @@ -2736,7 +2736,7 @@ public function sScan($key, &$iterator, $pattern = null, $count = 0) {} * Scan a sorted set for members, with optional pattern and count. * * @param string $key String, the set to scan. - * @param int &$iterator Long (reference), initialized to NULL. + * @param int $iterator Long (reference), initialized to NULL. * @param string $pattern String (optional), the pattern to match. * @param int $count How many keys to return per iteration (Redis might return a different number). * @@ -2758,7 +2758,7 @@ public function zScan($key, &$iterator, $pattern = null, $count = 0) {} * Scan a HASH value for members, with an optional pattern and count. * * @param string $key - * @param int &$iterator + * @param int $iterator * @param string $pattern Optional pattern to match against. * @param int $count How many keys to return in a go (only a sugestion to Redis). * diff --git a/regex/ereg.php b/regex/ereg.php index c94ac2f57..d8bb43162 100644 --- a/regex/ereg.php +++ b/regex/ereg.php @@ -12,7 +12,7 @@ * @param string $string* The input string. *
- * @param null|array &$regs [optional]+ * @param null|array $regs [optional]
* If matches are found for parenthesized substrings of * pattern and the function is called with the * third argument regs, the matches will be stored @@ -73,7 +73,7 @@ function ereg_replace($pattern, $replacement, $string) {} * @param string $string
* The input string. *
- * @param null|array &$regs [optional]+ * @param null|array $regs [optional]
* If matches are found for parenthesized substrings of * pattern and the function is called with the * third argument regs, the matches will be stored diff --git a/rpminfo/rpminfo.php b/rpminfo/rpminfo.php index c0be9dacb..8a3dd19fe 100644 --- a/rpminfo/rpminfo.php +++ b/rpminfo/rpminfo.php @@ -303,7 +303,7 @@ function rpmvercmp(string $evr1, string $evr2) {} * @param bool $full [optional]
* If TRUE all information headers for the file are retrieved, else only a minimal set. *
- * @param null|string &$error [optional]+ * @param null|string $error [optional]
* If provided, will receive the possible error message, and will avoid a runtime warning. *
* diff --git a/soap/soap.php b/soap/soap.php index 423052931..07eb51890 100644 --- a/soap/soap.php +++ b/soap/soap.php @@ -307,7 +307,7 @@ public function __call( * @param mixed $inputHeaders [optional]* An array of headers to be sent along with the SOAP request. *
- * @param array &$outputHeaders [optional]+ * @param array $outputHeaders [optional]
* If supplied, this array will be filled with the headers from the SOAP response. *
* @return mixed SOAP functions may return one, or multiple values. If only one value is returned diff --git a/sockets/sockets.php b/sockets/sockets.php index 12976d4d6..b88ec3b05 100644 --- a/sockets/sockets.php +++ b/sockets/sockets.php @@ -61,18 +61,18 @@ function socket_addrinfo_explain(AddressInfo $address): array {} /** * Runs the select() system call on the given arrays of sockets with a specified timeout * @link https://php.net/manual/en/function.socket-select.php - * @param array|null &$read+ * @param array|null $read
* The sockets listed in the read array will be * watched to see if characters become available for reading (more * precisely, to see if a read will not block - in particular, a socket * resource is also ready on end-of-file, in which case a * socket_read will return a zero length string). *
- * @param array|null &$write+ * @param array|null $write
* The sockets listed in the write array will be * watched to see if a write will not block. *
- * @param array|null &$except+ * @param array|null $except
* The sockets listed in the except array will be * watched for exceptions. *
@@ -299,7 +299,7 @@ function socket_create_listen(int $port, int $backlog = 128): Socket|false {} * See socket_create for the full list of supported * protocols. * - * @param array &$pair+ * @param array $pair
* Reference to an array in which the two socket resources will be inserted. *
* @return bool TRUE on success or FALSE on failure. @@ -447,7 +447,7 @@ function socket_read(Socket $socket, int $length, int $mode = PHP_BINARY_READ): * A valid socket resource created with socket_create * or socket_accept. * - * @param string &$address+ * @param string $address
* If the given socket is of type AF_INET * or AF_INET6, socket_getsockname * will return the local IP address in appropriate notation (e.g. @@ -461,7 +461,7 @@ function socket_read(Socket $socket, int $length, int $mode = PHP_BINARY_READ): * path (e.g. /var/run/daemon.sock) in the * address parameter. *
- * @param int &$port [optional]+ * @param int $port [optional]
* If provided, this will hold the associated port. *
* @return bool TRUE on success or FALSE on failure. socket_getsockname may also return @@ -478,7 +478,7 @@ function socket_getsockname(Socket $socket, &$address, &$port = null): bool {} * A valid socket resource created with socket_create * or socket_accept. * - * @param string &$address+ * @param string $address
* If the given socket is of type AF_INET or * AF_INET6, socket_getpeername * will return the peers (remote) IP address in @@ -493,7 +493,7 @@ function socket_getsockname(Socket $socket, &$address, &$port = null): bool {} * path (e.g. /var/run/daemon.sock) in the * address parameter. *
- * @param int &$port [optional]+ * @param int $port [optional]
* If given, this will hold the port associated to * address. *
@@ -583,7 +583,7 @@ function socket_bind(Socket $socket, string $address, int $port = 0): bool {} * The socket must be a socket resource previously * created by socket_create(). * - * @param string &$data+ * @param string $data
* The data received will be fetched to the variable specified with * buf. If an error occurs, if the * connection is reset, or if no data is @@ -716,7 +716,7 @@ function socket_sendmsg( * The socket must be a socket resource previously * created by socket_create(). *
- * @param string &$data+ * @param string $data
* The data received will be fetched to the variable specified with * buf. *
@@ -763,13 +763,13 @@ function socket_sendmsg( * * * - * @param string &$address+ * @param string $address
* If the socket is of the type AF_UNIX type, * name is the path to the file. Else, for * unconnected sockets, name is the IP address of, * the remote host, or NULL if the socket is connection-oriented. *
- * @param int &$port [optional]+ * @param int $port [optional]
* This argument only applies to AF_INET and
* AF_INET6 sockets, and specifies the remote port
* from which the data is received. If the socket is connection-oriented,
@@ -787,7 +787,7 @@ function socket_recvfrom(Socket $socket, &$data, int $length, int $flags, &$addr
* Read a message
* @link https://secure.php.net/manual/en/function.socket-recvmsg.php
* @param resource|Socket $socket
- * @param array &$message
+ * @param array $message
* @param int $flags
* @return int|false
* @since 5.5
diff --git a/sodium/sodium.php b/sodium/sodium.php
index 46438364d..5183e6232 100644
--- a/sodium/sodium.php
+++ b/sodium/sodium.php
@@ -569,7 +569,7 @@ function sodium_crypto_generichash_init(
* Update the hash state with some data
* BLAKE2b
* @link https://www.php.net/manual/en/function.sodium-crypto-generichash-update.php
- * @param string &$state
+ * @param string $state
* @param string $message
* @return bool
* @throws SodiumException
@@ -581,7 +581,7 @@ function sodium_crypto_generichash_update(string &$state, string $message): bool
* Get the final hash
* BLAKE2b
* @link https://www.php.net/manual/en/function.sodium-crypto-generichash-final.php
- * @param string &$state
+ * @param string $state
* @param int $length
* @return string
* @throws SodiumException
@@ -957,7 +957,7 @@ function sodium_hex2bin(string $string, string $ignore): string {}
/**
* Increment a string in little-endian
* @link https://www.php.net/manual/en/function.sodium-increment.php
- * @param string &$string
+ * @param string $string
* @return void
* @throws SodiumException
* @since 7.2
@@ -967,7 +967,7 @@ function sodium_increment(string &$string): void {}
/**
* Add the right operand to the left
* @link https://www.php.net/manual/en/function.sodium-add.php
- * @param string &$string1
+ * @param string $string1
* @param string $string2
* @throws SodiumException
* @since 7.2
@@ -1002,7 +1002,7 @@ function sodium_memcmp(string $string1, string $string2): int {}
/**
* Wipe a buffer
* @link https://www.php.net/manual/en/function.sodium-memzero.php
- * @param string &$string
+ * @param string $string
* @throws SodiumException
* @since 7.2
*/
@@ -1138,7 +1138,7 @@ function sodium_crypto_secretstream_xchacha20poly1305_init_push(string $key): ar
function sodium_crypto_secretstream_xchacha20poly1305_init_pull(string $header, string $key): string {}
/**
- * @param string &$state
+ * @param string $state
* @throws SodiumException
* @since 7.2
* @see https://www.php.net/manual/en/function.sodium-crypto-secretstream-xchacha20poly1305-rekey.php
diff --git a/solr/Documents/SolrInputDocument.php b/solr/Documents/SolrInputDocument.php
index 3be945308..62f10d418 100644
--- a/solr/Documents/SolrInputDocument.php
+++ b/solr/Documents/SolrInputDocument.php
@@ -48,7 +48,7 @@ public function addChildDocument(SolrInputDocument $child) {}
* (PECL solr >= 2.3.0)
* Adds an array of child documents
* @link https://php.net/manual/en/solrinputdocument.addchilddocuments.php
- * @param array &$docs
+ * @param array $docs
* An array of SolrInputDocument objects. *
* @throws SolrIllegalArgumentException diff --git a/sqlite3/sqlite3.php b/sqlite3/sqlite3.php index 2b1c37ac0..5c60ae853 100644 --- a/sqlite3/sqlite3.php +++ b/sqlite3/sqlite3.php @@ -422,7 +422,7 @@ public function execute() {} * An string identifying the statement variable to which the * parameter should be bound. * - * @param mixed &$var+ * @param mixed $var
* The parameter to bind to a statement variable. *
* @param int $type [optional]diff --git a/ssh2/ssh2.php b/ssh2/ssh2.php index 2f239d713..8b3c2e91e 100644 --- a/ssh2/ssh2.php +++ b/ssh2/ssh2.php @@ -440,7 +440,7 @@ function ssh2_scp_send($session, $local_file, $remote_file, $create_mode = null) function ssh2_fetch_stream($channel, $streamid) {} /** - * @param array &$var1 + * @param array $var1 */ function ssh2_poll(&$var1) {} diff --git a/standard/standard_0.php b/standard/standard_0.php index 90720886e..914353591 100644 --- a/standard/standard_0.php +++ b/standard/standard_0.php @@ -29,7 +29,7 @@ class php_user_filter * @link https://php.net/manual/en/php-user-filter.filter.php * @param resource $in
is a resource pointing to a bucket brigadebucket objects containing data to be filtered.
* @param resource $outis a resource pointing to a second bucket brigade into which your modified buckets should be placed.
- * @param int &$consumedwhich must always be declared by reference, should be incremented by the length of the data which your filter reads in and alters. In most cases this means you will increment consumed by $bucket->datalen for each $bucket.
+ * @param int $consumedwhich must always be declared by reference, should be incremented by the length of the data which your filter reads in and alters. In most cases this means you will increment consumed by $bucket->datalen for each $bucket.
* @param bool $closingIf the stream is in the process of closing (and therefore this is the last pass through the filterchain), the closing parameter will be set to TRUE * @return int
* The filter() method must return one of @@ -836,7 +836,7 @@ function iptcembed(string $iptc_data, string $filename, int $spool): string|bool * about. It can reference a local file or (configuration permitting) a * remote file using one of the supported streams. *
- * @param array &$image_info [optional]+ * @param array $image_info [optional]
* This optional parameter allows you to extract some extended * information from the image file. Currently, this will return the * different JPG APP markers as an associative array. diff --git a/standard/standard_1.php b/standard/standard_1.php index b62c69688..6f4bd1c68 100644 --- a/standard/standard_1.php +++ b/standard/standard_1.php @@ -781,7 +781,7 @@ function rtrim(string $string, string $characters = " \t\n\r\0\x0B"): string {} * subject, and the return value is an array as * well. *
- * @param int &$count [optional] If passed, this will hold the number of matched and replaced needles. + * @param int $count [optional] If passed, this will hold the number of matched and replaced needles. * @return string|string[] This function returns a string or an array with the replaced values. */ function str_replace(array|string $search, array|string $replace, array|string $subject, &$count): array|string {} @@ -801,7 +801,7 @@ function str_replace(array|string $search, array|string $replace, array|string $ * subject, and the return value is an array as * well. * - * @param int &$count [optional]+ * @param int $count [optional]
* The number of matched and replaced needles will * be returned in count which is passed by * reference. @@ -947,7 +947,7 @@ function strip_tags(string $string, #[LanguageLevelTypeAware(["7.4" => "string[] * @param string $string2
* The second string. *
- * @param float &$percent [optional]+ * @param float $percent [optional]
* By passing a reference as third argument, * similar_text will calculate the similarity in * percent for you. diff --git a/standard/standard_2.php b/standard/standard_2.php index da70c7f24..18d2c95b4 100644 --- a/standard/standard_2.php +++ b/standard/standard_2.php @@ -223,7 +223,7 @@ function ord(string $character): int {} * @param string $string
* The input string. *
- * @param array &$result+ * @param array $result
* If the second parameter arr is present,
* variables are stored in this variable as array elements instead.
* Since 7.2.0 this parameter is not optional.
@@ -644,7 +644,7 @@ function unlink(string $filename, $context): bool {}
* @param string $command
* The command that will be executed. *
- * @param array &$output [optional]+ * @param array $output [optional]
* If the output argument is present, then the * specified array will be filled with every line of output from the * command. Trailing whitespace, such as \n, is not @@ -654,7 +654,7 @@ function unlink(string $filename, $context): bool {} * unset on the array before passing it to * exec. *
- * @param int &$result_code [optional]+ * @param int $result_code [optional]
* If the return_var argument is present * along with the output argument, then the * return status of the executed command will be written to this @@ -676,7 +676,7 @@ function exec(string $command, &$output, &$result_code): string|false {} * @param string $command
* The command that will be executed. *
- * @param int &$result_code [optional]+ * @param int $result_code [optional]
* If the return_var argument is present, then the * return status of the executed command will be written to this * variable. @@ -714,7 +714,7 @@ function escapeshellarg(string $arg): string {} * @param string $command
* The command that will be executed. *
- * @param int &$result_code [optional]+ * @param int $result_code [optional]
* If the return_var argument is present, the * return status of the Unix command will be placed here. *
@@ -769,7 +769,7 @@ function shell_exec(string $command): string|false|null {} * secure manner. It is also useful for reading status information * provided by those programs on auxiliary file descriptors. * - * @param array &$pipes+ * @param array $pipes
* Will be set to an indexed array of file pointers that correspond to * PHP's end of any pipes that are created. *
diff --git a/standard/standard_3.php b/standard/standard_3.php index 4e4340731..4e3cbbba2 100644 --- a/standard/standard_3.php +++ b/standard/standard_3.php @@ -786,7 +786,7 @@ function putenv(string $assignment): bool {} * For example, an longopts element "opt" recognizes an * option --opt. * Prior to PHP5.3.0 this parameter was only available on few systems - * @param int &$rest_index [optional] If the optind parameter is present, then the index where argument parsing stopped will be written to this variable. + * @param int $rest_index [optional] If the optind parameter is present, then the index where argument parsing stopped will be written to this variable. * @return string[]|false[]|false This function will return an array of option / argument pairs or false on * failure. */ diff --git a/standard/standard_4.php b/standard/standard_4.php index d55f0d7c6..bfe58b9f6 100644 --- a/standard/standard_4.php +++ b/standard/standard_4.php @@ -56,7 +56,7 @@ function call_user_func_array(callable $callback, array $args): mixed {} * Call a user method on an specific object * @link https://php.net/manual/en/function.call-user-method.php * @param string $method_name - * @param object &$obj + * @param object $obj * @param mixed ...$parameter [optional] * @return mixed * @removed 7.0 @@ -69,7 +69,7 @@ function call_user_method(string $method_name, object &$obj, ...$parameter): mix * Call a user method given with an array of parameters * @link https://php.net/manual/en/function.call-user-method-array.php * @param string $method_name - * @param object &$obj + * @param object $obj * @param array $params * @return mixed * @removed 7.0 @@ -692,14 +692,14 @@ function header_remove(?string $name): void {} /** * Checks if or where headers have been sent * @link https://php.net/manual/en/function.headers-sent.php - * @param string &$filename [optional]+ * @param string $filename [optional]
* If the optional file and * line parameters are set, * headers_sent will put the PHP source file name * and line number where output started in the file * and line variables. *
- * @param int &$line [optional]+ * @param int $line [optional]
* The line number where the output started. *
* @return bool headers_sent will return false if no HTTP headers @@ -939,8 +939,8 @@ function checkdnsrr(string $hostname, string $type = 'MX'): bool {} * {@see getmxrr} * @link https://php.net/manual/en/function.dns-get-mx.php * @param string $hostname - * @param array &$hosts - * @param array &$weights [optional] + * @param array $hosts + * @param array $weights [optional] * @return bool */ function dns_get_mx(string $hostname, &$hosts, &$weights): bool {} @@ -951,11 +951,11 @@ function dns_get_mx(string $hostname, &$hosts, &$weights): bool {} * @param string $hostname* The Internet host name. *
- * @param array &$hosts+ * @param array $hosts
* A list of the MX records found is placed into the array * mxhosts. *
- * @param array &$weights [optional]+ * @param array $weights [optional]
* If the weight array is given, it will be filled * with the weight information gathered. *
@@ -999,11 +999,11 @@ function getmxrr(string $hostname, &$hosts, &$weights): bool {} * always return every record, the slower DNS_ALL * will collect all records more reliably. * - * @param array &$authoritative_name_servers [optional]+ * @param array $authoritative_name_servers [optional]
* Passed by reference and, if given, will be populated with Resource * Records for the Authoritative Name Servers. *
- * @param array &$additional_records [optional]+ * @param array $additional_records [optional]
* Passed by reference and, if given, will be populated with any * Additional Records. *
diff --git a/standard/standard_5.php b/standard/standard_5.php index 022ef37d9..239038a46 100644 --- a/standard/standard_5.php +++ b/standard/standard_5.php @@ -109,7 +109,7 @@ function gettype(mixed $value): string {} /** * Set the type of a variable * @link https://php.net/manual/en/function.settype.php - * @param mixed &$var+ * @param mixed $var
* The variable being converted. *
* @param string $type@@ -329,7 +329,7 @@ function is_scalar(mixed $value): bool {} * are supposed to have only 2 entries, the first of which is an object * or a string, and the second a string. *
- * @param string &$callable_name [optional]+ * @param string $callable_name [optional]
* Receives the "callable name". In the example below it is * "someClass::someMethod". Note, however, that despite the implication * that someClass::SomeMethod() is a callable static method, this is not diff --git a/standard/standard_6.php b/standard/standard_6.php index 72dba1bea..67d46adba 100644 --- a/standard/standard_6.php +++ b/standard/standard_6.php @@ -10,18 +10,18 @@ * Runs the equivalent of the select() system call on the given * arrays of streams with a timeout specified by tv_sec and tv_usec * @link https://php.net/manual/en/function.stream-select.php - * @param array|null &$read
+ * @param array|null $read
* The streams listed in the read array will be watched to * see if characters become available for reading (more precisely, to see if * a read will not block - in particular, a stream resource is also ready on * end-of-file, in which case an fread will return * a zero length string). *
- * @param array|null &$write+ * @param array|null $write
* The streams listed in the write array will be * watched to see if a write will not block. *
- * @param array|null &$except+ * @param array|null $except
* The streams listed in the except array will be * watched for high priority exceptional ("out-of-band") data arriving. *
@@ -281,10 +281,10 @@ function stream_filter_remove($stream_filter): bool {} * @param string $address* Address to the socket to connect to. *
- * @param int &$error_code [optional]+ * @param int $error_code [optional]
* Will be set to the system level error number if connection fails. *
- * @param string &$error_message [optional]+ * @param string $error_message [optional]
* Will be set to the system level error message if the connection fails. *
* @param float|null $timeout [optional]@@ -338,7 +338,7 @@ function stream_socket_client(string $address, &$error_code, &$error_message, ?f * stream_get_transports. See * for a list of built-in transports. *
- * @param int &$error_code [optional]+ * @param int $error_code [optional]
* If the optional errno and errstr * arguments are present they will be set to indicate the actual system * level error that occurred in the system-level socket(), @@ -350,7 +350,7 @@ function stream_socket_client(string $address, &$error_code, &$error_message, ?f * Note that the errno and * errstr arguments will always be passed by reference. *
- * @param string &$error_message [optional]+ * @param string $error_message [optional]
* See errno description. *
* @param int $flags [optional]@@ -375,7 +375,7 @@ function stream_socket_server(string $address, &$error_code, &$error_message, in * Override the default socket accept timeout. Time should be given in * seconds. *
- * @param string &$peer_name [optional]+ * @param string $peer_name [optional]
* Will be set to the name (address) of the client which connected, if * included and available from the selected transport. *
@@ -432,7 +432,7 @@ function stream_socket_get_name($socket, bool $remote): string|false {} * * * - * @param string &$address [optional]+ * @param string $address [optional]
* If address is provided it will be populated with * the address of the remote socket. *
@@ -664,7 +664,7 @@ function fputcsv( * @param int $operation* operation is one of the following: * LOCK_SH to acquire a shared lock (reader).
- * @param int &$would_block [optional]+ * @param int $would_block [optional]
* The optional third argument is set to 1 if the lock would block * (EWOULDBLOCK errno condition). *
diff --git a/standard/standard_7.php b/standard/standard_7.php index e170f8b11..708866fff 100644 --- a/standard/standard_7.php +++ b/standard/standard_7.php @@ -17,7 +17,7 @@ * @param int $port [optional]* The port number. *
- * @param int &$error_code [optional]+ * @param int $error_code [optional]
* If provided, holds the system level error number that occurred in the * system-level connect() call. *
@@ -28,7 +28,7 @@ * connect() call. This is most likely due to a * problem initializing the socket. * - * @param string &$error_message [optional]+ * @param string $error_message [optional]
* The error message as a string. *
* @param float|null $timeout [optional]
@@ -55,8 +55,8 @@ function fsockopen(string $hostname, int $port = -1, &$error_code, &$error_messa
* @see fsockopen
* @param string $hostname
* @param int $port [optional]
- * @param int &$error_code [optional]
- * @param string &$error_message [optional]
+ * @param int $error_code [optional]
+ * @param string $error_message [optional]
* @param float|null $timeout [optional]
* @return resource|false
*/
diff --git a/standard/standard_8.php b/standard/standard_8.php
index 0c7537d35..c1019b7e9 100644
--- a/standard/standard_8.php
+++ b/standard/standard_8.php
@@ -84,7 +84,7 @@ function header_register_callback(callable $callback): bool {}
* @since 5.4
* @link https://secure.php.net/manual/en/function.getimagesizefromstring.php
* @param string $string The image data, as a string.
- * @param array &$image_info [optional] This optional parameter allows you to extract
+ * @param array $image_info [optional] This optional parameter allows you to extract
* some extended information from the image file. Currently, this will
* return the different JPG APP markers as an associative array.
* Some programs use these APP markers to embed text information in images.
@@ -379,7 +379,7 @@ function ob_list_handlers(): array {}
/**
* Sort an array by key
* @link https://php.net/manual/en/function.ksort.php
- * @param array &$array
+ * @param array $array
* The input array. *
* @param int $flags [optional]@@ -394,7 +394,7 @@ function ksort(array &$array, int $flags): bool {} /** * Sort an array by key in reverse order * @link https://php.net/manual/en/function.krsort.php - * @param array &$array
+ * @param array $array
* The input array. *
* @param int $flags [optional]@@ -409,7 +409,7 @@ function krsort(array &$array, int $flags): bool {} /** * Sort an array using a "natural order" algorithm * @link https://php.net/manual/en/function.natsort.php - * @param array &$array
+ * @param array $array
* The input array. *
* @return bool true on success or false on failure. @@ -419,7 +419,7 @@ function natsort(array &$array): bool {} /** * Sort an array using a case insensitive "natural order" algorithm * @link https://php.net/manual/en/function.natcasesort.php - * @param array &$array+ * @param array $array
* The input array. *
* @return bool true on success or false on failure. @@ -429,7 +429,7 @@ function natcasesort(array &$array): bool {} /** * Sort an array and maintain index association * @link https://php.net/manual/en/function.asort.php - * @param array &$array+ * @param array $array
* The input array. *
* @param int $flags [optional]@@ -444,7 +444,7 @@ function asort(array &$array, int $flags): bool {} /** * Sort an array in reverse order and maintain index association * @link https://php.net/manual/en/function.arsort.php - * @param array &$array
+ * @param array $array
* The input array. *
* @param int $flags [optional]@@ -459,7 +459,7 @@ function arsort(array &$array, int $flags): bool {} /** * Sort an array * @link https://php.net/manual/en/function.sort.php - * @param array &$array
+ * @param array $array
* The input array. *
* @param int $flags [optional]@@ -477,7 +477,7 @@ function sort(array &$array, int $flags): bool {} /** * Sort an array in reverse order * @link https://php.net/manual/en/function.rsort.php - * @param array &$array
+ * @param array $array
* The input array. *
* @param int $flags [optional]@@ -492,7 +492,7 @@ function rsort(array &$array, int $flags): bool {} /** * Sort an array by values using a user-defined comparison function * @link https://php.net/manual/en/function.usort.php - * @param array &$array
+ * @param array $array
* The input array. *
* @param callable $callback@@ -507,7 +507,7 @@ function usort(array &$array, callable $callback): bool {} /** * Sort an array with a user-defined comparison function and maintain index association * @link https://php.net/manual/en/function.uasort.php - * @param array &$array
+ * @param array $array
* The input array. *
* @param callable $callback@@ -521,7 +521,7 @@ function uasort(array &$array, callable $callback): bool {} /** * Sort an array by keys using a user-defined comparison function * @link https://php.net/manual/en/function.uksort.php - * @param array &$array
+ * @param array $array
* The input array. *
* @param callable $callback@@ -542,7 +542,7 @@ function uksort(array &$array, callable $callback): bool {} /** * Shuffle an array * @link https://php.net/manual/en/function.shuffle.php - * @param array &$array
+ * @param array $array
* The array. *
* @return bool true on success or false on failure. @@ -552,7 +552,7 @@ function shuffle(array &$array): bool {} /** * Apply a user function to every member of an array * @link https://php.net/manual/en/function.array-walk.php - * @param array|object &$array+ * @param array|object $array
* The input array. *
* @param callable $callback@@ -586,7 +586,7 @@ function array_walk(object|array &$array, callable $callback, mixed $arg): bool /** * Apply a user function recursively to every member of an array * @link https://php.net/manual/en/function.array-walk-recursive.php - * @param array|object &$array
+ * @param array|object $array
* The input array. *
* @param callable $callback@@ -644,7 +644,7 @@ function count(Countable|array $value, int $mode = COUNT_NORMAL): int {} /** * Set the internal pointer of an array to its last element * @link https://php.net/manual/en/function.end.php - * @param array|object &$array
+ * @param array|object $array
* The array. This array is passed by reference because it is modified by * the function. This means you must pass it a real variable and not * a function returning an array because only actual variables may be @@ -658,7 +658,7 @@ function end(object|array &$array): mixed {} /** * Rewind the internal array pointer * @link https://php.net/manual/en/function.prev.php - * @param array|object &$array
+ * @param array|object $array
* The input array. *
* @return mixed|false the array value in the previous place that's pointed to by @@ -671,7 +671,7 @@ function prev(object|array &$array): mixed {} /** * Advance the internal array pointer of an array * @link https://php.net/manual/en/function.next.php - * @param array|object &$array+ * @param array|object $array
* The array being affected. *
* @return mixed|false the array value in the next place that's pointed to by the @@ -683,7 +683,7 @@ function next(object|array &$array): mixed {} /** * Set the internal pointer of an array to its first element * @link https://php.net/manual/en/function.reset.php - * @param array|object &$array+ * @param array|object $array
* The input array. *
* @return mixed|false the value of the first array element, or false if the array is @@ -812,7 +812,7 @@ function array_search(mixed $needle, array $haystack, bool $strict = false): str /** * Import variables into the current symbol table from an array * @link https://php.net/manual/en/function.extract.php - * @param array &$array+ * @param array $array
* Note that prefix is only required if * extract_type is EXTR_PREFIX_SAME, * EXTR_PREFIX_ALL, EXTR_PREFIX_INVALID @@ -922,7 +922,7 @@ function range($start, $end, int|float $step = 1): array {} /** * Sort multiple or multi-dimensional arrays * @link https://php.net/manual/en/function.array-multisort.php - * @param array &$array
+ * @param array $array
* An array being sorted. *
* @param &...$rest [optional]@@ -944,7 +944,7 @@ function array_multisort( * Since 7.3.0 this function can be called with only one parameter. * For earlier versions at least two parameters are required. * @link https://php.net/manual/en/function.array-push.php - * @param array &$array
+ * @param array $array
* The input array. *
* @param mixed ...$values@@ -961,7 +961,7 @@ function array_push( /** * Pop the element off the end of array * @link https://php.net/manual/en/function.array-pop.php - * @param array &$array
+ * @param array $array
* The array to get the value from. *
* @return mixed|null the last value of array. @@ -974,7 +974,7 @@ function array_pop(array &$array): mixed {} /** * Shift an element off the beginning of array * @link https://php.net/manual/en/function.array-shift.php - * @param array &$array+ * @param array $array
* The input array. *
* @return mixed|null the shifted value, or null if array is @@ -988,7 +988,7 @@ function array_shift(array &$array): mixed {} * Since 7.3.0 this function can be called with only one parameter. * For earlier versions at least two parameters are required. * @link https://php.net/manual/en/function.array-unshift.php - * @param array &$array+ * @param array $array
* The input array. *
* @param mixed ...$values@@ -1001,7 +1001,7 @@ function array_unshift(array &$array, #[PhpStormStubsElementAvailable(from: '5.3 /** * Remove a portion of the array and replace it with something else * @link https://php.net/manual/en/function.array-splice.php - * @param array &$array
+ * @param array $array
* The input array. *
* @param int $offsetdiff --git a/sync/sync.php b/sync/sync.php index bf03270ee..c00c72cb3 100644 --- a/sync/sync.php +++ b/sync/sync.php @@ -89,7 +89,7 @@ public function lock($wait = -1) {} * * Increases the count of a SyncSemaphore object. * - * @param int &$prevcount Returns the previous count of the semaphore. + * @param int $prevcount Returns the previous count of the semaphore. * @return bool TRUE if the unlock operation was successful, FALSE otherwise. * @see SyncSemaphore::lock() * @link https://php.net/manual/en/syncsemaphore.unlock.php diff --git a/sysvmsg/sysvmsg.php b/sysvmsg/sysvmsg.php index cc6131cf1..6664c8771 100644 --- a/sysvmsg/sysvmsg.php +++ b/sysvmsg/sysvmsg.php @@ -45,7 +45,7 @@ function msg_get_queue(int $key, int $permissions = 0666) {} * indicating that you should try to send your message again a little * later on. *
- * @param int &$error_code [optional] + * @param int $error_code [optional] * @return bool TRUE on success or FALSE on failure. ** Upon successful completion the message queue data structure is updated as @@ -72,7 +72,7 @@ function msg_send(#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], defaul * by specifying MSG_IPC_NOWAIT in the * flags parameter. *
- * @param int &$received_message_type+ * @param int $received_message_type
* The type of the message that was received will be stored in this * parameter. *
@@ -82,7 +82,7 @@ function msg_send(#[LanguageLevelTypeAware(["8.0" => "SysvMessageQueue"], defaul * than this size the function will fail (unless you set * flags as described below). * - * @param mixed &$message+ * @param mixed $message
* The received message will be stored in message, * unless there were errors receiving the message. *
diff --git a/uv/uv_functions.php b/uv/uv_functions.php index aec2d7cbc..d16b35b75 100644 --- a/uv/uv_functions.php +++ b/uv/uv_functions.php @@ -1209,8 +1209,8 @@ function uv_tty_init($loop, $fd, int $readable) {} /** * @param resource $tty - * @param int &$width - * @param int &$height + * @param int $width + * @param int $height * * @return int */ diff --git a/wincache/wincache.php b/wincache/wincache.php index a04f42cf5..c29448b21 100644 --- a/wincache/wincache.php +++ b/wincache/wincache.php @@ -277,7 +277,7 @@ function wincache_ucache_clear() {} * get decremented. If the argument is a floating point number it will be truncated * to nearest integer. The variable associated with the key should be of type long, * otherwise the function fails and returns FALSE. - * @param bool|null &$success [optional] + * @param bool|null $success [optional] *Will be set to TRUE on success and FALSE on failure.
* @return int|false Returns the decremented value on success and FALSE on failure. */ @@ -312,7 +312,7 @@ function wincache_ucache_exists($key) {} * @param string|string[] $keyThe key that was used to store the variable in the cache. * key is case sensitive. key can be an array of keys. In this case the return * value will be an array of values of each element in the key array.
- * @param bool|null &$success [optional] + * @param bool|null $success [optional] *Will be set to TRUE on success and FALSE on failure.
* @return mixedIf key is a string, the function returns the value of the variable * stored with that key. The success is set to TRUE on success and to FALSE on failure.
@@ -333,7 +333,7 @@ function wincache_ucache_get($key, &$success) {} * get incremented. If the argument is a floating point number it will be truncated * to nearest integer. The variable associated with the key should be of type long, * otherwise the function fails and returns FALSE. - * @param bool|null &$success [optional] + * @param bool|null $success [optional] *Will be set to TRUE on success and FALSE on failure.
* @return int|false Returns the incremented value on success and FALSE on failure. */ diff --git a/xml/xml.php b/xml/xml.php index 1ec9f916d..31207567b 100644 --- a/xml/xml.php +++ b/xml/xml.php @@ -351,10 +351,10 @@ function xml_parse(#[LanguageLevelTypeAware(["8.0" => "XMLParser"], default: "re * @param string $data* A string containing the XML data. *
- * @param array &$values+ * @param array $values
* An array containing the values of the XML data *
- * @param array &$index [optional]+ * @param array $index [optional]
* An array containing pointers to the location of the appropriate values in the $values. *
* @return int xml_parse_into_struct returns 0 for failure and 1 for diff --git a/xmlrpc/xmlrpc.php b/xmlrpc/xmlrpc.php index 8d904f355..1c92b2221 100644 --- a/xmlrpc/xmlrpc.php +++ b/xmlrpc/xmlrpc.php @@ -28,7 +28,7 @@ function xmlrpc_decode($xml, $encoding = "iso-8859-1") {} * Decodes XML into native PHP types * @link https://php.net/manual/en/function.xmlrpc-decode-request.php * @param string $xml - * @param string &$method + * @param string $method * @param string $encoding [optional] * @return mixed */ @@ -64,7 +64,7 @@ function xmlrpc_get_type($value) {} /** * Sets xmlrpc type, base64 or datetime, for a PHP string value * @link https://php.net/manual/en/function.xmlrpc-set-type.php - * @param string &$value+ * @param string $value
* Value to set the type *
* @param string $typediff --git a/yaf/yaf.php b/yaf/yaf.php index 326b65b5b..1f665ecb3 100644 --- a/yaf/yaf.php +++ b/yaf/yaf.php @@ -2553,7 +2553,7 @@ public function display($tpl, $tpl_vars = null) {} * @link https://secure.php.net/manual/en/yaf-view-simple.assignref.php * * @param string $name A string name which will be used to access the value in the template. - * @param mixed &$value mixed value + * @param mixed $value mixed value * * @return Yaf_View_Simple */ diff --git a/yaf/yaf_namespace.php b/yaf/yaf_namespace.php index 1a884b06d..7c7da7e58 100644 --- a/yaf/yaf_namespace.php +++ b/yaf/yaf_namespace.php @@ -2470,7 +2470,7 @@ public function display($tpl, array $tpl_vars = null) {} * @link https://secure.php.net/manual/en/yaf-view-simple.assignref.php * * @param string $name A string name which will be used to access the value in the template. - * @param mixed &$value mixed value + * @param mixed $value mixed value * * @return \Yaf\View\Simple */ diff --git a/yaml/yaml.php b/yaml/yaml.php index 761d00f65..0bccc2a57 100644 --- a/yaml/yaml.php +++ b/yaml/yaml.php @@ -90,7 +90,7 @@ function yaml_emit($data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_B * @link https://php.net/manual/en/function.yaml-parse-file.php * @param string $filename Path to the file. * @param int $pos [optional] Document to extract from stream (-1 for all documents, 0 for first document, ...). - * @param int &$ndocs [optional] If ndocs is provided, then it is filled with the number of documents found in stream. + * @param int $ndocs [optional] If ndocs is provided, then it is filled with the number of documents found in stream. * @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details. * @return mixed|false Returns the value encoded in input in appropriate PHP type or FALSE on failure. If pos is -1 an array will be returned with one entry for each document found in the stream. */ @@ -102,7 +102,7 @@ function yaml_parse_file($filename, $pos = 0, &$ndocs = null, array $callbacks = * @link https://php.net/manual/en/function.yaml-parse-url.php * @param string $url url should be of the form "scheme://...". PHP will search for a protocol handler (also known as a wrapper) for that scheme. If no wrappers for that protocol are registered, PHP will emit a notice to help you track potential problems in your script and then continue as though filename specifies a regular file. * @param int $pos [optional] Document to extract from stream (-1 for all documents, 0 for first document, ...). - * @param int &$ndocs [optional] If ndocs is provided, then it is filled with the number of documents found in stream. + * @param int $ndocs [optional] If ndocs is provided, then it is filled with the number of documents found in stream. * @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details. * @return mixed|false Returns the value encoded in input in appropriate PHP type or FALSE on failure. If pos is -1 an array will be returned with one entry for each document found in the stream. */ @@ -114,7 +114,7 @@ function yaml_parse_url($url, $pos = 0, &$ndocs = null, array $callbacks = []) { * @link https://php.net/manual/en/function.yaml-parse.php * @param string $input The string to parse as a YAML document stream. * @param int $pos [optional] Document to extract from stream (-1 for all documents, 0 for first document, ...). - * @param int &$ndocs [optional] If ndocs is provided, then it is filled with the number of documents found in stream. + * @param int $ndocs [optional] If ndocs is provided, then it is filled with the number of documents found in stream. * @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details. * @return mixed|false Returns the value encoded in input in appropriate PHP type or FALSE on failure. If pos is -1 an array will be returned with one entry for each document found in the stream. */ diff --git a/zend/zend.php b/zend/zend.php index fa2ca15b1..979b0b2f1 100644 --- a/zend/zend.php +++ b/zend/zend.php @@ -156,7 +156,7 @@ public function getAllApplicationIDs() {} * @param int $end_time UNIX timestamp. Get only jobs finished before $end_time. * @param int $index Get jobs starting from the $index-th place. * @param int $count Get only $count jobs. - * @param int &$total Pass by reference. Return the total number of jobs statisifed the query criteria. + * @param int $total Pass by reference. Return the total number of jobs statisifed the query criteria. * * @return array of jobs. */ diff --git a/zip/zip.php b/zip/zip.php index fa4cd1af9..a681fd34a 100644 --- a/zip/zip.php +++ b/zip/zip.php @@ -1243,8 +1243,8 @@ public function setExternalAttributesName( * Retrieve the external attributes of an entry defined by its name * @link https://www.php.net/manual/en/ziparchive.getexternalattributesname.php * @param string $name Name of the entry - * @param int &$opsys On success, receive the operating system code defined by one of the ZipArchive::OPSYS_ constants. - * @param int &$attr On success, receive the external attributes. Value depends on operating system. + * @param int $opsys On success, receive the operating system code defined by one of the ZipArchive::OPSYS_ constants. + * @param int $attr On success, receive the external attributes. Value depends on operating system. * @param int $flags [optional] If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged attributes are returned. * @return bool Returns TRUE on success or FALSE on failure. */ @@ -1275,8 +1275,8 @@ public function setExternalAttributesIndex( * Retrieve the external attributes of an entry defined by its index * @link https://www.php.net/manual/en/ziparchive.getexternalattributesindex.php * @param int $index Index of the entry. - * @param int &$opsys On success, receive the operating system code defined by one of the ZipArchive::OPSYS_ constants. - * @param int &$attr On success, receive the external attributes. Value depends on operating system. + * @param int $opsys On success, receive the operating system code defined by one of the ZipArchive::OPSYS_ constants. + * @param int $attr On success, receive the external attributes. Value depends on operating system. * @param int $flags [optional] If flags is set to ZipArchive::FL_UNCHANGED, the original unchanged attributes are returned. * @return bool Returns TRUE on success or FALSE on failure. */ diff --git a/zmq/zmq.php b/zmq/zmq.php index 8a90a76c9..0850fa3d2 100644 --- a/zmq/zmq.php +++ b/zmq/zmq.php @@ -610,8 +610,8 @@ public function getLastErrors() {} * * @link https://secure.php.net/manual/en/zmqpoll.poll.php * - * @param array &$readable Array where readable ZMQSockets/PHP streams are returned. The array will be cleared at the beginning of the operation. - * @param array &$writable Array where writable ZMQSockets/PHP streams are returned. The array will be cleared at the beginning of the operation. + * @param array $readable Array where readable ZMQSockets/PHP streams are returned. The array will be cleared at the beginning of the operation. + * @param array $writable Array where writable ZMQSockets/PHP streams are returned. The array will be cleared at the beginning of the operation. * @param int $timeout Timeout for the operation. -1 means that poll waits until at least one item has activity. Please note that starting from version 1.0.0 the poll timeout is defined in milliseconds, rather than microseconds. * * @throws ZMQPollException if polling fails diff --git a/zookeeper/zookeeper.php b/zookeeper/zookeeper.php index 60237c38e..62e0d57bc 100644 --- a/zookeeper/zookeeper.php +++ b/zookeeper/zookeeper.php @@ -149,7 +149,7 @@ public function delete($path, $version = -1) {} * @param string $path * @param string $data * @param int $version - * @param array &$stat + * @param array $stat * * @return bool * @@ -165,7 +165,7 @@ public function set($path, $data, $version = -1, &$stat = null) {} * * @param string $path * @param callable $watcher_cb - * @param array &$stat + * @param array $stat * @param int $max_size * * @return string