lowercase keywords null/true/false

This commit is contained in:
Ivan Fedorov 2020-06-18 21:13:09 +03:00 committed by Ivan Fedorov
parent e5bab422a6
commit d822267c1c
26 changed files with 201 additions and 200 deletions

View File

@ -14,6 +14,7 @@ return PhpCsFixer\Config::create()
'no_trailing_whitespace_in_comment' => true,
'no_whitespace_in_blank_line' => true,
'single_blank_line_at_eof' => true,
'constant_case' => true
// 'unix_line_endings' => true,
])
->setFinder($finder)

View File

@ -431,7 +431,7 @@ function function_exists ($function_name) {}
* @param bool $autoload [optional] Whether to autoload if the original class is not found.
* @return bool true on success or false on failure.
*/
function class_alias ($original, $alias, $autoload = TRUE) {}
function class_alias ($original, $alias, $autoload = true) {}
/**
* Returns an array with the names of included or required files
@ -473,7 +473,7 @@ function get_required_files () {}
* belongs to a class which is a subclass of
* <i>class_name</i>, false otherwise.
*/
function is_subclass_of ($object, $class_name, $allow_string = TRUE) {}
function is_subclass_of ($object, $class_name, $allow_string = true) {}
/**
* Checks if the object is of this class or has this class as one of its parents
@ -491,7 +491,7 @@ function is_subclass_of ($object, $class_name, $allow_string = TRUE) {}
* @return bool <b>TRUE</b> if the object is of this class or has this class as one of
* its parents, <b>FALSE</b> otherwise.
*/
function is_a ($object, $class_name, $allow_string = FALSE) {}
function is_a ($object, $class_name, $allow_string = false) {}
/**
* Get the default properties of the class
@ -662,7 +662,7 @@ function get_declared_traits() {}
* the user defined ones using $arr["user"] (see example
* below).
*/
function get_defined_functions ($exclude_disabled = FALSE) {}
function get_defined_functions ($exclude_disabled = false) {}
/**
* Returns an array of all defined variables

View File

@ -24,7 +24,7 @@ class Lexer
/**
* @var bool Start of input flag.
*/
public $bol = FALSE ;
public $bol = false ;
/**
* @var int Lexer flags.

View File

@ -25,7 +25,7 @@ class RLexer
/**
* @var bool Start of input flag.
*/
public $bol = FALSE ;
public $bol = false ;
/**
* @var int Lexer flags.

View File

@ -11,7 +11,7 @@ class Stack
* @var bool Whether the stack is empty, readonly.
* @property-read
*/
public $empty = TRUE;
public $empty = true;
/**
* @var int Stack size, readonly.

View File

@ -25,7 +25,7 @@ function opcache_compile_file($file) { }
* cache is disabled.
* @since 5.5
*/
function opcache_invalidate($script, $force = FALSE) { }
function opcache_invalidate($script, $force = false) { }
/**
* (PHP 5 &gt;= 5.5.0, PECL ZendOpcache &gt;= 7.0.0 )<br/>
@ -44,7 +44,7 @@ function opcache_reset() { }
* @return array <p>Returns an array of information, optionally containing script specific state information</p>
* @since 5.5
*/
function opcache_get_status ($get_scripts = TRUE) {}
function opcache_get_status ($get_scripts = true) {}
/**
* (PHP 5 &gt;= 5.5.5, PECL ZendOpcache &gt;= 7.0.2 )<br/>

View File

@ -515,7 +515,7 @@ namespace Couchbase {
* @see https://developer.couchbase.com/documentation/server/5.0/rest-api/rbac.html
* More details
*/
public function role($role, $bucket = NULL) {}
public function role($role, $bucket = null) {}
}
/**
@ -1276,7 +1276,7 @@ namespace Couchbase {
* @see https://github.com/couchbaselabs/sdk-rfcs/blob/master/rfc/0034-health-check.md
* SDK RFC #34, which describes the feature and report layout.
*/
public function ping($services = 0, $reportId = NULL) {}
public function ping($services = 0, $reportId = null) {}
/**
* Collect and return information about state of internal network connections.
@ -1287,7 +1287,7 @@ namespace Couchbase {
* @see https://github.com/couchbaselabs/sdk-rfcs/blob/master/rfc/0034-health-check.md
* SDK RFC #34, which describes the feature and report layout.
*/
public function diag($reportId = NULL) {}
public function diag($reportId = null) {}
/**
* Encrypt fields inside specified document.

View File

@ -50,7 +50,7 @@ class Cipher {
* @param int $mode
* @param string $key_size
*/
public function __construct($algorithm, $mode = NULL, $key_size = NULL) {}
public function __construct($algorithm, $mode = null, $key_size = null) {}
/**
* Returns cipher algorithm string
@ -492,7 +492,7 @@ abstract class KDF {
* @param int $length
* @param string $salt
*/
public function __construct($length, $salt = NULL) {}
public function __construct($length, $salt = null) {}
/**
* Get key length
@ -565,7 +565,7 @@ class PBKDF2 extends KDF {
* @param string $salt
* @param int $iterations
*/
public function __construct($hashAlgorithm, $length, $salt = NULL, $iterations = 1000) {}
public function __construct($hashAlgorithm, $length, $salt = null, $iterations = 1000) {}
/**
* Deriver hash for password

View File

@ -37,7 +37,7 @@
* a CUBRID connection identifier on success or false on failure.
* </p>
*/
function cubrid_connect ($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '', $new_link = FALSE) {}
function cubrid_connect ($host, $port, $dbname, $userid = 'PUBLIC', $passwd = '', $new_link = false) {}
/**
* (PHP 5, CUBRID &gt;= 8.3.1)<br/>
@ -69,7 +69,7 @@ function cubrid_connect ($host, $port, $dbname, $userid = 'PUBLIC', $passwd = ''
* a CUBRID connection identifier on success or false on failure.
* </p>
*/
function cubrid_connect_with_url ($conn_url, $userid = 'PUBLIC', $passwd = '', $new_link = FALSE) {}
function cubrid_connect_with_url ($conn_url, $userid = 'PUBLIC', $passwd = '', $new_link = false) {}
/**
* (PHP 5, CUBRID &gt;= 8.3.1)<br/>
@ -1361,7 +1361,7 @@ function cubrid_lob_size ($lob_identifier) {}
* FALSE, when process is unsuccessful.
* </p>
*/
function cubrid_lob2_bind ($req_identifier, $bind_index, $bind_value, $bind_value_type = NULL) {}
function cubrid_lob2_bind ($req_identifier, $bind_index, $bind_value, $bind_value_type = null) {}
/**
* (PHP 5, CUBRID &gt;= 8.4.1)<br/>
@ -1431,7 +1431,7 @@ function cubrid_lob2_import ($lob_identifier, $file_name) {}
* Lob identifier when it is successful. FALSE on failure.
* </p>
*/
function cubrid_lob2_new ($conn_identifier = NULL, $type = "BLOB") {}
function cubrid_lob2_new ($conn_identifier = null, $type = "BLOB") {}
/**
* (PHP 5, CUBRID &gt;= 8.4.1)<br/>

View File

@ -115,7 +115,7 @@ class DateTimeImmutable implements DateTimeInterface {
* </p> <p></p></blockquote>
* @throws Exception Emits Exception in case of an error.
*/
public function __construct($time = "now", $timezone = NULL) { }
public function __construct($time = "now", $timezone = null) { }
/**
* (PHP 5 &gt;=5.5.0)<br/>

View File

@ -152,7 +152,7 @@ function fann_create_shortcut_array($num_layers, $layers)
*
* @return resource|false Returns a neural network resource on success, or false on error.
*/
function fann_create_shortcut($num_layers, $num_neurons1, $num_neurons2, $_ = NULL)
function fann_create_shortcut($num_layers, $num_neurons1, $num_neurons2, $_ = null)
{
}
@ -182,7 +182,7 @@ function fann_create_sparse_array($connection_rate, $num_layers, $layers)
*
* @return resource|false Returns a neural network resource on success, or false on error.
*/
function fann_create_sparse($connection_rate, $num_layers, $num_neurons1, $num_neurons2, $_ = NULL)
function fann_create_sparse($connection_rate, $num_layers, $num_neurons1, $num_neurons2, $_ = null)
{
}
@ -210,7 +210,7 @@ function fann_create_standard_array($num_layers, $layers)
*
* @return resource|false Returns a neural network resource on success, or false on error.
*/
function fann_create_standard($num_layers, $num_neurons1, $num_neurons2, $_ = NULL)
function fann_create_standard($num_layers, $num_neurons1, $num_neurons2, $_ = null)
{
}

