Fix some type according to review
This commit is contained in:
parent
ea4d53c2d4
commit
cfa446c565
|
@ -2384,7 +2384,7 @@ function curl_multi_add_handle ($mh, $ch) {}
|
|||
* @link https://php.net/manual/en/function.curl-multi-remove-handle.php
|
||||
* @param resource $mh
|
||||
* @param resource $ch
|
||||
* @return int Returns 0 on success, or one of the CURLM_XXX error codes.
|
||||
* @return int|false On success, returns one of the CURLM_XXX error codes, false on failure.
|
||||
* @since 5.0
|
||||
*/
|
||||
function curl_multi_remove_handle ($mh, $ch) {}
|
||||
|
|
|
@ -135,7 +135,7 @@ function enchant_broker_set_ordering ($broker, $tag, $ordering) {}
|
|||
* @param resource $broker <p>
|
||||
* Broker resource
|
||||
* </p>
|
||||
* @return array
|
||||
* @return array|false
|
||||
*/
|
||||
function enchant_broker_describe ($broker) {}
|
||||
|
||||
|
@ -163,7 +163,7 @@ function enchant_dict_check ($dict, $word) {}
|
|||
* @param string $word <p>
|
||||
* Word to use for the suggestions.
|
||||
* </p>
|
||||
* @return array Will returns an array of suggestions if the word is bad spelled.
|
||||
* @return array|false Will returns an array of suggestions if the word is bad spelled.
|
||||
*/
|
||||
function enchant_dict_suggest ($dict, $word) {}
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ function geoip_isp_by_name ($hostname) {}
|
|||
* various constants defined with
|
||||
* this extension (ie: GEOIP_*_EDITION).
|
||||
* </p>
|
||||
* @return bool|false <b>TRUE</b> is database exists, <b>FALSE</b> if not found, or <b>NULL</b> on error.
|
||||
* @return bool|null <b>TRUE</b> is database exists, <b>FALSE</b> if not found, or <b>NULL</b> on error.
|
||||
*/
|
||||
function geoip_db_avail ($database) {}
|
||||
|
||||
|
|
|
@ -2230,7 +2230,7 @@ function http_negotiate_content_type (array $supported, array &$result = null )
|
|||
* @param int $status [optional] <p>
|
||||
* custom response status code
|
||||
* </p>
|
||||
* @return void
|
||||
* @return void returns false or exits with the specified redirection status code
|
||||
*/
|
||||
function http_redirect ($url = null, array $params = null , $session = null, $status = null) {}
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ function ibase_drop_db ($connection = null) {}
|
|||
* </p>
|
||||
* @param int $bind_args [optional] <p>
|
||||
* </p>
|
||||
* @return resource|false If the query raises an error, returns false. If it is successful and
|
||||
* @return resource|bool If the query raises an error, returns false. If it is successful and
|
||||
* there is a (possibly empty) result set (such as with a SELECT query),
|
||||
* returns a result identifier. If the query was successful and there were
|
||||
* no results, returns true.
|
||||
|
@ -257,7 +257,7 @@ function ibase_prepare ($query) {}
|
|||
* @param mixed $bind_arg [optional] <p>
|
||||
* </p>
|
||||
* @param mixed $_ [optional]
|
||||
* @return resource|false If the query raises an error, returns false. If it is successful and
|
||||
* @return resource|bool If the query raises an error, returns false. If it is successful and
|
||||
* there is a (possibly empty) result set (such as with a SELECT query),
|
||||
* returns a result identifier. If the query was successful and there were
|
||||
* no results, returns true.
|
||||
|
|
|
@ -396,7 +396,7 @@ function mcrypt_generic_deinit ($td) {}
|
|||
* @param resource $td <p>
|
||||
* The encryption descriptor.
|
||||
* </p>
|
||||
* @return int|false If the self test succeeds it returns false. In case of an error, it
|
||||
* @return int|bool If the self test succeeds it returns false. In case of an error, it
|
||||
* returns true.
|
||||
* @since 4.0.2
|
||||
* @since 5.0
|
||||
|
|
|
@ -1162,7 +1162,7 @@ class MongoCollection {
|
|||
* @link https://secure.php.net/manual/en/mongocollection.ensureindex.php
|
||||
* @param array $keys Field or fields to use as index.
|
||||
* @param array $options [optional] This parameter is an associative array of the form array("optionname" => <boolean>, ...).
|
||||
* @return bool always true
|
||||
* @return true always true
|
||||
*/
|
||||
public function ensureIndex(array $keys, array $options = array()) {}
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ function mysql_select_db ($database_name, $link_identifier = null) {}
|
|||
* Data inside the query should be properly escaped.
|
||||
* </p>
|
||||
* @param resource $link_identifier [optional]
|
||||
* @return resource|false For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset,
|
||||
* @return resource|bool For SELECT, SHOW, DESCRIBE, EXPLAIN and other statements returning resultset,
|
||||
* <b>mysql_query</b>
|
||||
* returns a resource on success, or false on
|
||||
* error.
|
||||
|
|
|
@ -1009,9 +1009,9 @@ function sodium_randombytes_buf(
|
|||
* Generate a 16-bit integer
|
||||
* /dev/urandom
|
||||
*
|
||||
* @return int|string
|
||||
* @return int
|
||||
*/
|
||||
function sodium_randombytes_random16(): string {
|
||||
function sodium_randombytes_random16(): int {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
|
@ -620,9 +620,9 @@ function zend_send_file($filename, $mime_type, $custom_headers) {}
|
|||
|
||||
/**
|
||||
* Send a buffer using ZDS
|
||||
* @param $buffer string the content that will be send
|
||||
* @param $mime_type string[optional] MIME type of the buffer, if omitted, taken from configured MIME types file
|
||||
* @param $custom_headers string[optional] user defined headers that will be send instead of regular ZDS headers. few basic essential headers will be send anyway
|
||||
* @param string $buffer the content that will be send
|
||||
* @param string $mime_type [optional] MIME type of the buffer, if omitted, taken from configured MIME types file
|
||||
* @param string $custom_headers [optional] user defined headers that will be send instead of regular ZDS headers. few basic essential headers will be send anyway
|
||||
* @return void|false FALSE if sending file failed, does not return otherwise
|
||||
*/
|
||||
function zend_send_buffer($buffer, $mime_type, $custom_headers) {}
|
||||
|
|
Loading…
Reference in New Issue