View File

@ -151,7 +151,7 @@ function finfo_file ($finfo, $file_name, $options = null, $context = null) {}
* @return string a textual description of the <i>string</i>
* argument, or <b>FALSE</b> if an error occurred.
*/
function finfo_buffer ($finfo ,$string, $options = FILEINFO_NONE, $context = NULL) {}
function finfo_buffer ($finfo ,$string, $options = FILEINFO_NONE, $context = null) {}
/**
* Detect MIME Content-type for a file

View File

@ -59,7 +59,7 @@ class gnupg {
* @return array|false On success, this function returns information about the signature.
* On failure, this function returns false.
*/
function verify($signed_text, $signature, &$plaintext = NULL)
function verify($signed_text, $signature, &$plaintext = null)
{
}
@ -84,7 +84,7 @@ class gnupg {
*
* @return bool
*/
function addsignkey($fingerprint, $passphrase = NULL)
function addsignkey($fingerprint, $passphrase = null)
{
}

View File

@ -267,7 +267,7 @@ function hash_hmac_algos() {}
* binary representation of the derived key is returned.
* @since 5.5
*/
function hash_pbkdf2 ($algo, $password, $salt, $iterations, $length = 0, $raw_output = FALSE) {}
function hash_pbkdf2 ($algo, $password, $salt, $iterations, $length = 0, $raw_output = false) {}
/**
* Generates a key

View File

@ -42,19 +42,19 @@ class Client implements \SplSubject, \Countable {
*
* @var \SplObjectStorage
*/
private $observers = NULL;
private $observers = null;
/**
* Set options.
*
* @var array
*/
protected $options = NULL;
protected $options = null;
/**
* Request/response history.
*
* @var \http\Message
*/
protected $history = NULL;
protected $history = null;
/**
* Whether to record history in http\Client::$history.
*
@ -73,7 +73,7 @@ class Client implements \SplSubject, \Countable {
* @throws \http\Exception\UnexpectedValueException
* @throws \http\Exception\RuntimeException
*/
function __construct(string $driver = NULL, string $persistent_handle_id = NULL) {}
function __construct(string $driver = null, string $persistent_handle_id = null) {}
/**
* Add custom cookies.
* See http\Client::setCookies().
@ -82,7 +82,7 @@ class Client implements \SplSubject, \Countable {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Client self.
*/
function addCookies(array $cookies = NULL) {}
function addCookies(array $cookies = null) {}
/**
* Add specific SSL options.
* See http\Client::setSslOptions(), http\Client::setOptions() and http\Client\Curl\$ssl options.
@ -91,7 +91,7 @@ class Client implements \SplSubject, \Countable {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Client self.
*/
function addSslOptions(array $ssl_options = NULL) {}
function addSslOptions(array $ssl_options = null) {}
/**
* Implements SplSubject. Attach another observer.
* Attached observers will be notified with progress of each transfer.
@ -193,7 +193,7 @@ class Client implements \SplSubject, \Countable {
* @throws \http\Exception\RuntimeException
* @return \http\Client self.
*/
function enqueue(\http\Client\Request $request, callable $cb = NULL) {}
function enqueue(\http\Client\Request $request, callable $cb = null) {}
/**
* Get a list of available configuration options and their default values.
*
@ -272,7 +272,7 @@ class Client implements \SplSubject, \Countable {
* @return \http\Client\Response|NULL \http\Client\Response the stored response for the request, or the last that was received.
* or NULL if no more response was available to pop, when no $request was given.
*/
function getResponse(\http\Client\Request $request = NULL) {}
function getResponse(\http\Client\Request $request = null) {}
/**
* Retrieve priorly set SSL options.
* See http\Client::getOptions() and http\Client::setSslOptions().
@ -298,7 +298,7 @@ class Client implements \SplSubject, \Countable {
* @throws \http\Exception\UnexpectedValueException
* @return \http\Client self.
*/
function notify(\http\Client\Request $request = NULL, $progress = NULL) {}
function notify(\http\Client\Request $request = null, $progress = null) {}
/**
* Perform outstanding transfer actions.
* See http\Client::wait() for the completing interface.
@ -318,7 +318,7 @@ class Client implements \SplSubject, \Countable {
* @throws \http\Exception\RuntimeException
* @return \http\Client self.
*/
function requeue(\http\Client\Request $request, callable $cb = NULL) {}
function requeue(\http\Client\Request $request, callable $cb = null) {}
/**
* Reset the client to the initial state.
*
@ -342,7 +342,7 @@ class Client implements \SplSubject, \Countable {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Client self.
*/
function setCookies(array $cookies = NULL) {}
function setCookies(array $cookies = null) {}
/**
* Set client debugging callback.
*
@ -366,7 +366,7 @@ class Client implements \SplSubject, \Countable {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Client self.
*/
function setOptions(array $options = NULL) {}
function setOptions(array $options = null) {}
/**
* Specifically set SSL options.
* See http\Client::setOptions() and http\Client\Curl\$ssl options.
@ -375,7 +375,7 @@ class Client implements \SplSubject, \Countable {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Client self.
*/
function setSslOptions(array $ssl_options = NULL) {}
function setSslOptions(array $ssl_options = null) {}
/**
* Wait for $timeout seconds for transfers to provide data.
* This is the completion call to http\Client::once().
@ -410,7 +410,7 @@ class Cookie {
* @throws \http\Exception\InvalidArgumentException
* @throws \http\Exception\RuntimeException
*/
function __construct($cookies = NULL, int $flags = 0, array $allowed_extras = NULL) {}
function __construct($cookies = null, int $flags = 0, array $allowed_extras = null) {}
/**
* String cast handler. Alias of http\Cookie::toString().
*
@ -548,7 +548,7 @@ class Cookie {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Cookie self.
*/
function setCookies(array $cookies = NULL) {}
function setCookies(array $cookies = null) {}
/**
* Set the effective domain of the cookie list.
* See http\Cookie::setPath().
@ -557,7 +557,7 @@ class Cookie {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Cookie self.
*/
function setDomain(string $value = NULL) {}
function setDomain(string $value = null) {}
/**
* Set the traditional expires timestamp.
* See http\Cookie::setMaxAge() for a safer alternative.
@ -579,7 +579,7 @@ class Cookie {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Cookie self.
*/
function setExtra(string $extra_name, string $extra_value = NULL) {}
function setExtra(string $extra_name, string $extra_value = null) {}
/**
* (Re)set the extra attributes.
* See http\Cookie::addExtras().
@ -588,7 +588,7 @@ class Cookie {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Cookie self.
*/
function setExtras(array $extras = NULL) {}
function setExtras(array $extras = null) {}
/**
* Set the flags to specified $value.
* See http\Cookie::SECURE and http\Cookie::HTTPONLY constants.
@ -616,7 +616,7 @@ class Cookie {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Cookie self.
*/
function setPath(string $path = NULL) {}
function setPath(string $path = null) {}
/**
* Get the cookie list as array.
*
@ -648,7 +648,7 @@ class Env {
* @throws \http\Exception\UnexpectedValueException
* @return \http\Message\Body instance representing the request body
*/
function getRequestBody(string $body_class_name = NULL) {}
function getRequestBody(string $body_class_name = null) {}
/**
* Retrieve one or all headers of the current HTTP request.
*
@ -657,7 +657,7 @@ class Env {
* or string the compound header when $header_name was found
* or array of all headers if $header_name was not specified
*/
function getRequestHeader(string $header_name = NULL) {}
function getRequestHeader(string $header_name = null) {}
/**
* Get the HTTP response code to send.
*
@ -672,7 +672,7 @@ class Env {
* or NULL if the header was not found
* or array of all response headers, if $header_name was not specified
*/
function getResponseHeader(string $header_name = NULL) {}
function getResponseHeader(string $header_name = null) {}
/**
* Retrieve a list of all known HTTP response status.
*
@ -703,7 +703,7 @@ class Env {
* @return NULL|string NULL if negotiation fails.
* or string the closest match negotiated, or the default (first entry of $supported).
*/
function negotiate(string $params, array $supported, string $prim_typ_sep = NULL, array &$result = NULL) {}
function negotiate(string $params, array $supported, string $prim_typ_sep = null, array &$result = null) {}
/**
* Negotiate the client's preferred character set.
*
@ -715,7 +715,7 @@ class Env {
* @return NULL|string NULL if negotiation fails.
* or string the negotiated character set.
*/
function negotiateCharset(array $supported, array &$result = NULL) {}
function negotiateCharset(array $supported, array &$result = null) {}
/**
* Negotiate the client's preferred MIME content type.
*
@ -727,7 +727,7 @@ class Env {
* @return NULL|string NULL if negotiation fails.
* or string the negotiated content type.
*/
function negotiateContentType(array $supported, array &$result = NULL) {}
function negotiateContentType(array $supported, array &$result = null) {}
/**
* Negotiate the client's preferred encoding.
*
@ -739,7 +739,7 @@ class Env {
* @return NULL|string NULL if negotiation fails.
* or string the negotiated encoding.
*/
function negotiateEncoding(array $supported, array &$result = NULL) {}
function negotiateEncoding(array $supported, array &$result = null) {}
/**
* Negotiate the client's preferred language.
*
@ -751,7 +751,7 @@ class Env {
* @return NULL|string NULL if negotiation fails.
* or string the negotiated language.
*/
function negotiateLanguage(array $supported, array &$result = NULL) {}
function negotiateLanguage(array $supported, array &$result = null) {}
/**
* Set the HTTP response code to send.
*
@ -772,7 +772,7 @@ class Env {
* @param bool $replace
* @return bool Success.
*/
function setResponseHeader(string $header_name, $header_value = NULL, int $response_code = NULL, bool $replace = NULL) {}
function setResponseHeader(string $header_name, $header_value = null, int $response_code = null, bool $replace = null) {}
}
/**
* The http extension's Exception interface.
@ -812,13 +812,13 @@ class Header implements \Serializable {
*
* @var string
*/
public $name = NULL;
public $name = null;
/**
* The value of the HTTP header.
*
* @var
*/
public $value = NULL;
public $value = null;
/**
* Create an http\Header instance for use of simple matching or negotiation. If the value of the header is an array it may be compounded to a single comma separated string.
*
@ -827,7 +827,7 @@ class Header implements \Serializable {
*
* # Throws:
*/
function __construct(string $name = NULL, $value = NULL) {}
function __construct(string $name = null, $value = null) {}
/**
* String cast handler. Alias of http\Header::serialize().
*
@ -843,7 +843,7 @@ class Header implements \Serializable {
* @param int $flags The modus operandi. See http\Params constants.
* @return \http\Params instance
*/
function getParams($ps = NULL, $as = NULL, $vs = NULL, int $flags = NULL) {}
function getParams($ps = null, $as = null, $vs = null, int $flags = null) {}
/**
* Match the HTTP header's value against provided $value according to $flags.
*
@ -851,7 +851,7 @@ class Header implements \Serializable {
* @param int $flags The modus operandi. See http\Header constants.
* @return bool whether $value matches the header value according to $flags.
*/
function match(string $value, int $flags = NULL) {}
function match(string $value, int $flags = null) {}
/**
* Negotiate the header's value against a list of supported values in $supported.
* Negotiation operation is adopted according to the header name, i.e. if the
@ -867,7 +867,7 @@ class Header implements \Serializable {
* @return NULL|string NULL if negotiation fails.
* or string the closest match negotiated, or the default (first entry of $supported).
*/
function negotiate(array $supported, array &$result = NULL) {}
function negotiate(array $supported, array &$result = null) {}
/**
* Parse HTTP headers.
* See also http\Header\Parser.
@ -877,7 +877,7 @@ class Header implements \Serializable {
* @return array|false array of parsed headers, where the elements are instances of $header_class if specified.
* or false if parsing fails.
*/
function parse(string $header, string $header_class = NULL) {}
function parse(string $header, string $header_class = null) {}
/**
* Implements Serializable.
*
@ -926,7 +926,7 @@ class Message implements \Countable, \Serializable, \Iterator {
*
* @var \http\Message\Body
*/
protected $body = NULL;
protected $body = null;
/**
* The request method if the message is of type request.
*
@ -956,13 +956,13 @@ class Message implements \Countable, \Serializable, \Iterator {
*
* @var string
*/
protected $httpVersion = NULL;
protected $httpVersion = null;
/**
* Any message headers.
*
* @var array
*/
protected $headers = NULL;
protected $headers = null;
/**
* Any parent message.
*
@ -977,7 +977,7 @@ class Message implements \Countable, \Serializable, \Iterator {
* @throws \http\Exception\InvalidArgumentException
* @throws \http\Exception\BadMessageException
*/
function __construct($message = NULL, bool $greedy = true) {}
function __construct($message = null, bool $greedy = true) {}
/**
* Retrieve the message serialized to a string.
* Alias of http\Message::toString().
@ -1048,7 +1048,7 @@ class Message implements \Countable, \Serializable, \Iterator {
* @return mixed|\http\Header mixed the header value if $into_class is NULL.
* or \http\Header descendant.
*/
function getHeader(string $header, string $into_class = NULL) {}
function getHeader(string $header, string $into_class = null) {}
/**
* Retrieve all message headers.
* See http\Message::setHeaders() and http\Message::getHeader().
@ -1135,7 +1135,7 @@ class Message implements \Countable, \Serializable, \Iterator {
* @param string $boundary A reference where the boundary string will be stored.
* @return bool whether this is a message with a multipart "Content-Type".
*/
function isMultipart(string &$boundary = NULL) {}
function isMultipart(string &$boundary = null) {}
/**
* Implements Iterator.
* See http\Message::current() and http\Message::rewind().
@ -1205,7 +1205,7 @@ class Message implements \Countable, \Serializable, \Iterator {
* @param mixed $value The header's value. Removes the header if NULL.
* @return \http\Message self.
*/
function setHeader(string $header, $value = NULL) {}
function setHeader(string $header, $value = null) {}
/**
* Set the message headers.
* See http\Message::getHeaders() and http\Message::addHeaders().
@ -1217,7 +1217,7 @@ class Message implements \Countable, \Serializable, \Iterator {
* @param array $headers The message's headers.
* @return \http\Message null.
*/
function setHeaders(array $headers = NULL) {}
function setHeaders(array $headers = null) {}
/**
* Set the HTTP protocol version of the message.
* See http\Message::getHttpVersion().
@ -1392,7 +1392,7 @@ class Params implements \ArrayAccess {
*
* @var array
*/
public $params = NULL;
public $params = null;
/**
* The parameter separator(s).
*
@ -1428,7 +1428,7 @@ class Params implements \ArrayAccess {
* @throws \http\Exception\InvalidArgumentException
* @throws \http\Exception\RuntimeException
*/
function __construct($params = NULL, $ps = NULL, $as = NULL, $vs = NULL, int $flags = NULL) {}
function __construct($params = null, $ps = null, $as = null, $vs = null, int $flags = null) {}
/**
* String cast handler. Alias of http\Params::toString().
* Returns a stringified version of the parameters.
@ -1509,20 +1509,20 @@ class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate {
*
* @var \http\QueryString
*/
private $instance = NULL;
private $instance = null;
/**
* The data.
*
* @var array
*/
private $queryArray = NULL;
private $queryArray = null;
/**
* Create an independent querystring instance.
*
* @param mixed $params The query parameters to use or parse.
* @throws \http\Exception\BadQueryStringException
*/
function __construct($params = NULL) {}
function __construct($params = null) {}
/**
* Get the string representation of the querystring (x-www-form-urlencoded).
*
@ -1544,7 +1544,7 @@ class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate {
* or mixed the querystring value cast to $type if $type was specified and the key $name exists.
* or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
*/
function get(string $name = NULL, $type = NULL, $defval = NULL, bool $delete = false) {}
function get(string $name = null, $type = null, $defval = null, bool $delete = false) {}
/**
* Retrieve an array value with at offset $name.
*
@ -1554,7 +1554,7 @@ class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate {
* @return array|mixed array the (casted) value.
* or mixed $defval if offset $name does not exist.
*/
function getArray(string $name, $defval = NULL, bool $delete = false) {}
function getArray(string $name, $defval = null, bool $delete = false) {}
/**
* Retrieve a boolean value at offset $name.
*
@ -1564,7 +1564,7 @@ class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate {
* @return bool|mixed bool the (casted) value.
* or mixed $defval if offset $name does not exist.
*/
function getBool(string $name, $defval = NULL, bool $delete = false) {}
function getBool(string $name, $defval = null, bool $delete = false) {}
/**
* Retrieve a float value at offset $name.
*
@ -1574,7 +1574,7 @@ class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate {
* @return float|mixed float the (casted) value.
* or mixed $defval if offset $name does not exist.
*/
function getFloat(string $name, $defval = NULL, bool $delete = false) {}
function getFloat(string $name, $defval = null, bool $delete = false) {}
/**
* Retrieve the global querystring instance referencing $_GET.
*
@ -1591,7 +1591,7 @@ class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate {
* @return int|mixed int the (casted) value.
* or mixed $defval if offset $name does not exist.
*/
function getInt(string $name, $defval = NULL, bool $delete = false) {}
function getInt(string $name, $defval = null, bool $delete = false) {}
/**
* Implements IteratorAggregate.
*
@ -1608,7 +1608,7 @@ class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate {
* @return object|mixed object the (casted) value.
* or mixed $defval if offset $name does not exist.
*/
function getObject(string $name, $defval = NULL, bool $delete = false) {}
function getObject(string $name, $defval = null, bool $delete = false) {}
/**
* Retrieve a string value with at offset $name.
*
@ -1618,7 +1618,7 @@ class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate {
* @return string|mixed string the (casted) value.
* or mixed $defval if offset $name does not exist.
*/
function getString(string $name, $defval = NULL, bool $delete = false) {}
function getString(string $name, $defval = null, bool $delete = false) {}
/**
* Set additional $params to a clone of this instance.
* See http\QueryString::set().
@ -1630,7 +1630,7 @@ class QueryString implements \Serializable, \ArrayAccess, \IteratorAggregate {
* @throws \http\Exception\BadQueryStringException
* @return \http\QueryString clone.
*/
function mod($params = NULL) {}
function mod($params = null) {}
/**
* Implements ArrayAccess.
*
@ -1804,49 +1804,49 @@ class Url {
*
* @var string
*/
public $scheme = NULL;
public $scheme = null;
/**
* Authenticating user.
*
* @var string
*/
public $user = NULL;
public $user = null;
/**
* Authentication password.
*
* @var string
*/
public $pass = NULL;
public $pass = null;
/**
* Hostname/domain.
*
* @var string
*/
public $host = NULL;
public $host = null;
/**
* Port.
*
* @var string
*/
public $port = NULL;
public $port = null;
/**
* URL path.
*
* @var string
*/
public $path = NULL;
public $path = null;
/**
* URL querystring.
*
* @var string
*/
public $query = NULL;
public $query = null;
/**
* URL fragment (hash).
*
* @var string
*/
public $fragment = NULL;
public $fragment = null;
/**
* Create an instance of an http\Url.
*
@ -1861,7 +1861,7 @@ class Url {
* @throws \http\Exception\InvalidArgumentException
* @throws \http\Exception\BadUrlException
*/
function __construct($old_url = NULL, $new_url = NULL, int $flags = 0) {}
function __construct($old_url = null, $new_url = null, int $flags = 0) {}
/**
* String cast handler. Alias of http\Url::toString().
*
@ -2053,7 +2053,7 @@ class Request extends \http\Message {
*
* @var array
*/
protected $options = NULL;
protected $options = null;
/**
* Create a new client request message to be enqueued and sent by http\Client.
*
@ -2064,7 +2064,7 @@ class Request extends \http\Message {
* @throws \http\Exception\InvalidArgumentException
* @throws \http\Exception\UnexpectedValueException
*/
function __construct(string $meth = NULL, string $url = NULL, array $headers = NULL, \http\Message\Body $body = NULL) {}
function __construct(string $meth = null, string $url = null, array $headers = null, \http\Message\Body $body = null) {}
/**
* Add querystring data.
* See http\Client\Request::setQuery() and http\Message::setRequestUrl().
@ -2083,7 +2083,7 @@ class Request extends \http\Message {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Client\Request self.
*/
function addSslOptions(array $ssl_options = NULL) {}
function addSslOptions(array $ssl_options = null) {}
/**
* Extract the currently set "Content-Type" header.
* See http\Client\Request::setContentType().
@ -2135,7 +2135,7 @@ class Request extends \http\Message {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Client\Request self.
*/
function setOptions(array $options = NULL) {}
function setOptions(array $options = null) {}
/**
* (Re)set the querystring.
* See http\Client\Request::addQuery() and http\Message::setRequestUrl().
@ -2154,7 +2154,7 @@ class Request extends \http\Message {
* @throws \http\Exception\InvalidArgumentException
* @return \http\Client\Request self.
*/
function setSslOptions(array $ssl_options = NULL) {}
function setSslOptions(array $ssl_options = null) {}
}
/**
* The http\Client\Response class represents an HTTP message the client returns as answer from a server to an http\Client\Request.
@ -2168,7 +2168,7 @@ class Response extends \http\Message {
* @param array $allowed_extras List of keys treated as extras.
* @return array list of http\Cookie instances.
*/
function getCookies(int $flags = 0, array $allowed_extras = NULL) {}
function getCookies(int $flags = 0, array $allowed_extras = null) {}
/**
* Retrieve transfer related information after the request has completed.
* See http\Client::getTransferInfo().
@ -2180,7 +2180,7 @@ class Response extends \http\Message {
* @return object|mixed object stdClass instance with all transfer info if $name was not given.
* or mixed the specific transfer info for $name.
*/
function getTransferInfo(string $name = NULL) {}
function getTransferInfo(string $name = null) {}
}
namespace http\Client\Curl;
/**
@ -2359,11 +2359,11 @@ const LIBZ = '1.2.11';
/**
* Version string of the c-ares library, e.g. "1.11.0".
*/
const ARES = NULL;
const ARES = null;
/**
* Version string of the IDN library, e.g. "1.32".
*/
const IDN = NULL;
const IDN = null;
namespace http\Encoding;
/**
* Base class for encoding stream implementations.
@ -2533,39 +2533,39 @@ class Enbrotli extends \http\Encoding\Stream {
/**
* Default compression level.
*/
const LEVEL_DEF = NULL;
const LEVEL_DEF = null;
/**
* Least compression level.
*/
const LEVEL_MIN = NULL;
const LEVEL_MIN = null;
/**
* Greatest compression level.
*/
const LEVEL_MAX = NULL;
const LEVEL_MAX = null;
/**
* Default window bits.
*/
const WBITS_DEF = NULL;
const WBITS_DEF = null;
/**
* Minimum window bits.
*/
const WBITS_MIN = NULL;
const WBITS_MIN = null;
/**
* Maximum window bits.
*/
const WBITS_MAX = NULL;
const WBITS_MAX = null;
/**
* Default compression mode.
*/
const MODE_GENERIC = NULL;
const MODE_GENERIC = null;
/**
* Compression mode for UTF-8 formatted text.
*/
const MODE_TEXT = NULL;
const MODE_TEXT = null;
/**
* Compression mode used in WOFF 2.0.
*/
const MODE_FONT = NULL;
const MODE_FONT = null;
/**
* Encode data with brotli encoding.
*
@ -2599,25 +2599,25 @@ class Request extends \http\Message {
*
* @var \http\QueryString
*/
protected $query = NULL;
protected $query = null;
/**
* The request's form parameters. ($_POST)
*
* @var \http\QueryString
*/
protected $form = NULL;
protected $form = null;
/**
* The request's form uploads. ($_FILES)
*
* @var array
*/
protected $files = NULL;
protected $files = null;
/**
* The request's cookies. ($_COOKIE)
*
* @var array
*/
protected $cookie = NULL;
protected $cookie = null;
/**
* Create an instance of the server's current HTTP request.
*
@ -2644,7 +2644,7 @@ class Request extends \http\Message {
* or mixed the querystring value cast to $type if $type was specified and the key $name exists.
* or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
*/
function getCookie(string $name = NULL, $type = NULL, $defval = NULL, bool $delete = false) {}
function getCookie(string $name = null, $type = null, $defval = null, bool $delete = false) {}
/**
* Retrieve the uploaded files list ($_FILES).
*
@ -2666,7 +2666,7 @@ class Request extends \http\Message {
* or mixed the querystring value cast to $type if $type was specified and the key $name exists.
* or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
*/
function getForm(string $name = NULL, $type = NULL, $defval = NULL, bool $delete = false) {}
function getForm(string $name = null, $type = null, $defval = null, bool $delete = false) {}
/**
* Retrieve an URL query value ($_GET).
*
@ -2682,7 +2682,7 @@ class Request extends \http\Message {
* or mixed the querystring value cast to $type if $type was specified and the key $name exists.
* or string the querystring value if the key $name exists and $type is not specified or equals http\QueryString::TYPE_STRING.
*/
function getQuery(string $name = NULL, $type = NULL, $defval = NULL, bool $delete = false) {}
function getQuery(string $name = null, $type = null, $defval = null, bool $delete = false) {}
}
/**
* The http\Env\Response class' instances represent the server's current HTTP response.
@ -2715,61 +2715,61 @@ class Response extends \http\Message {
*
* @var \http\Env\Request
*/
protected $request = NULL;
protected $request = null;
/**
* The response's MIME content type.
*
* @var string
*/
protected $contentType = NULL;
protected $contentType = null;
/**
* The response's MIME content disposition.
*
* @var string
*/
protected $contentDisposition = NULL;
protected $contentDisposition = null;
/**
* See http\Env\Response::CONTENT_ENCODING_* constants.
*
* @var int
*/
protected $contentEncoding = NULL;
protected $contentEncoding = null;
/**
* How the client should treat this response in regards to caching.
*
* @var string
*/
protected $cacheControl = NULL;
protected $cacheControl = null;
/**
* A custom ETag.
*
* @var string
*/
protected $etag = NULL;
protected $etag = null;
/**
* A "Last-Modified" time stamp.
*
* @var int
*/
protected $lastModified = NULL;
protected $lastModified = null;
/**
* Any throttling delay.
*
* @var int
*/
protected $throttleDelay = NULL;
protected $throttleDelay = null;
/**
* The chunk to send every $throttleDelay seconds.
*
* @var int
*/
protected $throttleChunk = NULL;
protected $throttleChunk = null;
/**
* The response's cookies.
*
* @var array
*/
protected $cookies = NULL;
protected $cookies = null;
/**
* Create a new env response message instance.
*
@ -2809,7 +2809,7 @@ class Response extends \http\Message {
* @param resource $stream A writable stream to send the response through.
* @return bool success.
*/
function send($stream = NULL) {}
function send($stream = null) {}
/**
* Make suggestions to the client how it should cache the response.
*
@ -3011,7 +3011,7 @@ class Parser {
* @throws \http\Exception\InvalidArgumentException
* @return int http\Header\Parser::STATE_* constant.
*/
function parse(string $data, int $flags, array &$header = NULL) {}
function parse(string $data, int $flags, array &$header = null) {}
/**
* Parse a stream.
*
@ -3039,7 +3039,7 @@ class Body implements \Serializable {
* @throws \http\Exception\InvalidArgumentException
* @throws \http\Exception\UnexpectedValueException
*/
function __construct($stream = NULL) {}
function __construct($stream = null) {}
/**
* String cast handler.
*
@ -3089,7 +3089,7 @@ class Body implements \Serializable {
* @throws \http\Exception\RuntimeException
* @return \http\Message\Body self.
*/
function addForm(array $fields = NULL, array $files = NULL) {}
function addForm(array $fields = null, array $files = null) {}
/**
* Add a part to a multipart body.
*
@ -3144,7 +3144,7 @@ class Body implements \Serializable {
* @return int|object int the requested stat field.
* or object stdClass instance holding all four stat fields.
*/
function stat(string $field = NULL) {}
function stat(string $field = null) {}
/**
* Stream the message body through a callback.
*

View File

@ -1850,7 +1850,7 @@ class Imagick implements Iterator, Countable {
* </p>
* @return bool <b>TRUE</b> on success.
*/
public function writeImage ($filename = NULL) {}
public function writeImage ($filename = null) {}
/**
* (PECL imagick 0.9.0-0.9.9)<br/>

View File

@ -1919,7 +1919,7 @@ class IntlDateFormatter {
* The locale to use, or <b>NULL</b> to use the {@link "https://secure.php.net/manual/en/intl.configuration.php#ini.intl.default-locale"default one}.</p>
* @return string|false A string with result or <b>FALSE</b> on failure.
*/
public static function formatObject($object, $format = NULL, $locale = NULL) { }
public static function formatObject($object, $format = null, $locale = null) { }
/**
* (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
@ -2237,7 +2237,7 @@ class IntlGregorianCalendar extends IntlCalendar {
* @param string $locale
* @return IntlGregorianCalendar
*/
public static function createInstance($timeZone = NULL, $locale = NULL) { }
public static function createInstance($timeZone = null, $locale = null) { }
/**
* @param double $change
@ -2357,7 +2357,7 @@ class IntlCalendar {
* </p>
* @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. Failure can only occur is invalid arguments are provided.
*/
public function clear($field = NULL) { }
public function clear($field = null) { }
/**
* (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
@ -2413,7 +2413,7 @@ class IntlCalendar {
* The created {@link https://secure.php.net/manual/en/class.intlcalendar.php IntlCalendar} instance or <b>NULL</b> on
* failure.
*/
public static function createInstance($timeZone = NULL, $locale = NULL) { }
public static function createInstance($timeZone = null, $locale = null) { }
/**
* (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
@ -2794,7 +2794,7 @@ class IntlCalendar {
* a date out of bounds on non-lenient mode; use {@link https://secure.php.net/manual/en/intl.configuration.php#ini.intl.use-exceptions exceptions} or query
* {@link https://secure.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate.</p>
*/
public function isWeekend($date = NULL) { }
public function isWeekend($date = null) { }
/**
* (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
@ -2861,7 +2861,7 @@ class IntlCalendar {
*</p>
* @return bool Returns <b>TRUE</b> on success and <b>FALSE</b> on failure.
*/
public function set($year, $month, $dayOfMonth = NULL, $hour = NULL, $minute = NULL, $second = NULL) { }
public function set($year, $month, $dayOfMonth = null, $hour = null, $minute = null, $second = null) { }
/**
* (PHP 5 >=5.5.0 PECL intl >= 3.0.0a1)<br/>
@ -4319,7 +4319,7 @@ function datefmt_format(MessageFormatter $mf, $value) { }
* The locale to use, or NULL to use the default one.</p>
* @return string|false The formatted string or, if an error occurred, <b>FALSE</b>.
*/
function datefmt_format_object($object, $format = NULL, $locale = NULL) { }
function datefmt_format_object($object, $format = null, $locale = null) { }
/**
* (PHP 5 &gt;= 5.3.0, PECL intl &gt;= 1.0.0)<br/>
@ -4671,7 +4671,7 @@ function idn_to_utf8($domain, $options = 0, $variant = INTL_IDNA_VARIANT_2003, a
* failure.
* @since 5.5
*/
function intlcal_create_instance($timeZone = NULL, $locale = NULL) { }
function intlcal_create_instance($timeZone = null, $locale = null) { }
/**
* (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
@ -4888,7 +4888,7 @@ function intlcal_before(IntlCalendar $calendarObject, IntlCalendar $calendar) {
* @return bool Returns <b>TRUE</b> on success and <b>FALSE</b> on failure.
* @since 5.5
*/
function intlcal_set($calendar, $year, $month, $dayOfMonth = NULL, $hour = NULL, $minute = NULL, $second = NULL) { }
function intlcal_set($calendar, $year, $month, $dayOfMonth = null, $hour = null, $minute = null, $second = null) { }
/**
* (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
@ -4928,7 +4928,7 @@ function intlcal_roll($calendar, $field, $amountOrUpOrDown) { }
* @return bool Returns <b>TRUE</b> on success or <b>FALSE</b> on failure. Failure can only occur is invalid arguments are provided.
* @since 5.5
*/
function intlcal_clear($calendar, $field = NULL) { }
function intlcal_clear($calendar, $field = null) { }
/**
* (PHP 5 &gt;=5.5.0 PECL intl &gt;= 3.0.0a1)<br/>
@ -5324,7 +5324,7 @@ function intlcal_is_equivalent_to(IntlCalendar $calendarObject, IntlCalendar $ca
* {@link https://secure.php.net/manual/en/function.intl-get-error-code.php intl_get_error_code()} to disambiguate.</p>
* @since 5.5
*/
function intlcal_is_weekend($calendar, $date = NULL) { }
function intlcal_is_weekend($calendar, $date = null) { }
/**
@ -5712,7 +5712,7 @@ function intltz_use_daylight_time($obj) { }
* @return IntlGregorianCalendar
* @since 5.5
*/
function intlgregcal_create_instance($timeZone = NULL, $locale = NULL) { }
function intlgregcal_create_instance($timeZone = null, $locale = null) { }
/**
* @param IntlGregorianCalendar $obj

View File

@ -24,7 +24,7 @@ class LevelDB{
'max_open_files' => 1000,
'block_restart_interval' => 16,
'compression' => LEVELDB_SNAPPY_COMPRESSION,
'comparator' => NULL, // any callable parameter return 0, -1, 1
'comparator' => null, // any callable parameter return 0, -1, 1
], array $read_options = [
'verify_check_sum' => false, //may be set to true to force checksum verification of all data that is read from the file system on behalf of a particular read. By default, no such verification is done.
'fill_cache' => true, //When performing a bulk read, the application may set this to false to disable the caching so that the data processed by the bulk read does not end up displacing most of the cached contents.

View File

@ -24,10 +24,10 @@ class MongoClient
const RP_NEAREST = "nearest" ;
/* Properties */
public $connected = FALSE ;
public $status = NULL ;
protected $server = NULL ;
protected $persistent = NULL ;
public $connected = false ;
public $status = null ;
protected $server = null ;
protected $persistent = null ;
/* Methods */
/**
@ -100,7 +100,7 @@ class MongoClient
* </ul>
* @throws MongoConnectionException
*/
public function __construct($server = "mongodb://localhost:27017", array $options = array("connect" => TRUE), $driver_options) {}
public function __construct($server = "mongodb://localhost:27017", array $options = array("connect" => true), $driver_options) {}
/**
* (PECL mongo &gt;= 1.3.0)<br/>
@ -571,7 +571,7 @@ class MongoDB {
* @param bool $backup_original_files [optional] <p>If original files should be backed up.</p>
* @return array <p>Returns db response.</p>
*/
public function repair($preserve_cloned_files = FALSE, $backup_original_files = FALSE) {}
public function repair($preserve_cloned_files = false, $backup_original_files = false) {}
/**
* (PECL mongo &gt;= 0.9.0)<br/>
@ -820,7 +820,7 @@ class MongoCollection {
/**
* @var MongoDB
*/
public $db = NULL ;
public $db = null ;
/**
* @var int <p>
@ -973,7 +973,7 @@ class MongoCollection {
* @param bool $scan_data Only validate indices, not the base collection.
* @return array Returns the database's evaluation of this object.
*/
public function validate($scan_data = FALSE) {}
public function validate($scan_data = false) {}
/**
* Inserts an array into the collection
@ -1123,7 +1123,7 @@ class MongoCollection {
* @param array $query An optional query parameters
* @return array|false Returns an array of distinct values, or <b>FALSE</b> on failure
*/
public function distinct ($key, array $query = NULL) {}
public function distinct ($key, array $query = null) {}
/**
* Update a document and return it
@ -1134,7 +1134,7 @@ class MongoCollection {
* @param array $options An array of options to apply, such as remove the match document from the DB and return it.
* @return array Returns the original document, or the modified document when new is set.
*/
public function findAndModify (array $query, array $update = NULL, array $fields = NULL, array $options = NULL) {}
public function findAndModify (array $query, array $update = null, array $fields = null, array $options = null) {}
/**
* Querys this collection, returning a single element
@ -1263,7 +1263,7 @@ class MongoCursor implements Iterator {
* @link https://php.net/manual/en/class.mongocursor.php#mongocursor.props.slaveokay
* @var bool $slaveOkay
*/
public static $slaveOkay = FALSE;
public static $slaveOkay = false;
/**
* @var int <p>
@ -1514,7 +1514,7 @@ class MongoCursor implements Iterator {
* @param bool $all Send cursor limit and skip information to the count function, if applicable.
* @return int The number of documents returned by this cursor's query.
*/
public function count($all = FALSE) {}
public function count($all = false) {}
/**
* Sets the fields for a query
@ -1890,7 +1890,7 @@ class MongoId {
* @var string $id <p> Note: The property name begins with a $ character. It may be accessed using
* {@link https://php.net/manual/en/language.types.string.php#language.types.string.parsing.complex complex variable parsed syntax} (e.g. $mongoId->{'$id'}).</p>
*/
public $id = NULL;
public $id = null;
/**
* (PECL mongo &gt;= 0.8.0)
@ -1898,7 +1898,7 @@ class MongoId {
* @link https://secure.php.net/manual/en/mongoid.construct.php
* @param string $id [optional] A string to use as the id. Must be 24 hexadecimal characters. If an invalid string is passed to this constructor, the constructor will ignore it and create a new id value.
*/
public function __construct($id = NULL) {}
public function __construct($id = null) {}
/**
* (PECL mongo &gt;= 0.8.0)

View File

@ -19,7 +19,7 @@ function msgpack_serialize($value) {}
* </p>
* @return mixed
*/
function msgpack_unserialize($str, $object=NULL) {}
function msgpack_unserialize($str, $object=null) {}
/**
* Alias of msgpack_serialize

View File

@ -625,7 +625,7 @@ function openssl_digest($data, $method, $raw_output = false) { }
* </p>
* @return string|false the encrypted string on success or false on failure.
*/
function openssl_encrypt($data, $method, $key, $options = 0, $iv = "", &$tag = NULL, $aad = "", $tag_length = 16) { }
function openssl_encrypt($data, $method, $key, $options = 0, $iv = "", &$tag = null, $aad = "", $tag_length = 16) { }
/**
* Decrypts data

View File

@ -66,7 +66,7 @@ class COPY {
* @throws \pq\Exception\BadMethodCallException
* @throws \pq\Exception\RuntimeException
*/
function __construct(\pq\Connection $conn, string $expression, int $direction, string $options = NULL) {}
function __construct(\pq\Connection $conn, string $expression, int $direction, string $options = null) {}
/**
* End the COPY operation to the server during pq\Result::COPY_IN state.
*
@ -75,7 +75,7 @@ class COPY {
* @throws \pq\Exception\BadMethodCallException
* @throws \pq\Exception\RuntimeException
*/
function end(string $error = NULL) {}
function end(string $error = null) {}
/**
* Receive data from the server during pq\Result::COPY_OUT state.
*
@ -274,14 +274,14 @@ class Connection {
* @public
* @var string
*/
public $encoding = NULL;
public $encoding = null;
/**
* Whether to fetch [asynchronous](pq/Connection/: Asynchronous Usage) results in unbuffered mode, i.e. each row generates a distinct pq\Result.
*
* @public
* @var bool
*/
public $unbuffered = FALSE;
public $unbuffered = false;
/**
* Whether to set the underlying socket nonblocking, useful for asynchronous handling of writes. See also pq\Connection::flush().
*
@ -290,7 +290,7 @@ class Connection {
* @public
* @var bool
*/
public $nonblocking = FALSE;
public $nonblocking = false;
/**
* The database name of the connection.
*
@ -368,14 +368,14 @@ class Connection {
* @public
* @var bool
*/
public $defaultTransactionReadonly = FALSE;
public $defaultTransactionReadonly = false;
/**
* Default transaction deferrability for future pq\Transaction instances.
*
* @public
* @var bool
*/
public $defaultTransactionDeferrable = FALSE;
public $defaultTransactionDeferrable = false;
/**
* Create a new PostgreSQL connection.
* See also [General Usage](pq/Connection/: General Usage).
@ -453,7 +453,7 @@ class Connection {
* @throws \pq\Exception\BadMethodCallException
* @throws \pq\Exception\RuntimeException
*/
function execAsync(string $query, callable $callback = NULL) {}
function execAsync(string $query, callable $callback = null) {}
/**
* [Execute an SQL query](pq/Connection: Executing Queries) with properly escaped parameters substituted.
*
@ -465,7 +465,7 @@ class Connection {
* @throws \pq\Exception\DomainException
* @return \pq\Result
*/
function execParams(string $query, array $params, array $types = NULL) {}
function execParams(string $query, array $params, array $types = null) {}
/**
* [Asynchronously](pq/Connection/: Asynchronous Usage) [execute an SQL query](pq/Connection: Executing Queries) with properly escaped parameters substituted.
*
@ -481,7 +481,7 @@ class Connection {
* @throws \pq\Exception\RuntimeException
* @throws \pq\Exception\BadMethodCallException
*/
function execParamsAsync(string $query, array $params, array $types = NULL, callable $cb = NULL) {}
function execParamsAsync(string $query, array $params, array $types = null, callable $cb = null) {}
/**
* Flush pending writes on the connection.
* Call after sending any command or data on a nonblocking connection.
@ -595,7 +595,7 @@ class Connection {
* @throws \pq\Exception\RuntimeException
* @return \pq\Statement a prepared statement instance.
*/
function prepare(string $name, string $query, array $types = NULL) {}
function prepare(string $name, string $query, array $types = null) {}
/**
* [Asynchronously](pq/Connection/: Asynchronous Usage) prepare a named statement for later execution with pq\Statement::exec().
*
@ -610,7 +610,7 @@ class Connection {
* @throws \pq\Exception\RuntimeException
* @return \pq\Statement a prepared statement instance.
*/
function prepareAsync(string $name, string $query, array $types = NULL) {}
function prepareAsync(string $name, string $query, array $types = null) {}
/**
* Quote a string for safe use in a query.
* The result is truncated at any zero byte and wrapped in single quotes.
@ -678,7 +678,7 @@ class Connection {
* @throws \pq\Exception\RuntimeException
* @return \pq\Transaction a begun transaction instance.
*/
function startTransaction(int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = FALSE, bool $deferrable = FALSE) {}
function startTransaction(int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {}
/**
* [Asynchronously](pq/Connection/: Asynchronous Usage) begin a transaction.
*
@ -697,7 +697,7 @@ class Connection {
* @throws \pq\Exception\RuntimeException
* @return \pq\Transaction an asynchronously begun transaction instance.
*/
function startTransactionAsync(int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = FALSE, bool $deferrable = FALSE) {}
function startTransactionAsync(int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {}
/**
* Trace protocol communication with the server.
*
@ -709,7 +709,7 @@ class Connection {
* @throws \pq\Exception\BadMethodCallException
* @return bool success.
*/
function trace($stream = NULL) {}
function trace($stream = null) {}
/**
* Unescape bytea data retrieved from the server.
*
@ -876,7 +876,7 @@ class Cursor {
* @throws \pq\Exception\BadMethodCallException
* @throws \pq\Exception\RuntimeException
*/
function fetchAsync(string $spec = "1", callable $callback = NULL) {}
function fetchAsync(string $spec = "1", callable $callback = null) {}
/**
* Move the cursor.
* See pq\Cursor::fetch().
@ -903,7 +903,7 @@ class Cursor {
* @throws \pq\Exception\BadMethodCallException
* @throws \pq\Exception\RuntimeException
*/
function moveAsync(string $spec = "1", callable $callback = NULL) {}
function moveAsync(string $spec = "1", callable $callback = null) {}
/**
* Reopen a cursor.
* This is a no-op on already open cursors.
@ -1053,7 +1053,7 @@ class LOB {
* @throws \pq\Exception\RuntimeException
* @return string the data read.
*/
function read(int $length = 0x1000, int &$read = NULL) {}
function read(int $length = 0x1000, int &$read = null) {}
/**
* Seek to a position within the *large object*.
*
@ -1289,7 +1289,7 @@ class Result implements \Traversable, \Countable {
* @throws \pq\Exception\BadMethodCallException
* @return array all fetched rows.
*/
function fetchAll(int $fetch_type = NULL) {}
function fetchAll(int $fetch_type = null) {}
/**
* Fetch all rows of a single column.
*
@ -1335,7 +1335,7 @@ class Result implements \Traversable, \Countable {
* or object stdClass instance for pq\Result::FETCH_OBJECT
* or NULL when iteration ends.
*/
function fetchRow(int $fetch_type = NULL) {}
function fetchRow(int $fetch_type = null) {}
/**
* Fetch the complete result set as a simple map, a *multi dimensional array*, each dimension indexed by a column.
*
@ -1347,7 +1347,7 @@ class Result implements \Traversable, \Countable {
* @throws \pq\Exception\RuntimeException
* @return array |object, the mapped columns.
*/
function map($keys = 0, $vals = NULL, int $fetch_type = NULL) {}
function map($keys = 0, $vals = null, int $fetch_type = null) {}
}
/**
* A named prepared statement.
@ -1400,7 +1400,7 @@ class Statement {
* @throws \pq\Exception\RuntimeException
* @throws \pq\Exception\DomainException
*/
function __construct(\pq\Connection $conn, string $name, string $query, array $types = NULL, bool $async = FALSE) {}
function __construct(\pq\Connection $conn, string $name, string $query, array $types = null, bool $async = false) {}
/**
* Bind a variable to an input parameter.
*
@ -1458,7 +1458,7 @@ class Statement {
* @throws \pq\Exception\RuntimeException
* @return \pq\Result the result of the execution of the prepared statement.
*/
function exec(array $params = NULL) {}
function exec(array $params = null) {}
/**
* [Asynchronously](pq/Connection/: Asynchronous Usage) execute the prepared statement.
*
@ -1470,7 +1470,7 @@ class Statement {
* @throws \pq\Exception\BadMethodCallException
* @throws \pq\Exception\RuntimeException
*/
function execAsync(array $params = NULL, callable $cb = NULL) {}
function execAsync(array $params = null, callable $cb = null) {}
/**
* Re-prepare a statement that has been deallocated. This is a no-op on already open statements.
*
@ -1529,14 +1529,14 @@ class Transaction {
* @public
* @var bool
*/
public $readonly = FALSE;
public $readonly = false;
/**
* Whether the transaction is deferrable. See pq\Connection::startTransaction().
*
* @public
* @var bool
*/
public $deferrable = FALSE;
public $deferrable = false;
/**
* Start a transaction.
* See pq\Connection::startTransaction().
@ -1550,7 +1550,7 @@ class Transaction {
* @throws \pq\Exception\BadMethodCallException
* @throws \pq\Exception\RuntimeException
*/
function __construct(\pq\Connection $conn, bool $async = FALSE, int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = FALSE, bool $deferrable = FALSE) {}
function __construct(\pq\Connection $conn, bool $async = false, int $isolation = \pq\Transaction::READ_COMMITTED, bool $readonly = false, bool $deferrable = false) {}
/**
* Commit the transaction or release the previous savepoint.
* See pq\Transaction::savepoint().
@ -2343,7 +2343,7 @@ class Types implements \ArrayAccess {
* @throws \pq\Exception\BadMethodCallException
* @throws \pq\Exception\RuntimeException
*/
function __construct(\pq\Connection $conn, array $namespaces = NULL) {}
function __construct(\pq\Connection $conn, array $namespaces = null) {}
/**
* Refresh type information from `pg_type`.
*
@ -2352,7 +2352,7 @@ class Types implements \ArrayAccess {
* @throws \pq\Exception\BadMethodCallException
* @throws \pq\Exception\RuntimeException
*/
function refresh(array $namespaces = NULL) {}
function refresh(array $namespaces = null) {}
}
namespace pq\Exception;
/**

View File

@ -160,7 +160,7 @@ class SNMP {
* depending on <i>object_id</i> type or <b>FALSE</b> on error.
* @since 5.4
*/
public function get ($object_id, $preserve_keys = FALSE) {}
public function get ($object_id, $preserve_keys = false) {}
/**
* Fetch an SNMP object which
@ -189,7 +189,7 @@ class SNMP {
* respectively.
* @since 5.4
*/
public function walk ($object_id, $suffix_as_keys = FALSE, $max_repetitions, $non_repeaters) {}
public function walk ($object_id, $suffix_as_keys = false, $max_repetitions, $non_repeaters) {}
/**
* Set the value of an SNMP object

View File

@ -346,7 +346,7 @@ function highlight_string ($str, $return = false) {}
* @return int[]|int|float Returns an array of integers in the form [seconds, nanoseconds], if the parameter get_as_number is false.
* Otherwise the nanoseconds are returned as integer (64bit platforms) or float (32bit platforms).
*/
function hrtime($get_as_number = FALSE) {}
function hrtime($get_as_number = false) {}
/**
* Return source with stripped comments and whitespace

View File

@ -45,7 +45,7 @@ class SyncMutex {
* @see SyncMutex::lock()
* @link https://php.net/manual/en/syncmutex.unlock.php
*/
public function unlock ( bool $all = FALSE ) {}
public function unlock ( bool $all = false ) {}
}
/**
@ -68,7 +68,7 @@ class SyncSemaphore {
* @throws Exception if the semaphore cannot be created or opened
* @link https://php.net/manual/en/syncsemaphore.construct.php
*/
public function __construct ( string $name, int $initialval = 1, bool $autounlock = TRUE ) {}
public function __construct ( string $name, int $initialval = 1, bool $autounlock = true ) {}
/**
* Decreases the count of the semaphore or waits
@ -115,7 +115,7 @@ class SyncEvent {
* @since 1.1.0 Added $prefire
* @link https://php.net/manual/en/syncevent.construct.php
*/
public function __construct ( string $name, bool $manual = FALSE, bool $prefire = FALSE ) {}
public function __construct ( string $name, bool $manual = false, bool $prefire = false ) {}
/**
* Fires/sets the event
@ -170,7 +170,7 @@ class SyncReaderWriter {
* @throws Exception if the reader-writer cannot be created or opened.
* @link https://php.net/manual/en/syncreaderwriter.construct.php
*/
public function __construct ( string $name, bool $autounlock = TRUE ) {}
public function __construct ( string $name, bool $autounlock = true ) {}
/**
* Waits for a read lock

View File

@ -21,7 +21,7 @@ class V8Js
* @param bool $report_uncaught_exceptions
* @param string $snapshot_blob
*/
public function __construct($object_name = "PHP", array $variables = [], array $extensions = [], $report_uncaught_exceptions = TRUE, $snapshot_blob = NULL)
public function __construct($object_name = "PHP", array $variables = [], array $extensions = [], $report_uncaught_exceptions = true, $snapshot_blob = null)
{}
/**
@ -126,7 +126,7 @@ class V8Js
* @param bool $auto_enable
* @return bool
*/
public static function registerExtension($extension_name, $code, array $dependencies, $auto_enable = FALSE)
public static function registerExtension($extension_name, $code, array $dependencies, $auto_enable = false)
{}
/**