improve some more phpdocs

dom_import_simplexml -> fix types

-> https://3v4l.org/67Al2
This commit is contained in:
Lars Moelleken 2020-11-22 23:04:21 +01:00 committed by Ivan Fedorov
parent b60f4da52d
commit ad901bf4c0
74 changed files with 365 additions and 346 deletions

View File

@ -276,7 +276,7 @@ class Exception implements Throwable {
* @param null|Throwable $previous [optional] The previous throwable used for the exception chaining.
*/
#[Pure]
public function __construct($message = "", $code = 0, Throwable $previous = null) { }
public function __construct($message = "", $code = 0, ?Throwable $previous = null) { }
/**
* Gets the Exception message
@ -371,7 +371,7 @@ class Error implements Throwable {
* @param int $code [optional] The Error code.
* @param null|Throwable $previous [optional] The previous throwable used for the exception chaining.
*/
public function __construct($message = "", $code = 0, Throwable $previous = null)
public function __construct($message = "", $code = 0, ?Throwable $previous = null)
{
}
@ -381,7 +381,7 @@ class Error implements Throwable {
* @return string
* @since 7.0
*/
final public function getMessage()
public final function getMessage()
{
}
@ -396,7 +396,7 @@ class Error implements Throwable {
* </p>
* @since 7.0
*/
final public function getCode(){}
public final function getCode(){}
/**
@ -405,7 +405,7 @@ class Error implements Throwable {
* @return string Returns the name of the file from which the object was thrown.
* @since 7.0
*/
final public function getFile(){}
public final function getFile(){}
/**
@ -414,7 +414,7 @@ class Error implements Throwable {
* @return int Returns the line number where the thrown object was instantiated.
* @since 7.0
*/
final public function getLine(){}
public final function getLine(){}
/**
@ -426,7 +426,7 @@ class Error implements Throwable {
* </p>
* @since 7.0
*/
final public function getTrace(){}
public final function getTrace(){}
/**
* Gets the stack trace as a string
@ -434,7 +434,7 @@ class Error implements Throwable {
* @return string Returns the stack trace as a string.
* @since 7.0
*/
final public function getTraceAsString(){}
public final function getTraceAsString(){}
/**
* Returns the previous Throwable
@ -442,7 +442,7 @@ class Error implements Throwable {
* @return Throwable Returns the previous {@see Throwable} if available, or <b>NULL</b> otherwise.
* @since 7.0
*/
final public function getPrevious(){}
public final function getPrevious(){}
/**
* Gets a string representation of the thrown object
* @link https://php.net/manual/en/throwable.tostring.php
@ -457,7 +457,7 @@ class Error implements Throwable {
* @return void
* @link https://php.net/manual/en/error.clone.php
*/
final private function __clone(){}
private final function __clone(){}
public function __wakeup(){}
}

View File

@ -794,6 +794,7 @@ final class EvPeriodic extends EvWatcher
*/
public $interval;
/**
* Constructs EvPeriodic watcher object.
*
@ -813,7 +814,7 @@ final class EvPeriodic extends EvWatcher
* @param int $priority
*/
public function __construct(
$offset, $interval, callable $reschedule_cb = null, callable $callback, $data = null, $priority = 0
$offset, $interval, ?callable $reschedule_cb = null, callable $callback, $data = null, $priority = 0
) {}
/**
@ -854,7 +855,7 @@ final class EvPeriodic extends EvWatcher
* @return EvPeriodic
*/
final public static function createStopped(
$offset, $interval, callable $reschedule_cb = null, callable $callback, $data = null, $priority = 0
$offset, $interval, ?callable $reschedule_cb = null, callable $callback, $data = null, $priority = 0
) {}
/**
@ -1321,7 +1322,7 @@ final class EvLoop
* @param int $priority
* @return EvCheck
*/
final public function check(callable $callback, $data = null, $priority = 0) {}
public final function check(callable $callback, $data = null, $priority = 0) {}
/**
* Creates EvChild object associated with the current event loop instance;
@ -1333,7 +1334,7 @@ final class EvLoop
* @param int $priority
* @return EvChild
*/
final public function child($pid, $trace, callable $callback, $data = null, $priority = 0) {}
public final function child($pid, $trace, callable $callback, $data = null, $priority = 0) {}
/**
* Creates EvEmbed object associated with the current event loop instance.
@ -1344,7 +1345,7 @@ final class EvLoop
* @param int $priority
* @return EvEmbed
*/
final public function embed(EvLoop $other, callable $callback, $data = null, $priority = 0) {}
public final function embed(EvLoop $other, callable $callback, $data = null, $priority = 0) {}
/**
* Creates EvFork object associated with the current event loop instance.
@ -1354,7 +1355,7 @@ final class EvLoop
* @param int $priority
* @return EvFork
*/
final public function fork(callable $callback, $data = null, $priority = 0) {}
public final function fork(callable $callback, $data = null, $priority = 0) {}
/**
* Creates EvIdle object associated with the current event loop instance.
@ -1364,7 +1365,7 @@ final class EvLoop
* @param int $priority
* @return EvIdle
*/
final public function idle(callable $callback, $data = null, $priority = 0) {}
public final function idle(callable $callback, $data = null, $priority = 0) {}
/**
* Invoke all pending watchers while resetting their pending state.
@ -1424,7 +1425,7 @@ final class EvLoop
* @param mixed $data
* @param int $priority
*/
final public function periodic($offset, $interval, callable $callback, $data = null, $priority = 0) {}
public final function periodic($offset, $interval, callable $callback, $data = null, $priority = 0) {}
/**
* Creates EvPrepare object associated with the current event loop instance.
@ -1433,7 +1434,7 @@ final class EvLoop
* @param mixed $data
* @param int $priority
*/
final public function prepare(callable $callback, $data = null, $priority = 0) {}
public final function prepare(callable $callback, $data = null, $priority = 0) {}
/**
* Resume previously suspended default event loop.
@ -1463,7 +1464,7 @@ final class EvLoop
* @param int $priority
* @return EvSignal
*/
final public function signal($signal, callable $callback, $data = null, $priority = 0)
public final function signal($signal, callable $callback, $data = null, $priority = 0)
{
}
@ -1477,7 +1478,7 @@ final class EvLoop
* @param int $priority
* @return EvStat
*/
final public function stat($path, $interval, callable $callback, $data = null, $priority = 0) {}
public final function stat($path, $interval, callable $callback, $data = null, $priority = 0) {}
/**
* Stops the event loop.
@ -1503,7 +1504,7 @@ final class EvLoop
* @param int $priority
* @return EvTimer
*/
final public function timer($after, $repeat, callable $callback, $data = null, $priority = 0) {}
public final function timer($after, $repeat, callable $callback, $data = null, $priority = 0) {}
/**
* Performs internal consistency checks (for debugging).

View File

@ -884,7 +884,7 @@ class PDO {
* Emulated prepared statements does not communicate with the database server
* so <b>PDO::prepare</b> does not check the statement.
*/
public function prepare ($query, array $options = []) {}
public function prepare ($query, array $options = array()) {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
@ -1003,7 +1003,7 @@ class PDO {
* on failure.
* @see PDOStatement::setFetchMode For a full description of the second and following parameters.
*/
public function query ($statement, $mode = PDO::ATTR_DEFAULT_FETCH_MODE, $arg3 = null, array $ctorargs = []) {}
public function query ($statement, $mode = PDO::ATTR_DEFAULT_FETCH_MODE, $arg3 = null, array $ctorargs = array()) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
@ -1437,7 +1437,7 @@ class PDOStatement implements IteratorAggregate
* @return mixed an instance of the required class with property names that
* correspond to the column names or <b>FALSE</b> on failure.
*/
public function fetchObject ($class = "stdClass", array $ctorArgs = []) {}
public function fetchObject ($class = "stdClass", array $ctorArgs = array()) {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
@ -1586,7 +1586,7 @@ class PDOStatement implements IteratorAggregate
* @param array $params [optional] <p> Constructor arguments. </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function setFetchMode ($mode, $className = null, array $params = []) {}
public function setFetchMode ($mode, $className = null, array $params = array()) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
@ -1634,6 +1634,7 @@ class PDOStatement implements IteratorAggregate
/**
* @since 8.0
* @return Traversable
*/
public function getIterator(){}
}

View File

@ -803,7 +803,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* </p>
* @return void No value is returned.
*/
final public static function webPhar ($alias = null, $index = "index.php", $fileNotFoundScript = null, array $mimeTypes = null, callable $rewrite = null) {}
final public static function webPhar ($alias = null, $index = "index.php", $fileNotFoundScript = null, ?array $mimeTypes = null, ?callable $rewrite = null) {}
/**
* Returns whether current entry is a directory and not '.' or '..'
@ -907,8 +907,16 @@ class PharData extends Phar {
*/
public function __construct ($filename, $flags = null, $alias = null, $format = Phar::TAR) {}
/**
* @param string $localName
* @return bool
*/
public function offsetExists ($localName) {}
/**
* @param string $localName
* @return string
*/
public function offsetGet ($localName) {}
/**

View File

@ -1097,7 +1097,7 @@ class RegexIterator extends FilterIterator {
* Create a new RegexIterator
* @link https://php.net/manual/en/regexiterator.construct.php
* @param Iterator $iterator The iterator to apply this regex filter to.
* @param string $pattern [optional] The regular expression to match.
* @param string $pattern The regular expression to match.
* @param int $mode [optional] Operation mode, see RegexIterator::setMode() for a list of modes.
* @param int $flags [optional] Special flags, see RegexIterator::setFlags() for a list of available flags.
* @param int $pregFlags [optional] The regular expression flags. These flags depend on the operation mode parameter
@ -1439,7 +1439,7 @@ class ArrayObject implements IteratorAggregate, ArrayAccess, Serializable, Count
* @param string $iteratorClass Specify the class that will be used for iteration of the ArrayObject object. ArrayIterator is the default class used.
*
*/
public function __construct($array = [], $flags = 0, $iteratorClass = "ArrayIterator") { }
public function __construct($array = array(), $flags = 0, $iteratorClass = "ArrayIterator") { }
/**
* Returns whether the requested index exists
@ -1705,7 +1705,7 @@ class ArrayIterator implements SeekableIterator, ArrayAccess, Serializable, Coun
* @param int $flags Flags to control the behaviour of the ArrayObject object.
* @see ArrayObject::setFlags()
*/
public function __construct($array = [], $flags = 0) { }
public function __construct($array = array(), $flags = 0) { }
/**
* Check if offset exists

View File

@ -271,7 +271,7 @@ class SplFileInfo implements Stringable {
*/
public function __toString () {}
final public function _bad_state_ex (){}
public final function _bad_state_ex (){}
public function __wakeup()
{
@ -1738,6 +1738,9 @@ class SplFixedArray implements Iterator, ArrayAccess, Countable, IteratorAggrega
{
}
/**
* @return Traversable
*/
public function getIterator() {}
}

View File

@ -622,7 +622,7 @@ function sqlite_close ($dbhandle) {}
* Data inside the query should be properly escaped.
* </p>
* @param resource|string $dbhandle The SQLite Database resource; returned from sqlite_open() when used procedurally. This parameter is not required when using the object-oriented method.
* @param int $result_type [optional] &sqlite.result-type;<p>The optional <i>result_type</i>
* @param int $result_type [optional] <p>The optional <i>result_type</i>
* parameter accepts a constant and determines how the returned array will be
* indexed. Using <b>SQLITE_ASSOC</b> will return only associative
* indices (named fields) while <b>SQLITE_NUM</b> will return
@ -698,14 +698,14 @@ function sqlite_exec ($dbhandle, $query, &$error_msg = null) {}
* when used procedurally. This parameter is not required
* when using the object-oriented method.
* </p>
* @param int $result_type [optional] &sqlite.result-type; <p>The optional <i>result_type</i>
* @param int $result_type [optional] <p>The optional <i>result_type</i>
* parameter accepts a constant and determines how the returned array will be
* indexed. Using <b>SQLITE_ASSOC</b> will return only associative
* indices (named fields) while <b>SQLITE_NUM</b> will return
* only numerical indices (ordinal field numbers). <b>SQLITE_BOTH</b>
* will return both associative and numerical indices.
* <b>SQLITE_BOTH</b> is the default for this function.</p>
* @param bool $decode_binary [optional] &sqlite.decode-bin; <p>When the <i>decode_binary</i>
* @param bool $decode_binary [optional] <p>When the <i>decode_binary</i>
* parameter is set to <b>TRUE</b> (the default), PHP will decode the binary encoding
* it applied to the data if it was encoded using the
* {@link sqlite_escape_string()}. You should normally leave this
@ -737,8 +737,8 @@ function sqlite_single_query ($db, $query, $first_row_only = null, $decode_binar
* Fetches the next row from a result set as an array
* @link https://php.net/manual/en/function.sqlite-fetch-array.php
* @param resource $result <p>The SQLite result resource. This parameter is not required when using the object-oriented method.</p>
* @param int $result_type [optional] &sqlite.result-type;
* @param bool $decode_binary [optional] &sqlite.decode-bin;
* @param int $result_type [optional]
* @param bool $decode_binary [optional]
* @return array|false <p>an array of the next row from a result set; false if the
* next position is beyond the final row.</p>
*/
@ -748,12 +748,12 @@ function sqlite_fetch_array ($result, $result_type = SQLITE_BOTH, $decode_binary
* Fetches the next row from a result set as an object
* @link https://php.net/manual/en/function.sqlite-fetch-object.php
* @param resource $result
* @param null|string $class_name [optional]
* @param string $class_name [optional]
* @param null|array $ctor_params [optional]
* @param null|bool $decode_binary [optional]
* @param bool $decode_binary [optional]
* @return object
*/
function sqlite_fetch_object ($result, $class_name = null, array $ctor_params = null, $decode_binary = null) {}
function sqlite_fetch_object ($result, $class_name = null, ?array $ctor_params = null, $decode_binary = null) {}
/**
* (PHP 5, PECL sqlite &gt;= 1.0.1)<br/>
@ -789,8 +789,8 @@ function sqlite_fetch_string ($result, $decode_binary) {}
* (PHP 5, PECL sqlite &gt;= 1.0.0)<br/>
* Fetches all rows from a result set as an array of arrays
* @link https://php.net/manual/en/function.sqlite-fetch-all.php
* @param int $result_type [optional] &sqlite.result-type;
* @param bool $decode_binary [optional] &sqlite.decode-bin;
* @param int $result_type [optional]
* @param bool $decode_binary [optional]
* @return array <p>an array of the remaining rows in a result set. If called right
* after
* {@see sqlite_query}, it returns all rows. If called
@ -1079,7 +1079,7 @@ function sqlite_error_string ($error_code) {}
* <p>
* Data inside the query should be properly escaped.
* </p>
* @param int $result_type [optional] &sqlite.result-type;
* @param int $result_type [optional]
* @param string &$error_msg [optional] <p>
* The specified variable will be filled if an error occurs. This is
* specially important because SQL syntax errors can't be fetched using

View File

@ -68,6 +68,7 @@ class Bytes implements \Serializable
* Re-wraps the binary-string when called by unserialize().
*
* @param string $bin_str a PHP binary-string. Called by unserialize().
* @return string
*/
public function unserialize($bin_str) {
return $this->s = $bin_str;

View File

@ -669,7 +669,7 @@ class Aerospike {
* @see Aerospike::errorno() errorno()
* @return int The status code of the operation. Compare to the Aerospike class status constants.
*/
public function get(array $key, &$record, array $select = null, array $options = []) {}
public function get(array $key, &$record, ?array $select = null, array $options = []) {}
/**
* Get the metadata of a record with a given key, and store it in $metadata
@ -2720,7 +2720,7 @@ class Aerospike {
* op => one of Aerospike::OP_EQ, Aerospike::OP_BETWEEN, Aerospike::OP_CONTAINS, Aerospike::OP_RANGE, etc
* val => scalar integer/string for OP_EQ and OP_CONTAINS or [$min, $max] for OP_BETWEEN and OP_RANGE
*
* or an empty [] for no predicate
* or an empty array() for no predicate
* ```
* examples
* ```
@ -3221,7 +3221,7 @@ class Aerospike {
* op => one of Aerospike::OP_EQ, Aerospike::OP_BETWEEN, Aerospike::OP_CONTAINS, Aerospike::OP_RANGE, etc
* val => scalar integer/string for OP_EQ and OP_CONTAINS or [$min, $max] for OP_BETWEEN and OP_RANGE
*
* or an empty [] for no predicate
* or an empty array() for no predicate
* ```
* examples
* ```
@ -3359,7 +3359,7 @@ class Aerospike {
* op => one of Aerospike::OP_EQ, Aerospike::OP_BETWEEN, Aerospike::OP_CONTAINS, Aerospike::OP_RANGE
* val => scalar integer/string for OP_EQ and OP_CONTAINS or [$min, $max] for OP_BETWEEN and OP_RANGE
*
* or an empty [] for no predicate
* or an empty array() for no predicate
* ```
* examples
* ```
@ -3480,7 +3480,7 @@ class Aerospike {
* * Aerospike::OPT_READ_TIMEOUT
* @return int The status code of the operation. Compare to the Aerospike class status constants.
*/
public function info(string $request, string &$response, array $host = null, array $options = []) {}
public function info(string $request, string &$response, ?array $host = null, array $options = []) {}
/**
* Send an info request to a single cluster node
@ -3517,7 +3517,7 @@ class Aerospike {
* NODE-ID => response string
* ```
*/
public function infoMany(string $request, array $host = null, array $options = []) {}
public function infoMany(string $request, ?array $host = null, array $options = []) {}
/**
* Get the addresses of the cluster nodes

View File

@ -611,7 +611,7 @@ class AMQPConnection
* @param array $credentials Optional array of credential information for
* connecting to the AMQP broker.
*/
public function __construct(array $credentials = []) { }
public function __construct(array $credentials = array()) { }
/**
* Closes the transient connection with the AMQP broker.
@ -1110,7 +1110,7 @@ class AMQPExchange
* @throws AMQPConnectionException If the connection to the broker was lost.
* @return bool TRUE on success or FALSE on failure.
*/
public function bind($exchange_name, $routing_key = '', array $arguments = []) { }
public function bind($exchange_name, $routing_key = '', array $arguments = array()) { }
/**
* Remove binding to another exchange.
@ -1126,7 +1126,7 @@ class AMQPExchange
* @throws AMQPConnectionException If the connection to the broker was lost.
* @return bool TRUE on success or FALSE on failure.
*/
public function unbind($exchange_name, $routing_key = '', array $arguments = []) { }
public function unbind($exchange_name, $routing_key = '', array $arguments = array()) { }
/**
* Create an instance of AMQPExchange.
@ -1246,7 +1246,7 @@ class AMQPExchange
$message,
$routing_key = null,
$flags = AMQP_NOPARAM,
array $attributes = []
array $attributes = array()
) {
}
@ -1371,7 +1371,7 @@ class AMQPQueue
*
* @return bool
*/
public function bind($exchange_name, $routing_key = null, array $arguments = []) { }
public function bind($exchange_name, $routing_key = null, array $arguments = array()) { }
/**
* Cancel a queue that is already bound to an exchange and routing key.
@ -1650,7 +1650,7 @@ class AMQPQueue
*
* @return bool
*/
public function unbind($exchange_name, $routing_key = null, array $arguments = []) { }
public function unbind($exchange_name, $routing_key = null, array $arguments = array()) { }
/**
* Get the AMQPChannel object in use

View File

@ -191,11 +191,11 @@ function apc_cas($key, $old, $new){}
/**
* Returns a binary dump of the given files and user variables from the APC cache
*
* A NULL for files or user_vars signals a dump of every entry, while [] will dump nothing.
* A NULL for files or user_vars signals a dump of every entry, while array() will dump nothing.
*
* @link https://php.net/manual/en/function.apc-bin-dump.php
* @param string[]|null $files The files. Passing in NULL signals a dump of every entry, while passing in [] will dump nothing.
* @param string[]|null $user_vars The user vars. Passing in NULL signals a dump of every entry, while passing in [] will dump nothing.
* @param string[]|null $files The files. Passing in NULL signals a dump of every entry, while passing in array() will dump nothing.
* @param string[]|null $user_vars The user vars. Passing in NULL signals a dump of every entry, while passing in array() will dump nothing.
* @return string|false|null Returns a binary dump of the given files and user variables from the APC cache, FALSE if APC is not enabled, or NULL if an unknown error is encountered.
*/
function apc_bin_dump($files = null, $user_vars = null){}

View File

@ -151,7 +151,7 @@ function bcpow (string $num, string $exponent, ?int $scale = 0): string
function bcsqrt (string $num, ?int $scale)
{}
#[PhpStormStubsElementAvailable(to: '7.2')]
#[PhpStormStubsElementAvailable(to: '7.3')]
/**
* Set default scale parameter for all bc math functions
* @link https://php.net/manual/en/function.bcscale.php
@ -161,14 +161,24 @@ function bcsqrt (string $num, ?int $scale)
function bcscale (int $scale): bool
{}
#[PhpStormStubsElementAvailable('7.3')]
#[PhpStormStubsElementAvailable(from: '7.3', to: '8.0')]
/**
* Set default scale parameter for all bc math functions
* @link https://php.net/manual/en/function.bcscale.php
* @param int $scale
* @return int
*/
function bcscale (int $scale): int
{}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Set default scale parameter for all bc math functions
* @link https://php.net/manual/en/function.bcscale.php
* @param int|null $scale
* @return int
* @return int Returns the old scale when used as setter. Otherwise the current scale is returned.
*/
function bcscale (?int $scale): int
function bcscale (?int $scale = null): int
{}
/**

View File

@ -3684,7 +3684,7 @@ namespace Cassandra {
* @return \Cassandra\Type\Custom
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Custom/#method-type
*/
abstract public function type();
public abstract function type();
}
@ -3701,7 +3701,7 @@ namespace Cassandra {
* @return \Cassandra\Table Base table of the view
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-baseTable
*/
abstract public function baseTable();
public abstract function baseTable();
/**
* Returns the name of this view
@ -3709,7 +3709,7 @@ namespace Cassandra {
* @return string Name of the view
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-name
*/
abstract public function name();
public abstract function name();
/**
* Return a view's option by name
@ -3719,7 +3719,7 @@ namespace Cassandra {
* @return \Cassandra\Value Value of an option by name
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-option
*/
abstract public function option($name);
public abstract function option($name);
/**
* Returns all the view's options
@ -3728,7 +3728,7 @@ namespace Cassandra {
* view's options.
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-options
*/
abstract public function options();
public abstract function options();
/**
* Description of the view, if any
@ -3736,7 +3736,7 @@ namespace Cassandra {
* @return string View description or null
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-comment
*/
abstract public function comment();
public abstract function comment();
/**
* Returns read repair chance
@ -3744,7 +3744,7 @@ namespace Cassandra {
* @return float Read repair chance
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-readRepairChance
*/
abstract public function readRepairChance();
public abstract function readRepairChance();
/**
* Returns local read repair chance
@ -3752,7 +3752,7 @@ namespace Cassandra {
* @return float Local read repair chance
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-localReadRepairChance
*/
abstract public function localReadRepairChance();
public abstract function localReadRepairChance();
/**
* Returns GC grace seconds
@ -3760,7 +3760,7 @@ namespace Cassandra {
* @return int GC grace seconds
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-gcGraceSeconds
*/
abstract public function gcGraceSeconds();
public abstract function gcGraceSeconds();
/**
* Returns caching options
@ -3768,7 +3768,7 @@ namespace Cassandra {
* @return string Caching options
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-caching
*/
abstract public function caching();
public abstract function caching();
/**
* Returns bloom filter FP chance
@ -3776,7 +3776,7 @@ namespace Cassandra {
* @return float Bloom filter FP chance
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-bloomFilterFPChance
*/
abstract public function bloomFilterFPChance();
public abstract function bloomFilterFPChance();
/**
* Returns memtable flush period in milliseconds
@ -3784,7 +3784,7 @@ namespace Cassandra {
* @return int Memtable flush period in milliseconds
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-memtableFlushPeriodMs
*/
abstract public function memtableFlushPeriodMs();
public abstract function memtableFlushPeriodMs();
/**
* Returns default TTL.
@ -3792,7 +3792,7 @@ namespace Cassandra {
* @return int Default TTL.
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-defaultTTL
*/
abstract public function defaultTTL();
public abstract function defaultTTL();
/**
* Returns speculative retry.
@ -3800,7 +3800,7 @@ namespace Cassandra {
* @return string Speculative retry.
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-speculativeRetry
*/
abstract public function speculativeRetry();
public abstract function speculativeRetry();
/**
* Returns index interval
@ -3808,7 +3808,7 @@ namespace Cassandra {
* @return int Index interval
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-indexInterval
*/
abstract public function indexInterval();
public abstract function indexInterval();
/**
* Returns compaction strategy class name
@ -3816,7 +3816,7 @@ namespace Cassandra {
* @return string Compaction strategy class name
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-compactionStrategyClassName
*/
abstract public function compactionStrategyClassName();
public abstract function compactionStrategyClassName();
/**
* Returns compaction strategy options
@ -3824,7 +3824,7 @@ namespace Cassandra {
* @return \Cassandra\Map Compaction strategy options
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-compactionStrategyOptions
*/
abstract public function compactionStrategyOptions();
public abstract function compactionStrategyOptions();
/**
* Returns compression parameters
@ -3832,7 +3832,7 @@ namespace Cassandra {
* @return \Cassandra\Map Compression parameters
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-compressionParameters
*/
abstract public function compressionParameters();
public abstract function compressionParameters();
/**
* Returns whether or not the `populate_io_cache_on_flush` is true
@ -3840,7 +3840,7 @@ namespace Cassandra {
* @return bool Value of `populate_io_cache_on_flush` or null
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-populateIOCacheOnFlush
*/
abstract public function populateIOCacheOnFlush();
public abstract function populateIOCacheOnFlush();
/**
* Returns whether or not the `replicate_on_write` is true
@ -3848,7 +3848,7 @@ namespace Cassandra {
* @return bool Value of `replicate_on_write` or null
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-replicateOnWrite
*/
abstract public function replicateOnWrite();
public abstract function replicateOnWrite();
/**
* Returns the value of `max_index_interval`
@ -3856,7 +3856,7 @@ namespace Cassandra {
* @return int Value of `max_index_interval` or null
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-maxIndexInterval
*/
abstract public function maxIndexInterval();
public abstract function maxIndexInterval();
/**
* Returns the value of `min_index_interval`
@ -3864,7 +3864,7 @@ namespace Cassandra {
* @return int Value of `min_index_interval` or null
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-minIndexInterval
*/
abstract public function minIndexInterval();
public abstract function minIndexInterval();
/**
* Returns column by name
@ -3874,7 +3874,7 @@ namespace Cassandra {
* @return \Cassandra\Column Column instance
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-column
*/
abstract public function column($name);
public abstract function column($name);
/**
* Returns all columns in this view
@ -3882,7 +3882,7 @@ namespace Cassandra {
* @return array A list of `Column` instances
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-columns
*/
abstract public function columns();
public abstract function columns();
/**
* Returns the partition key columns of the view
@ -3890,7 +3890,7 @@ namespace Cassandra {
* @return array A list of of `Column` instances
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-partitionKey
*/
abstract public function partitionKey();
public abstract function partitionKey();
/**
* Returns both the partition and clustering key columns of the view
@ -3898,7 +3898,7 @@ namespace Cassandra {
* @return array A list of of `Column` instances
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-primaryKey
*/
abstract public function primaryKey();
public abstract function primaryKey();
/**
* Returns the clustering key columns of the view
@ -3906,13 +3906,13 @@ namespace Cassandra {
* @return array A list of of `Column` instances
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-clusteringKey
*/
abstract public function clusteringKey();
public abstract function clusteringKey();
/**
* @return array A list of cluster column orders ('asc' and 'desc')
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.MaterializedView/#method-clusteringOrder
*/
abstract public function clusteringOrder();
public abstract function clusteringOrder();
}
@ -3985,7 +3985,7 @@ namespace Cassandra {
* @return \Cassandra\Type ascii type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-ascii
*/
final public static function ascii()
public static final function ascii()
{
}
@ -3995,7 +3995,7 @@ namespace Cassandra {
* @return \Cassandra\Type bigint type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-bigint
*/
final public static function bigint()
public static final function bigint()
{
}
@ -4005,7 +4005,7 @@ namespace Cassandra {
* @return \Cassandra\Type smallint type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-smallint
*/
final public static function smallint()
public static final function smallint()
{
}
@ -4015,7 +4015,7 @@ namespace Cassandra {
* @return \Cassandra\Type tinyint type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-tinyint
*/
final public static function tinyint()
public static final function tinyint()
{
}
@ -4025,7 +4025,7 @@ namespace Cassandra {
* @return \Cassandra\Type blob type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-blob
*/
final public static function blob()
public static final function blob()
{
}
@ -4035,7 +4035,7 @@ namespace Cassandra {
* @return \Cassandra\Type boolean type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-boolean
*/
final public static function boolean()
public static final function boolean()
{
}
@ -4045,7 +4045,7 @@ namespace Cassandra {
* @return \Cassandra\Type counter type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-counter
*/
final public static function counter()
public static final function counter()
{
}
@ -4055,7 +4055,7 @@ namespace Cassandra {
* @return \Cassandra\Type decimal type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-decimal
*/
final public static function decimal()
public static final function decimal()
{
}
@ -4065,7 +4065,7 @@ namespace Cassandra {
* @return \Cassandra\Type double type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-double
*/
final public static function double()
public static final function double()
{
}
@ -4075,7 +4075,7 @@ namespace Cassandra {
* @return \Cassandra\Type duration type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-duration
*/
final public static function duration()
public static final function duration()
{
}
@ -4085,7 +4085,7 @@ namespace Cassandra {
* @return \Cassandra\Type float type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-float
*/
final public static function float()
public static final function float()
{
}
@ -4095,7 +4095,7 @@ namespace Cassandra {
* @return \Cassandra\Type int type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-int
*/
final public static function int()
public static final function int()
{
}
@ -4105,7 +4105,7 @@ namespace Cassandra {
* @return \Cassandra\Type text type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-text
*/
final public static function text()
public static final function text()
{
}
@ -4115,7 +4115,7 @@ namespace Cassandra {
* @return \Cassandra\Type timestamp type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-timestamp
*/
final public static function timestamp()
public static final function timestamp()
{
}
@ -4125,7 +4125,7 @@ namespace Cassandra {
* @return \Cassandra\Type date type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-date
*/
final public static function date()
public static final function date()
{
}
@ -4135,7 +4135,7 @@ namespace Cassandra {
* @return \Cassandra\Type time type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-time
*/
final public static function time()
public static final function time()
{
}
@ -4145,7 +4145,7 @@ namespace Cassandra {
* @return \Cassandra\Type uuid type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-uuid
*/
final public static function uuid()
public static final function uuid()
{
}
@ -4155,7 +4155,7 @@ namespace Cassandra {
* @return \Cassandra\Type varchar type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-varchar
*/
final public static function varchar()
public static final function varchar()
{
}
@ -4165,7 +4165,7 @@ namespace Cassandra {
* @return \Cassandra\Type varint type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-varint
*/
final public static function varint()
public static final function varint()
{
}
@ -4175,7 +4175,7 @@ namespace Cassandra {
* @return \Cassandra\Type timeuuid type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-timeuuid
*/
final public static function timeuuid()
public static final function timeuuid()
{
}
@ -4185,7 +4185,7 @@ namespace Cassandra {
* @return \Cassandra\Type inet type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-inet
*/
final public static function inet()
public static final function inet()
{
}
@ -4206,7 +4206,7 @@ namespace Cassandra {
* @return \Cassandra\Type The collection type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-collection
*/
final public static function collection($type)
public static final function collection($type)
{
}
@ -4227,7 +4227,7 @@ namespace Cassandra {
* @return \Cassandra\Type The set type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-set
*/
final public static function set($type)
public static final function set($type)
{
}
@ -4247,7 +4247,7 @@ namespace Cassandra {
* @return \Cassandra\Type The map type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-map
*/
final public static function map($keyType, $valueType)
public static final function map($keyType, $valueType)
{
}
@ -4266,7 +4266,7 @@ namespace Cassandra {
* @return \Cassandra\Type The tuple type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-tuple
*/
final public static function tuple($types)
public static final function tuple($types)
{
}
@ -4285,7 +4285,7 @@ namespace Cassandra {
* @return \Cassandra\Type The user type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-userType
*/
final public static function userType($types)
public static final function userType($types)
{
}
@ -4295,7 +4295,7 @@ namespace Cassandra {
* @return string Name of this type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-name
*/
abstract public function name();
public abstract function name();
/**
* Returns string representation of this type.
@ -4303,7 +4303,7 @@ namespace Cassandra {
* @return string String representation of this type
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Type/#method-__toString
*/
abstract public function __toString();
public abstract function __toString();
}

View File

@ -1115,6 +1115,7 @@ function date_timezone_set (DateTimeInterface $object, DateTimeZone $timezone)
function date_offset_get (DateTimeInterface $object)
{}
/**
* Returns the difference between two datetime objects
* Alias:
@ -1129,7 +1130,6 @@ function date_offset_get (DateTimeInterface $object)
#[LanguageLevelTypeAware(["8.0" => "DateInterval"], default: "DateInterval|false")]
function date_diff (DateTimeInterface $baseObject, DateTimeInterface $targetObject, bool $absolute = false)
{}
/**
* &Alias; <methodname>DateTime::setTime</methodname>
* @link https://php.net/manual/en/function.date-time-set.php

View File

@ -185,7 +185,7 @@ class DateTimeImmutable implements DateTimeInterface {
* @param null|DateTimeZone $timezone [optional]
* @return DateTimeImmutable|false
*/
public static function createFromFormat($format, $datetime, DateTimeZone $timezone = null) { }
public static function createFromFormat($format, $datetime, ?DateTimeZone $timezone = null) { }
/**
* (PHP 5 &gt;=5.6.0)<br/>
@ -467,7 +467,7 @@ class DateTime implements DateTimeInterface {
* </p> <p></p></blockquote>
* @throws Exception Emits Exception in case of an error.
*/
public function __construct ($datetime = 'now', DateTimeZone $timezone = null) {}
public function __construct ($datetime = 'now', ?DateTimeZone $timezone = null) {}
/**
* @return void
@ -603,7 +603,7 @@ class DateTime implements DateTimeInterface {
* @return DateTime|false
* @link https://php.net/manual/en/datetime.createfromformat.php
*/
public static function createFromFormat ($format, $datetime, DateTimeZone $timezone = null) {}
public static function createFromFormat ($format, $datetime, ?DateTimeZone $timezone = null) {}
/**
* Returns an array of warnings and errors found while parsing a date/time string

View File

@ -84,7 +84,7 @@ final class Decimal implements \JsonSerializable
*
* @return Decimal a copy of this decimal.
*/
public function copy(int $precision = null): Decimal {}
public function copy(?int $precision = null): Decimal {}
/**
* Add

View File

@ -72,9 +72,7 @@ function dio_open (string $filename, int $flags, int $mode = 0) {}
function dio_read ($fd, int $len = 1024) {}
/**
* dio_seek ( resource $fd , int $pos [, int $whence = SEEK_SET ] ) : int
* dio_seek Seeks to pos on fd from whence
*
* @param resource $fd The file descriptor returned by dio_open().
* @param int $pos The new position.
* @param int $whence Specifies how the position pos should be interpreted:

View File

@ -9,9 +9,9 @@
* @param SimpleXMLElement $node <p>
* The <b>SimpleXMLElement</b> node.
* </p>
* @return DOMElement|null The added <b>DOMElement</b> node.
* @return DOMElement|null|false The <b>DOMElement</b> node added or <b>FALSE</b> if any errors occur.
*/
function dom_import_simplexml (object $node): ?DOMElement {}
function dom_import_simplexml ($node) {}
/**

View File

@ -313,7 +313,7 @@ class DOMNode {
* @param null|array $nsPrefixes [optional] An array of namespace prefixes to filter the nodes by.
* @return string|false Canonicalized nodes as a string or FALSE on failure
*/
public function C14N ($exclusive, $withComments, array $xpath = null, $nsPrefixes = null) {}
public function C14N ($exclusive, $withComments, ?array $xpath = null, ?array $nsPrefixes = null) {}
/**
* Canonicalize nodes to a file.
@ -325,7 +325,7 @@ class DOMNode {
* @param null|array $nsPrefixes [optional] An array of namespace prefixes to filter the nodes by.
* @return int|false Number of bytes written or FALSE on failure
*/
public function C14NFile ($uri, $exclusive, $withComments = false, array $xpath = null, $nsPrefixes = null) {}
public function C14NFile ($uri, $exclusive, $withComments = false, array $xpath = null, ?array $nsPrefixes = null) {}
}
@ -923,7 +923,7 @@ class DOMDocument extends DOMNode implements DOMParentNode {
* </p>
* @return string|false the XML, or false if an error occurred.
*/
public function saveXML (DOMNode $node = null , $options = null) {}
public function saveXML (?DOMNode $node = null , $options = null) {}
/**
* Creates a new DOMDocument object
@ -990,7 +990,7 @@ class DOMDocument extends DOMNode implements DOMParentNode {
* @param null|DOMNode $node [optional] parameter to output a subset of the document.
* @return string|false The HTML, or false if an error occurred.
*/
public function saveHTML (DOMNode $node = null) {}
public function saveHTML (?DOMNode $node = null) {}
/**
* Dumps the internal document into a file using HTML formatting
@ -1099,6 +1099,7 @@ class DOMNodeList implements IteratorAggregate, Countable {
/**
* @since 8.0
* @return Traversable
*/
public function getIterator(){}
}
@ -1170,11 +1171,13 @@ class DOMNamedNodeMap implements IteratorAggregate, Countable {
/**
* @since 7.2
* @return int
*/
public function count() {}
/**
* @since 8.0
* @return Traversable
*/
public function getIterator(){}
}

View File

@ -190,7 +190,7 @@ namespace Ds {
* TRUE if a callback was not provided.
* @link https://www.php.net/manual/en/ds-sequence.filter.php
*/
public function filter(callable $callback = null);
public function filter(?callable $callback = null);
/**
* Returns the index of the value, or FALSE if not found.
@ -531,7 +531,7 @@ namespace Ds {
* TRUE if a callback was not provided.
* @link https://www.php.net/manual/en/ds-vector.filter.php
*/
public function filter(callable $callback = null): Vector
public function filter(?callable $callback = null): Vector
{
}
@ -976,7 +976,7 @@ namespace Ds {
* TRUE if a callback was not provided.
* @link https://www.php.net/manual/en/ds-deque.filter.php
*/
public function filter(callable $callback = null): Deque
public function filter(?callable $callback = null): Deque
{
}
@ -1367,7 +1367,7 @@ namespace Ds {
*
* @link https://www.php.net/manual/en/ds-map.filter.php
*/
public function filter(callable $callback = null): Map
public function filter(?callable $callback = null): Map
{
}
@ -2105,7 +2105,7 @@ namespace Ds {
* callback returned TRUE, or all values that convert to TRUE if a
* callback was not provided.
*/
public function filter(callable $callback = null): Set
public function filter(?callable $callback = null): Set
{
}

View File

@ -277,7 +277,7 @@ function enchant_dict_describe ($dict) {}
* </p>
* @return bool <b>TRUE</b> if the word is correctly spelled or <b>FALSE</b>
*/
function enchant_dict_quick_check ($dict, $word, array &$suggestions = null) {}
function enchant_dict_quick_check ($dict, $word, ?array &$suggestions = null) {}
/**
* @deprecated 8.0

View File

@ -270,7 +270,7 @@ final class EventBase
*
* @see https://php.net/manual/en/eventbase.construct.php
*/
public function __construct(EventConfig $cfg = null)
public function __construct(?EventConfig $cfg = null)
{
}
@ -825,7 +825,7 @@ final class EventBufferEvent
* @see https://php.net/manual/en/eventbufferevent.construct.php
*/
#[Pure]
public function __construct(EventBase $base, $socket = null, int $options = 0, callable $readcb = null, callable $writecb = null, callable $eventcb = null)
public function __construct(EventBase $base, $socket = null, int $options = 0, ?callable $readcb = null, ?callable $writecb = null, ?callable $eventcb = null)
{
}
@ -1422,11 +1422,11 @@ final class EventHttp
* Constructs EventHttp object(the HTTP server).
*
* @param EventBase $base
* @param null|EventSslContext $ctx = null
* @param null|EventSslContext $ctx
*
* @see https://secure.php.net/manual/en/eventhttp.construct.php
*/
public function __construct(EventBase $base, EventSslContext $ctx = null)
public function __construct(EventBase $base, ?EventSslContext $ctx = null)
{
}
@ -1581,12 +1581,12 @@ class EventHttpConnection
* @param EventDnsBase $dns_base
* @param string $address
* @param int $port
* @param null|EventSslContext $ctx = null
* @param null|EventSslContext $ctx
*
* @see https://secure.php.net/manual/en/eventhttpconnection.construct.php
*/
#[Pure]
public function __construct(EventBase $base, EventDnsBase $dns_base, string $address, int $port, EventSslContext $ctx = null)
public function __construct(EventBase $base, EventDnsBase $dns_base, string $address, int $port, ?EventSslContext $ctx = null)
{
}

View File

@ -92,7 +92,7 @@ function expect_popen(string $command)
* @since PECL expect >= 0.1.0
* @link https://www.php.net/manual/en/function.expect-expectl.php
*/
function expect_expectl($expect, array $cases, array &$match = []): int
function expect_expectl($expect, array $cases, array &$match = array()): int
{
unset ($expect, $cases, $match);
return 0;

View File

@ -13,4 +13,4 @@ function fpm_get_status() : array { }
* @link https://php.net/manual/en/install.fpm.php
* @since 5.3.3
*/
function fastcgi_finish_request() { }
function fastcgi_finish_request() {};

View File

@ -443,7 +443,7 @@ namespace Grpc
*
* @throws \InvalidArgumentException
*/
public function __construct($target, $args = []) {}
public function __construct($target, $args = array()) {}
/**
* Get the endpoint this call/stream is connected to

View File

@ -895,7 +895,7 @@ class HttpRequest {
* an associative array with request options
* </p>
*/
public function __construct ($url = null, $request_method = null, array $options = null ) {}
public function __construct ($url = null, $request_method = null, ?array $options = null ) {}
/**
* (PECL pecl_http &gt;= 0.10.0)<br/>
@ -908,7 +908,7 @@ class HttpRequest {
* </p>
* @return bool true on success or false on failure.
*/
public function setOptions (array $options = null ) {}
public function setOptions (?array $options = null ) {}
/**
* (PECL pecl_http &gt;= 0.10.0)<br/>
@ -929,7 +929,7 @@ class HttpRequest {
* </p>
* @return bool true on success or false on failure.
*/
public function setSslOptions (array $options = null ) {}
public function setSslOptions (?array $options = null ) {}
/**
* (PECL pecl_http &gt;= 0.10.0)<br/>
@ -981,7 +981,7 @@ class HttpRequest {
* </p>
* @return bool true on success or false on failure.
*/
public function setHeaders ( array $headers = null ) {}
public function setHeaders ( ?array $headers = null ) {}
/**
* (PECL pecl_http &gt;= 0.10.0)<br/>
@ -1013,7 +1013,7 @@ class HttpRequest {
* </p>
* @return bool true on success or false on failure.
*/
public function setCookies ( array $cookies = null ) {}
public function setCookies ( ?array $cookies = null ) {}
/**
* (PECL pecl_http &gt;= 1.0.0)<br/>
@ -1342,7 +1342,7 @@ class HttpRequest {
* @return stdClass[] an array of stdClass objects like http_parse_cookie would return.
*/
#[Pure]
public function getResponseCookies ($flags = null, array $allowed_extras = null ) {}
public function getResponseCookies ($flags = null, ?array $allowed_extras = null ) {}
/**
* (PECL pecl_http &gt;= 0.10.0)<br/>
@ -1579,7 +1579,7 @@ class HttpRequestPool implements Countable, Iterator {
* HttpRequest object to attach
* </p>
*/
public function __construct ( HttpRequest $request = null) {}
public function __construct ( ?HttpRequest $request = null) {}
/**
* (PECL pecl_http &gt;= 0.10.0)<br/>
@ -2026,7 +2026,7 @@ class HttpResponse {
* @param null|int $status [optional]
* @return void
*/
public static function redirect ($url = null, array $params = null , $session = null, $status = null) {}
public static function redirect ($url = null, ?array $params = null , $session = null, $status = null) {}
/**
* (PECL pecl_http &gt;= 0.12.0)<br/>
@ -2202,7 +2202,7 @@ function http_date ($timestamp = null) {}
* </p>
* @return string|false the new URL as string on success or false on failure.
*/
function http_build_url ($url = null, $parts = null, $flags = null, array &$new_url = null ) {}
function http_build_url ($url = null, $parts = null, $flags = null, ?array &$new_url = null ) {}
/**
* (PECL pecl_http &gt;= 0.23.0)<br/>
@ -2234,7 +2234,7 @@ function http_build_str (array $query, $prefix = null, $arg_separator = null) {}
* </p>
* @return string the negotiated language or the default language (i.e. first array entry) if none match.
*/
function http_negotiate_language (array $supported, array &$result = null ) {}
function http_negotiate_language (array $supported, ?array &$result = null ) {}
/**
* (PECL pecl_http &gt;= 0.1.0)<br/>
@ -2248,7 +2248,7 @@ function http_negotiate_language (array $supported, array &$result = null ) {}
* </p>
* @return string the negotiated charset or the default charset (i.e. first array entry) if none match.
*/
function http_negotiate_charset (array $supported, array &$result = null ) {}
function http_negotiate_charset (array $supported, ?array &$result = null ) {}
/**
* (PECL pecl_http &gt;= 0.19.0)<br/>
@ -2262,7 +2262,7 @@ function http_negotiate_charset (array $supported, array &$result = null ) {}
* </p>
* @return string the negotiated content type or the default content type (i.e. first array entry) if none match.
*/
function http_negotiate_content_type (array $supported, array &$result = null ) {}
function http_negotiate_content_type (array $supported, ?array &$result = null ) {}
/**
* (PECL pecl_http &gt;= 0.1.0)<br/>
@ -2282,7 +2282,7 @@ function http_negotiate_content_type (array $supported, array &$result = null )
* </p>
* @return void|false returns false or exits with the specified redirection status code
*/
function http_redirect ($url = null, array $params = null , $session = null, $status = null) {}
function http_redirect ($url = null, ?array $params = null , $session = null, $status = null) {}
/**
* (PECL pecl_http &gt;= 0.10.0)<br/>
@ -2489,7 +2489,7 @@ function http_parse_headers ($header) {}
* @return stdClass|false a stdClass object on success or false on failure.
*/
#[Pure]
function http_parse_cookie ($cookie, $flags = null, array $allowed_extras = null ) {}
function http_parse_cookie ($cookie, $flags = null, ?array $allowed_extras = null ) {}
/**
* (PECL pecl_http &gt;= 1.2.0)<br/>
@ -2605,7 +2605,7 @@ function http_persistent_handles_ident ($ident) {}
* </p>
* @return string
*/
function http_get ($url, array $options = null , array &$info = null ) {}
function http_get ($url, ?array $options = null, ?array &$info = null) {}
/**
* (PECL pecl_http &gt;= 0.1.0)<br/>
@ -2622,7 +2622,7 @@ function http_get ($url, array $options = null , array &$info = null ) {}
* </p>
* @return string
*/
function http_head ($url = null, array $options = null , array &$info = null ) {}
function http_head ($url = null, ?array $options = null, ?array &$info = null) {}
/**
* (PECL pecl_http &gt;= 0.1.0)<br/>
@ -2640,7 +2640,7 @@ function http_head ($url = null, array $options = null , array &$info = null )
* </p>
* @return string
*/
function http_post_data ($url, $data = null, array $options = null , array &$info = null ) {}
function http_post_data ($url, $data = null, ?array $options = null, ?array &$info = null) {}
/**
* (PECL pecl_http &gt;= 0.10.0)<br/>
@ -2662,13 +2662,7 @@ function http_post_data ($url, $data = null, array $options = null , array &$in
* </p>
* @return string
*/
function http_post_fields (
$url,
array $data = null,
array $files = null,
array $options = null,
array &$info = null
) {}
function http_post_fields ($url, ?array $data = null, ?array $files = null, ?array $options = null , ?array &$info = null) {}
/**
* (PECL pecl_http &gt;= 0.25.0)<br/>
@ -2687,7 +2681,7 @@ function http_post_fields (
* </p>
* @return string
*/
function http_put_data ($url, $data = null, array $options = null , array &$info = null ) {}
function http_put_data ($url, $data = null, ?array $options = null, ?array &$info = null) {}
/**
* (PECL pecl_http &gt;= 0.10.0)<br/>
@ -2706,7 +2700,7 @@ function http_put_data ($url, $data = null, array $options = null , array &$inf
* </p>
* @return string
*/
function http_put_file ($url, $file = null, array $options = null , array &$info = null ) {}
function http_put_file ($url, $file = null, ?array $options = null, ?array &$info = null) {}
/**
* (PECL pecl_http &gt;= 0.10.0)<br/>
@ -2725,7 +2719,7 @@ function http_put_file ($url, $file = null, array $options = null , array &$inf
* </p>
* @return string
*/
function http_put_stream ($url, $stream = null, array $options = null , array &$info = null ) {}
function http_put_stream ($url, $stream = null, ?array $options = null, ?array &$info = null) {}
/**
* (PECL pecl_http &gt;= 1.0.0)<br/>
@ -2747,7 +2741,7 @@ function http_put_stream ($url, $stream = null, array $options = null , array &
* </p>
* @return string
*/
function http_request ($method, $url = null, $body = null, array $options = null , array &$info = null ) {}
function http_request ($method, $url = null, $body = null, ?array $options = null, ?array &$info = null) {}
/**
* (PECL pecl_http &gt;= 1.0.0)<br/>

View File

@ -47,7 +47,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
* DISABLE_AUTHENTICATOR - Disable authentication properties
* @return resource|false an IMAP stream on success or <b>FALSE</b> on error.
*/
function imap_open ($mailbox, $username, $password, $options = 0, $n_retries = 0, array $params = null) {}
function imap_open ($mailbox, $username, $password, $options = 0, $n_retries = 0, ?array $params = null) {}
/**
* Reopen IMAP stream to new mailbox

View File

@ -682,7 +682,7 @@ class IntlChar {
* @since 7.0
*/
#[Pure]
public static function hasBinaryProperty($codepoint, $property){}
static public function hasBinaryProperty($codepoint, $property){}
/**
* @link https://php.net/manual/en/intlchar.charage.php

View File

@ -2104,6 +2104,7 @@ class ResourceBundle implements IteratorAggregate {
/**
* @since 8.0
* @return Traversable
*/
#[Pure]
public function getIterator(){}
@ -6768,6 +6769,9 @@ class IntlBreakIterator implements IteratorAggregate
*/
public function setText($text) { }
/**
* @return Traversable
*/
#[Pure]
public function getIterator(){}
}
@ -6793,7 +6797,7 @@ class IntlRuleBasedBreakIterator extends IntlBreakIterator implements Traversabl
*/
public static function createCharacterInstance($locale) { }
/*
/**
* (PHP 5 &gt;=5.5.0)<br/>
* Create break iterator for boundaries of code points
* @link https://secure.php.net/manual/en/intlbreakiterator.createcodepointinstance.php

View File

@ -115,7 +115,8 @@ function ldap_connect (?string $uri, int $port = 389)
/**
* Alias of <b>ldap_unbind</b>
* @link https://php.net/manual/en/function.ldap-close.php
* @param $ldap
* @param resource $ldap
* @return bool
*/
function ldap_close ($ldap): bool {}

View File

@ -103,9 +103,9 @@ class LevelDB{
*/
public function getSnapshot(){}
public static function destroy($name, array $options = []){}
static public function destroy($name, array $options = []){}
public static function repair($name, array $options = []){}
static public function repair($name, array $options = []){}
}
class LevelDBIterator implements Iterator{

View File

@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Sodium;
/**
@ -59,6 +59,7 @@ namespace Sodium;
const CRYPTO_PWHASH_OPSLIMIT_SENSITIVE = 8;
const CRYPTO_PWHASH_MEMLIMIT_SENSITIVE = 536870912;
/**
* Can you access AES-256-GCM? This is only available if you have supported
* hardware.

View File

@ -153,7 +153,7 @@ class MongoClient
* Returns an array of all open connections, and information about each of the servers
* @return array
*/
public static function getConnections ()
static public function getConnections ()
{}
/**
@ -706,7 +706,7 @@ class MongoDB {
* @param array $args [optional] Arguments to be passed to code.
* @return array Returns the result of the evaluation.
*/
public function execute($code, array $args = []) {}
public function execute($code, array $args = array()) {}
/**
* Execute a database command
@ -1030,7 +1030,7 @@ class MongoCollection {
* <dd>If an upsert updated an existing element, this field will be true. For upserts, either this field or upserted will be present (unless an error occurred).
* </dl>
*/
public function insert($a, array $options = []) {}
public function insert($a, array $options = array()) {}
/**
* Inserts multiple documents into this collection
@ -1040,7 +1040,7 @@ class MongoCollection {
* @throws MongoCursorException
* @return array|bool if "safe" is set, returns an associative array with the status of the inserts ("ok") and any error that may have occurred ("err"). Otherwise, returns TRUE if the batch insert was successfully sent, FALSE otherwise.
*/
public function batchInsert(array $a, array $options = []) {}
public function batchInsert(array $a, array $options = array()) {}
/**
* Update records based on a given criteria
@ -1071,7 +1071,7 @@ class MongoCollection {
* @throws MongoCursorException
* @return bool
*/
public function update(array $criteria , array $newobj, array $options = []) {}
public function update(array $criteria , array $newobj, array $options = array()) {}
/**
* (PECL mongo &gt;= 0.9.0)<br/>
@ -1114,7 +1114,7 @@ class MongoCollection {
* <b>MongoCollection::insert()</b>.
* </p>
*/
public function remove(array $criteria = [], array $options = []) {}
public function remove(array $criteria = array(), array $options = array()) {}
/**
* Querys this collection
@ -1123,7 +1123,7 @@ class MongoCollection {
* @param array $fields Fields of the results to return.
* @return MongoCursor
*/
public function find(array $query = [], array $fields = []) {}
public function find(array $query = array(), array $fields = array()) {}
/**
* Retrieve a list of distinct values for the given key across a collection
@ -1153,7 +1153,7 @@ class MongoCollection {
* @param array $options This parameter is an associative array of the form array("name" => <value>, ...).
* @return array|null
*/
public function findOne(array $query = [], array $fields = [], array $options = []) {}
public function findOne(array $query = array(), array $fields = array(), array $options = array()) {}
/**
* Creates an index on the given field(s), or does nothing if the index already exists
@ -1162,7 +1162,7 @@ class MongoCollection {
* @param array $options [optional] This parameter is an associative array of the form array("optionname" => <boolean>, ...).
* @return array Returns the database response.
*/
public function createIndex(array $keys, array $options = []) {}
public function createIndex(array $keys, array $options = array()) {}
/**
* Creates an index on the given field(s), or does nothing if the index already exists
@ -1173,7 +1173,7 @@ class MongoCollection {
* @see MongoCollection::createIndex()
*/
#[Deprecated('Use MongoCollection::createIndex() instead.')]
public function ensureIndex(array $keys, array $options = []) {}
public function ensureIndex(array $keys, array $options = array()) {}
/**
* Deletes an index from this collection
@ -1203,7 +1203,7 @@ class MongoCollection {
* @param array|stdClass $query
* @return int Returns the number of documents matching the query.
*/
public function count($query = []) {}
public function count($query = array()) {}
/**
* Saves an object to this collection
@ -1228,7 +1228,7 @@ class MongoCollection {
* @return array|bool If w was set, returns an array containing the status of the save.
* Otherwise, returns a boolean representing if the array was not empty (an empty array will not be inserted).
*/
public function save($a, array $options = []) {}
public function save($a, array $options = array()) {}
/**
* Creates a database reference
@ -1261,7 +1261,7 @@ class MongoCollection {
* @param array $condition An condition that must be true for a row to be considered.
* @return array
*/
public function group($keys, array $initial, MongoCode $reduce, array $condition = []) {}
public function group($keys, array $initial, MongoCode $reduce, array $condition = array()) {}
}
/**
@ -1294,7 +1294,7 @@ class MongoCursor implements Iterator {
* @param array $query Database query.
* @param array $fields Fields to return.
*/
public function __construct($connection, $ns, array $query = [], array $fields = []) {}
public function __construct($connection, $ns, array $query = array(), array $fields = array()) {}
/**
* (PECL mongo &gt;= 1.2.11)<br/>
@ -1707,7 +1707,7 @@ class MongoGridFS extends MongoCollection {
* @param array $fields Fields to return
* @return MongoGridFSCursor A MongoGridFSCursor
*/
public function find(array $query = [], array $fields = []) {}
public function find(array $query = array(), array $fields = array()) {}
/**
* Stores a file in the database
@ -1717,7 +1717,7 @@ class MongoGridFS extends MongoCollection {
* @param array $options Options for the store. "safe": Check that this store succeeded
* @return mixed Returns the _id of the saved object
*/
public function storeFile($filename, $extra = [], $options = []) {}
public function storeFile($filename, $extra = array(), $options = array()) {}
/**
* Chunkifies and stores bytes in the database
@ -1727,7 +1727,7 @@ class MongoGridFS extends MongoCollection {
* @param array $options Options for the store. "safe": Check that this store succeeded
* @return mixed The _id of the object saved
*/
public function storeBytes($bytes, $extra = [], $options = []) {}
public function storeBytes($bytes, $extra = array(), $options = array()) {}
/**
* Returns a single file matching the criteria
@ -1736,7 +1736,7 @@ class MongoGridFS extends MongoCollection {
* @param array $fields Fields of the results to return.
* @return MongoGridFSFile|null
*/
public function findOne(array $query = [], array $fields = []) {}
public function findOne(array $query = array(), array $fields = array()) {}
/**
* Removes files from the collections
@ -1746,7 +1746,7 @@ class MongoGridFS extends MongoCollection {
* @throws MongoCursorException
* @return bool
*/
public function remove(array $criteria = [], array $options = []) {}
public function remove(array $criteria = array(), array $options = array()) {}
/**
* Delete a file from the database
@ -1763,7 +1763,7 @@ class MongoGridFS extends MongoCollection {
* @param array $metadata An array of extra fields for the uploaded file.
* @return mixed Returns the _id of the uploaded file.
*/
public function storeUpload($name, array $metadata = []) {}
public function storeUpload($name, array $metadata = array()) {}
/**
@ -1781,7 +1781,7 @@ class MongoGridFS extends MongoCollection {
* @param array $extra Other metadata to add to the file saved
* @return mixed Returns the _id of the saved object
*/
public function put($filename, array $extra = []) {}
public function put($filename, array $extra = array()) {}
}
@ -1990,7 +1990,7 @@ class MongoCode {
* @param string $code A string of code
* @param array $scope The scope to use for the code
*/
public function __construct($code, array $scope = []) {}
public function __construct($code, array $scope = array()) {}
/**
* Returns this code as a string

View File

@ -889,7 +889,7 @@ namespace MongoDB {}
* @param array $options
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function __construct(array $options = [])
public final function __construct(array $options = [])
{
}
@ -923,7 +923,7 @@ namespace MongoDB {}
* @return mixed
* @throws InvalidArgumentException on argument parsing errors.
*/
final public function insert($document)
public final function insert($document)
{
}
@ -2126,7 +2126,7 @@ namespace MongoDB {}
* @param string $data
* @param integer $type
*/
final public function __construct($data, $type)
public final function __construct($data, $type)
{
}
@ -2448,7 +2448,7 @@ namespace MongoDB {}
* @param string|null $id A 24-character hexadecimal string. If not provided, the driver will generate an ObjectId.
* @throws InvalidArgumentException if id is not a 24-character hexadecimal string.
*/
final public function __construct($id = null)
public final function __construct($id = null)
{
}
@ -2467,7 +2467,7 @@ namespace MongoDB {}
* @link https://secure.php.net/manual/en/mongodb-bson-objectid.gettimestamp.php
* @return int the timestamp component of this ObjectId
*/
final public function getTimestamp()
public final function getTimestamp()
{
}
@ -2514,7 +2514,7 @@ namespace MongoDB {}
* @param string $pattern
* @param string $flags [optional]
*/
final public function __construct($pattern, $flags = "")
public final function __construct($pattern, $flags = "")
{
}

View File

@ -1147,6 +1147,7 @@ class mysqli_result implements IteratorAggregate
/**
* @since 8.0
* @return Traversable
*/
public function getIterator(){}
}
@ -1650,6 +1651,7 @@ function mysqli_stmt_execute (mysqli_stmt $statement): bool {}
* Alias for <b>mysqli_stmt_execute</b>
* @link https://php.net/manual/en/function.mysqli-execute.php
* @param mysqli_stmt $statement
* @return bool
*/
#[Deprecated(since: '5.3')]
function mysqli_execute (mysqli_stmt $statement): bool {}
@ -1738,7 +1740,7 @@ function mysqli_fetch_assoc (mysqli_result $result): ?array {}
* To access the other column(s) of the same name,
* you either need to access the result with numeric indices by using mysqli_fetch_row() or add alias names.
*/
function mysqli_fetch_object (mysqli_result $result, string $class = 'stdClass', array $constructor_args = []): ?object {}
function mysqli_fetch_object (mysqli_result $result, string $class = 'stdClass', array $constructor_args = array()): ?object {}
/**
* Get a result row as an enumerated array

View File

@ -39,7 +39,7 @@ define('OAUTH_SIGNATURE_METHOD_REJECTED', 8192);
* @param array $request_parameters
* @return string
*/
function oauth_get_sbs($http_method, $uri, $request_parameters = []) { }
function oauth_get_sbs($http_method, $uri, $request_parameters = array()) { }
/**
* Encode a URI to RFC 3986
@ -132,7 +132,7 @@ class OAuth {
* @throws \OAuthException
* @return mixed
*/
public function fetch($protected_resource_url, $extra_parameters = [], $http_method = null, $http_headers = []) { }
public function fetch($protected_resource_url, $extra_parameters = array(), $http_method = null, $http_headers = array()) { }
/**
* Fetch an access token

View File

@ -34,7 +34,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 mixed $key
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $key
* @param string &$output
* @param string|null $passphrase [optional] <p>
* The key is optionally protected by <i>passphrase</i>.
@ -53,7 +53,7 @@ function openssl_pkey_export($key, &$output, ?string $passphrase, ?array $option
/**
* Gets an exportable representation of a key into a file
* @link https://php.net/manual/en/function.openssl-pkey-export-to-file.php
* @param mixed $key
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $key
* @param string $output_filename <p>
* Path to the output file.
* </p>
@ -98,7 +98,7 @@ function openssl_pkey_get_private($private_key, ?string $passphrase = "")
/**
* Extract public key from certificate and prepare it for use
* @link https://php.net/manual/en/function.openssl-pkey-get-public.php
* @param mixed $public_key <p><em><b>certificate</b></em> can be one of the following:
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key <p><em><b>certificate</b></em> can be one of the following:
* <ol>
* <li>an X.509 certificate resource</li>
* <li>a string having the format
@ -171,7 +171,7 @@ function openssl_get_privatekey($private_key, ?string $passphrase)
/**
* Alias of <b>openssl_pkey_get_public</b>
* @link https://php.net/manual/en/function.openssl-get-publickey.php
* @param mixed $public_key <p>
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key <p>
* <em><b>certificate</b></em> can be one of the following:
* <ol>
* <li>an X.509 certificate resource</li>
@ -350,7 +350,7 @@ function openssl_x509_checkpurpose(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCe
* @param OpenSSLCertificate|string|resource $certificate <p>
* The certificate.
* </p>
* @param mixed $private_key <p>
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key <p>
* The private key.
* </p>
* @return bool true if <i>key</i> is the private key that
@ -389,7 +389,7 @@ function openssl_x509_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenSSL
* Verifies digital signature of x509 certificate against a public key
* @link https://www.php.net/manual/en/function.openssl-x509-verify.php
* @param OpenSSLCertificate|string|resource $certificate
* @param mixed $public_key
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
* @return int Returns 1 if the signature is correct, 0 if it is incorrect, and -1 on error.
* @since 7.4
*/
@ -402,7 +402,7 @@ function openssl_x509_verify(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertific
* @param string &$output <p>
* On success, this will hold the PKCS#12.
* </p>
* @param mixed $private_key <p>
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key <p>
* Private key component of PKCS#12 file.
* </p>
* @param string $passphrase <p>
@ -422,7 +422,7 @@ function openssl_pkcs12_export(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCertif
* @param string $output_filename <p>
* Path to the output file.
* </p>
* @param mixed $private_key <p>
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key <p>
* Private key component of PKCS#12 file.
* </p>
* @param string $passphrase <p>
@ -586,7 +586,7 @@ function openssl_csr_export_to_file(#[LanguageLevelTypeAware(["8.0" => "OpenSSLC
* If <i>cacert</i> is null, the generated certificate
* will be a self-signed certificate.
* </p>
* @param mixed $private_key <p>
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key <p>
* <i>priv_key</i> is the private key that corresponds to
* <i>cacert</i>.
* </p>
@ -725,7 +725,7 @@ function openssl_cipher_iv_length(string $cipher_algo): int|false
* If the call was successful the signature is returned in
* <i>signature</i>.
* </p>
* @param mixed $private_key
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
* @param string|int $algorithm [optional] <p>
* For more information see the list of Signature Algorithms.
* </p>
@ -739,7 +739,7 @@ function openssl_sign(string $data, &$signature, $private_key, string|int $algor
* @link https://php.net/manual/en/function.openssl-verify.php
* @param string $data
* @param string $signature
* @param mixed $public_key
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
* @param string|int $algorithm [optional] <p>
* For more information see the list of Signature Algorithms.
* </p>
@ -775,7 +775,7 @@ function openssl_seal(string $data, &$sealed_data, &$encrypted_keys, array $publ
* parameter.
* </p>
* @param string $encrypted_key
* @param mixed $private_key
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
* @param string $cipher_algo [optional] The cipher method.
* @param string|null $iv [optional] The initialization vector.
* @return bool true on success or false on failure.
@ -845,7 +845,7 @@ function openssl_pkcs7_verify(string $input_filename, int $flags, ?string $signe
* <i>outfilename</i>.
* </p>
* @param OpenSSLCertificate|string|resource $certificate
* @param mixed $private_key [optional]
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string|null $private_key [optional]
* @return bool true on success or false on failure.
*/
function openssl_pkcs7_decrypt(string $input_filename, string $output_filename, $certificate, $private_key): bool
@ -857,7 +857,7 @@ function openssl_pkcs7_decrypt(string $input_filename, string $output_filename,
* @param string $input_filename
* @param string $output_filename
* @param OpenSSLCertificate|string|resource $certificate
* @param mixed $private_key
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
* @param array|null $headers <p>
* <i>headers</i> is an array of headers that
* will be prepended to the data after it has been signed (see
@ -912,7 +912,7 @@ function openssl_pkcs7_encrypt(string $input_filename, string $output_filename,
* @link https://php.net/manual/en/function.openssl-private-encrypt.php
* @param string $data
* @param string &$encrypted_data
* @param mixed $private_key
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
* @param int $padding [optional] <p>
* <i>padding</i> can be one of
* <b>OPENSSL_PKCS1_PADDING</b>,
@ -928,7 +928,7 @@ function openssl_private_encrypt(string $data, &$encrypted_data, $private_key, i
* @link https://php.net/manual/en/function.openssl-private-decrypt.php
* @param string $data
* @param string &$decrypted_data
* @param mixed $private_key <p>
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key <p>
* <i>key</i> must be the private key corresponding that
* was used to encrypt the data.
* </p>
@ -951,7 +951,7 @@ function openssl_private_decrypt(string $data, &$decrypted_data, $private_key, i
* @param string &$encrypted_data <p>
* This will hold the result of the encryption.
* </p>
* @param mixed $public_key <p>
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key <p>
* The public key.
* </p>
* @param int $padding [optional] <p>
@ -971,7 +971,7 @@ function openssl_public_encrypt(string $data, &$encrypted_data, $public_key, int
* @link https://php.net/manual/en/function.openssl-public-decrypt.php
* @param string $data
* @param string &$decrypted_data
* @param mixed $public_key <p>
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key <p>
* <i>key</i> must be the public key corresponding that
* was used to encrypt the data.
* </p>
@ -1025,9 +1025,10 @@ function openssl_dh_compute_key(string $public_key, #[LanguageLevelTypeAware(["8
{ }
/**
* @param $public_key
* @param $private_key
* @param $key_length
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $public_key
* @param OpenSSLAsymmetricKey|OpenSSLCertificate|array|string $private_key
* @param int $key_length
* @return string|false
* @since 7.3
*/
function openssl_pkey_derive($public_key, $private_key, int $key_length): string|false {}

View File

@ -47,7 +47,7 @@ final class Channel{
*
* @param null|int $capacity May be Channel::Infinite or a positive integer
*/
public function __construct(int $capacity = null){}
public function __construct(?int $capacity = null){}
/* Access */
@ -62,7 +62,7 @@ final class Channel{
*
* @throws Channel\Error\Existence if channel already exists.
*/
public static function make(string $name, int $capacity = null) : Channel{}
public static function make(string $name, ?int $capacity = null) : Channel{}
/**
* Shall open the channel with the given name

View File

@ -33,7 +33,7 @@ final class Runtime{
* @throws Runtime\Error if thread could not be created
* @throws Runtime\Error\Bootstrap if bootstrapping failed
*/
public function __construct(string $bootstrap = null){}
public function __construct(?string $bootstrap = null){}
/* Execute */
@ -41,7 +41,7 @@ final class Runtime{
* Shall schedule task for execution in parallel, passing argv at execution time.
*
* @param Closure $task A Closure with specific characteristics.
* @param array $argv An array of arguments with specific characteristics to be passed to task at execution
* @param null|array $argv An array of arguments with specific characteristics to be passed to task at execution
* time.
*
* ### Task Characteristics
@ -93,7 +93,7 @@ final class Runtime{
* @throws Runtime\Error\IllegalParameter if task accepts or argv contains illegal variables.
* @throws Runtime\Error\IllegalReturn if task returns illegally.
*/
public function run(Closure $task, array $argv = null) : ?Future{}
public function run(Closure $task, ?array $argv = null) : ?Future{}
/* Join */

View File

@ -119,7 +119,7 @@ class Pool {
* a custom collector need to be used.</p>
* @return int <p>The number of remaining tasks in the pool to be collected</p>
*/
public function collect( callable $collector = null ) {}
public function collect( ?callable $collector = null ) {}
/**
* (PECL pthreads &gt;= 2.0.0)<br/>
@ -455,7 +455,7 @@ class Worker extends Thread implements Traversable, Countable, ArrayAccess {
* @return int <p>The number of remaining tasks on the worker's stack to be
* collected</p>
*/
public function collect( callable $collector = null ) {}
public function collect( ?callable $collector = null ) {}
/**
* (PECL pthreads &gt;= 2.0.0)<br/>

View File

@ -28,7 +28,7 @@ final class RarArchive implements Traversable
*
* @return RarArchive|false the requested RarArchive instance or FALSE on failure.
*/
public static function open($filename, $password = null, callable $volume_callback = null)
public static function open($filename, $password = null, ?callable $volume_callback = null)
{
}
/**

View File

@ -42,7 +42,7 @@ abstract class RdKafka
*
* @return Topic
*/
public function newTopic($topic_name, TopicConf $topic_conf = null)
public function newTopic($topic_name, ?TopicConf $topic_conf = null)
{
}

View File

@ -7,7 +7,7 @@ class Consumer extends \RdKafka
/**
* @param null|Conf $conf
*/
public function __construct(Conf $conf = null)
public function __construct(?Conf $conf = null)
{
}
@ -17,7 +17,7 @@ class Consumer extends \RdKafka
*
* @return ConsumerTopic
*/
public function newTopic($topic_name, TopicConf $topic_conf = null)
public function newTopic($topic_name, ?TopicConf $topic_conf = null)
{
}

View File

@ -143,7 +143,7 @@ class KafkaConsumer
*
* @return Topic
*/
public function newTopic($topic_name, TopicConf $topic_conf = null)
public function newTopic($topic_name, ?TopicConf $topic_conf = null)
{
}

View File

@ -17,7 +17,7 @@ class Producer extends \RdKafka
*
* @return ProducerTopic
*/
public function newTopic($topic_name, TopicConf $topic_conf = null)
public function newTopic($topic_name, ?TopicConf $topic_conf = null)
{
}
}

View File

@ -3122,7 +3122,7 @@ class Redis
* $redis->zRangeByScore('key', 0, 3, array('withscores' => TRUE, 'limit' => array(1, 1)); // array('val2' => 2)
* </pre>
*/
public function zRangeByScore($key, $start, $end, array $options = [])
public function zRangeByScore($key, $start, $end, array $options = array())
{
}
@ -3135,7 +3135,7 @@ class Redis
*
* @return array
*/
public function zRevRangeByScore($key, $start, $end, array $options = [])
public function zRevRangeByScore($key, $start, $end, array $options = array())
{
}
@ -3423,7 +3423,7 @@ class Redis
* $redis->zUnionStore('ko3', array('k1', 'k2'), array(5, 1)); // 4, 'ko3' => array('val0', 'val2', 'val3', 'val1')
* </pre>
*/
public function zUnionStore($output, $zSetKeys, array $weights = null, $aggregateFunction = 'SUM')
public function zUnionStore($output, $zSetKeys, ?array $weights = null, $aggregateFunction = 'SUM')
{
}
@ -3481,7 +3481,7 @@ class Redis
* $redis->zInterStore('ko4', array('k1', 'k2'), array(1, 5), 'max'); // 2, 'ko4' => array('val3', 'val1')
* </pre>
*/
public function zInterStore($output, $zSetKeys, array $weights = null, $aggregateFunction = 'SUM')
public function zInterStore($output, $zSetKeys, ?array $weights = null, $aggregateFunction = 'SUM')
{
}
@ -4325,7 +4325,7 @@ class Redis
* $redis->eval("return {1,2,3,redis.call('lrange','mylist',0,-1)}}");
* </pre>
*/
public function eval($script, $args = [], $numKeys = 0)
public function eval($script, $args = array(), $numKeys = 0)
{
}
@ -4336,7 +4336,7 @@ class Redis
* @return mixed @see eval()
*/
#[Deprecated(replacement: '%class%->eval(%parametersList%)')]
public function evaluate($script, $args = [], $numKeys = 0)
public function evaluate($script, $args = array(), $numKeys = 0)
{
}
@ -4360,7 +4360,7 @@ class Redis
* $redis->evalSha($sha); // Returns 1
* </pre>
*/
public function evalSha($scriptSha, $args = [], $numKeys = 0)
public function evalSha($scriptSha, $args = array(), $numKeys = 0)
{
}
@ -4370,7 +4370,7 @@ class Redis
* @param int $numKeys
*/
#[Deprecated(replacement: '%class%->evalSha(%parametersList%)')]
public function evaluateSha($scriptSha, $args = [], $numKeys = 0)
public function evaluateSha($scriptSha, $args = array(), $numKeys = 0)
{
}
@ -5054,7 +5054,7 @@ class RedisArray
*
* @link https://github.com/nicolasff/phpredis/blob/master/arrays.markdown
*/
public function __construct($hosts, array $opts = null)
public function __construct($hosts, ?array $opts = null)
{
}

View File

@ -7,7 +7,7 @@
* @author Tommy Zheng <tommy@vlv.pw>
* @link https://github.com/zgb7mtr/phpredis_cluster_phpdoc
*
* @method mixed eval($script, $args = [], $numKeys = 0)
* @method mixed eval($script, $args = array(), $numKeys = 0)
*
*/
class RedisCluster {
@ -2342,7 +2342,7 @@ class RedisCluster {
* // array('val2'=> 2)
* </pre>
*/
public function zRangeByScore($key, $start, $end, array $options = []) { }
public function zRangeByScore($key, $start, $end, array $options = array()) { }
/**
* @see zRangeByScore()
@ -2354,7 +2354,7 @@ class RedisCluster {
*
* @return array
*/
public function zRevRangeByScore($key, $start, $end, array $options = []) { }
public function zRevRangeByScore($key, $start, $end, array $options = array()) { }
/**
* Returns a range of members in a sorted set, by lexicographical range
@ -2467,14 +2467,14 @@ class RedisCluster {
* $redisCluster->zUnionStore('ko3', array('k1', 'k2'), array(5, 1)); // 4, 'ko3' => array('val0', 'val2', 'val3','val1')
* </pre>
*/
public function zUnionStore($Output, $ZSetKeys, array $Weights = null, $aggregateFunction = 'SUM') { }
public function zUnionStore($Output, $ZSetKeys, ?array $Weights = null, $aggregateFunction = 'SUM') { }
/**
* Intersect multiple sorted sets and store the resulting sorted set in a new key
*
* @param string $Output
* @param array $ZSetKeys
* @param array $Weights
* @param null|array $Weights
* @param string $aggregateFunction Either "SUM", "MIN", or "MAX":
* defines the behaviour to use on duplicate entries during the zInterStore.
*
@ -2506,7 +2506,7 @@ class RedisCluster {
* $redisCluster->zInterStore('ko4', array('k1', 'k2'), array(1, 5), 'max'); // 2, 'ko4' => array('val3', 'val1')
* </pre>
*/
public function zInterStore($Output, $ZSetKeys, array $Weights = null, $aggregateFunction = 'SUM') { }
public function zInterStore($Output, $ZSetKeys, ?array $Weights = null, $aggregateFunction = 'SUM') { }
/**
* Deletes a specified member from the ordered set.
@ -2675,7 +2675,7 @@ class RedisCluster {
* $redisCluster->evalSha($sha); // Returns 1
* </pre>
*/
public function evalSha($scriptSha, $args = [], $numKeys = 0) { }
public function evalSha($scriptSha, $args = array(), $numKeys = 0) { }
/**
* Scan the keyspace for keys.

View File

@ -36,7 +36,7 @@ use JetBrains\PhpStorm\Deprecated;
* @see preg_match()
*/
#[Deprecated(reason: "Use preg_match() instead", since: "5.3")]
function ereg ($pattern, $string, array &$regs = null) {}
function ereg ($pattern, $string, ?array &$regs = null) {}
/**
* Replace regular expression

View File

@ -313,7 +313,7 @@ function rpmvercmp (string $evr1, string $evr2) {}
* </p>
* @since 0.1.0
*/
function rpminfo (string $path, bool $full = false, string &$error = null) {}
function rpminfo (string $path, bool $full = false, ?string &$error = null) {}
/**
* Retrieve information about an installed package, from the system RPM database.

View File

@ -120,7 +120,7 @@ function rrd_lastupdate($filename) {}
* @return bool Returns TRUE on success, FALSE otherwise.
* @since PECL rrd >= 0.9.0
*/
function rrd_restore($xml_file, $rrd_file, $options = []) {}
function rrd_restore($xml_file, $rrd_file, $options = array()) {}
/**
* Change some options in the RRD dabase header file. E.g. renames the source for the data etc.

View File

@ -1,5 +1,6 @@
<?php
// Start of session v.
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
@ -399,13 +400,8 @@ function session_set_cookie_params (array $options): bool
* @return void|bool since 7.2.0 returns true on success or false on failure.
*/
#[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")]
function session_set_cookie_params (
array|int $lifetime_or_options,
?string $path,
?string $domain,
?bool $secure = false,
?bool $httponly = false
) {}
function session_set_cookie_params (array|int $lifetime_or_options, ?string $path, ?string $domain, ?bool $secure = false, ?bool $httponly = false)
{}
/**
* Get the session cookie parameters

View File

@ -343,6 +343,7 @@ function sodium_pad (string $string, int $length): string {}
* @link https://php.net/manual/en/function.sodium-unpad.php
* @param string $string
* @param int $block_size
* @return string
* @throws SodiumException
* @since 7.2
*/
@ -1136,7 +1137,7 @@ function sodium_crypto_pwhash_str_needs_rehash(string $password, int $opslimit,
function sodium_crypto_secretstream_xchacha20poly1305_keygen(): string {}
/**
* @param string$key
* @param string $key
* @return array
* @throws SodiumException
* @since 7.2
@ -1149,6 +1150,7 @@ function sodium_crypto_secretstream_xchacha20poly1305_init_push(string $key): ar
* @param string $message
* @param string $additional_data [optional]
* @param int $tag [optional]
* @return string
* @throws SodiumException
* @since 7.2
* @see https://www.php.net/manual/en/function.sodium-crypto-secretstream-xchacha20poly1305-push.php

View File

@ -960,7 +960,7 @@ define('SQLSRV_CURSOR_CLIENT_BUFFERED', 'buffered');
* See {@link http://msdn.microsoft.com/en-us/library/ff628167.aspx Connection Options} for a list of the supported keys for the array.
* @return resource|false A PHP connection resource. If a connection cannot be successfully created and opened, false is returned.
*/
function sqlsrv_connect($server_name, $connection_info = []){}
function sqlsrv_connect($server_name, $connection_info = array()){}
/**
* Closes a connection. Frees all resources associated with the connection.
@ -1211,7 +1211,7 @@ function sqlsrv_get_config($setting){}
* <li>SQLSRV_CURSOR_CLIENT_BUFFERED</li></ul>
* @return resource|false A statement resource. If the statement resource cannot be created, false is returned.
*/
function sqlsrv_prepare($conn, $tsql, $params = [], $options = []){}
function sqlsrv_prepare($conn, $tsql, $params = array(), $options = array()){}
/**
* Executes a statement prepared with {@see sqlsrv_prepare}
@ -1285,7 +1285,7 @@ function sqlsrv_execute($stmt){}
* <li>SQLSRV_CURSOR_CLIENT_BUFFERED</li></ul>
* @return resource|false A statement resource. If the statement cannot be created and/or executed, false is returned.
*/
function sqlsrv_query($conn, $tsql, $params = [], $options = []){}
function sqlsrv_query($conn, $tsql, $params = array(), $options = array()){}
/**
* Makes the next row in a result set available for reading.

View File

@ -175,7 +175,7 @@
* </p>
* @return resource|false a resource on success, or false on error.
*/
function ssh2_connect ($host, $port = null, array $methods = null , array $callbacks = null ) {}
function ssh2_connect ($host, $port = null, ?array $methods = null , ?array $callbacks = null ) {}
/**
* (PECL ssh2 &gt;= 1.0)<br/>
@ -337,7 +337,7 @@ function ssh2_forward_accept () {}
* </p>
* @return resource
*/
function ssh2_shell ($session, $term_type = null, array $env = null , $width = null, $height = null, $width_height_type = null) {}
function ssh2_shell ($session, $term_type = null, ?array $env = null , $width = null, $height = null, $width_height_type = null) {}
/**
* (PECL ssh2 &gt;= 0.9.0)<br/>
@ -368,7 +368,7 @@ function ssh2_shell ($session, $term_type = null, array $env = null , $width = n
* </p>
* @return resource|false a stream on success or false on failure.
*/
function ssh2_exec ($session, $command, $pty = null, array $env = null , $width = null, $height = null, $width_height_type = null) {}
function ssh2_exec ($session, $command, $pty = null, ?array $env = null , $width = null, $height = null, $width_height_type = null) {}
/**
* (PECL ssh2 &gt;= 0.9.0)<br/>
@ -629,7 +629,7 @@ function ssh2_publickey_init ($session) {}
* </p>
* @return bool true on success or false on failure.
*/
function ssh2_publickey_add ($pkey, $algoname, $blob, $overwrite = null, array $attributes = null ) {}
function ssh2_publickey_add ($pkey, $algoname, $blob, $overwrite = null, ?array $attributes = null ) {}
/**
* (PECL ssh2 &gt;= 0.10)<br/>

View File

@ -33,7 +33,7 @@ define("__COMPILER_HALT_OFFSET__",0);
* @since 5.4
*/
function hex2bin(string $string): string|false
{}
{};
/**
* Get or Set the HTTP response code

View File

@ -16,7 +16,7 @@ namespace {
* </p>
* @return array an array of the parameters. The parameters can be given an index with the => operator.
*/
function PS_UNRESERVE_PREFIX_array(...$_){}
function PS_UNRESERVE_PREFIX_array(...$_){};
/**
* Assigns a list of variables in one operation.
@ -25,7 +25,7 @@ namespace {
* @param mixed ...$_ [optional] <p>Another variable ...</p>
* @return array the assigned array.
*/
function PS_UNRESERVE_PREFIX_list($var1, ...$_){}
function PS_UNRESERVE_PREFIX_list($var1, ...$_){};
/**
* <p>Terminates execution of the script. Shutdown functions and object destructors will always be executed even if exit is called.</p>
@ -43,7 +43,7 @@ namespace {
* </p>
* @return void
*/
function PS_UNRESERVE_PREFIX_die($status = ""){}
function PS_UNRESERVE_PREFIX_die($status = ""){};
/**
* <p>Terminates execution of the script. Shutdown functions and object destructors will always be executed even if exit is called.</p>
@ -61,7 +61,7 @@ namespace {
* </p>
* @return void
*/
function PS_UNRESERVE_PREFIX_exit($status = ""){}
function PS_UNRESERVE_PREFIX_exit($status = ""){};
/**
* Determine whether a variable is considered to be empty. A variable is considered empty if it does not exist or if its value
@ -90,7 +90,7 @@ namespace {
* </ul>
* </p>
*/
function PS_UNRESERVE_PREFIX_empty($var){}
function PS_UNRESERVE_PREFIX_empty($var){};
/**
* <p>Determine if a variable is set and is not <b>NULL</b>.</p>
@ -103,7 +103,7 @@ namespace {
* @param mixed ...$_ [optional] <p>Another variable ...</p>
* @return bool Returns <b>TRUE</b> if var exists and has value other than <b>NULL</b>, <b>FALSE</b> otherwise.
*/
function PS_UNRESERVE_PREFIX_isset($var, ...$_){}
function PS_UNRESERVE_PREFIX_isset($var, ...$_){};
/**
* <p>Destroys the specified variables.</p>
@ -113,7 +113,7 @@ namespace {
* @param mixed ...$_ [optional] <p>Another variable ...</p>
* @return void
*/
function PS_UNRESERVE_PREFIX_unset($var, ...$_){}
function PS_UNRESERVE_PREFIX_unset($var, ...$_){};
/**
* <p>Evaluates the given code as PHP.</p>
@ -145,7 +145,7 @@ namespace {
* case <b>eval()</b> returned <b>FALSE</b> and execution of the following code continued normally. It is not possible to catch a parse
* error in <b>eval()</b> using set_error_handler().
*/
function PS_UNRESERVE_PREFIX_eval($code){}
function PS_UNRESERVE_PREFIX_eval($code){};
/**
* Generator objects are returned from generators, cannot be instantiated via new.

View File

@ -3,6 +3,7 @@
use JetBrains\PhpStorm\ArrayShape;
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;

View File

@ -534,7 +534,7 @@ function fgets ($stream, ?int $length): string|false
* @removed 8.0
*/
#[Deprecated(since: '7.3')]
function fgetss ($handle, int $length = null, $allowable_tags = null): bool|string
function fgetss ($handle, ?int $length = null, $allowable_tags = null): bool|string
{}
/**

View File

@ -1052,7 +1052,7 @@ function array_unshift (array &$array, ...$values): int
* </p>
* <p>
* If replacement is just one element it is
* not necessary to put []
* not necessary to put array()
* around it, unless the element is an array itself.
* </p>
* @return array the array consisting of the extracted elements.

View File

@ -758,7 +758,6 @@ function array_map(callable $callback, array $array, array ...$arrays): array {
function array_chunk(array $array, int $length, bool $preserve_keys): array
{ }
/**
* Creates an array by using one array for keys and another for its values
* @link https://php.net/manual/en/function.array-combine.php

View File

@ -15,7 +15,7 @@ class Stomp
* @param string $password The password
* @param array $headers additional headers (example: receipt).
*/
public function __construct($broker = null, $username = null, $password = null, array $headers = []) {}
public function __construct($broker = null, $username = null, $password = null, array $headers = array()) {}
/**
* Get the current stomp session ID
@ -39,7 +39,7 @@ class Stomp
* @param array $headers additional headers (example: receipt).
* @return boolean TRUE on success, or FALSE on failure
*/
public function send($destination, $msg, array $headers = []) {}
public function send($destination, $msg, array $headers = array()) {}
/**
* Register to listen to a given destination
@ -48,7 +48,7 @@ class Stomp
* @param array $headers additional headers (example: receipt).
* @return boolean TRUE on success, or FALSE on failure
*/
public function subscribe($destination, array $headers = []) {}
public function subscribe($destination, array $headers = array()) {}
/**
* Remove an existing subscription
@ -57,7 +57,7 @@ class Stomp
* @param array $headers additional headers (example: receipt).
* @return boolean TRUE on success, or FALSE on failure
*/
public function unsubscribe($destination, array $headers = []) {}
public function unsubscribe($destination, array $headers = array()) {}
/**
* Indicate whether or not there is a frame ready to read
@ -105,7 +105,7 @@ class Stomp
* @param array $headers additional headers (example: receipt).
* @return boolean TRUE on success, or FALSE on failure
*/
public function ack($msg, array $headers = []) {}
public function ack($msg, array $headers = array()) {}
/**
* Get the last stomp error
@ -181,7 +181,7 @@ function stomp_version() {}
* @param array $headers additional headers (example: receipt).
* @return resource|false stomp connection identifier on success, or FALSE on failure
*/
function stomp_connect($broker = null, $username = null, $password = null, array $headers = []) {}
function stomp_connect($broker = null, $username = null, $password = null, array $headers = array()) {}
/**
* Gets the current stomp session ID
@ -208,7 +208,7 @@ function stomp_close($link) {}
* @param array $headers additional headers (example: receipt).
* @return boolean TRUE on success, or FALSE on failure
*/
function stomp_send($link, $destination, $msg, array $headers = []) {}
function stomp_send($link, $destination, $msg, array $headers = array()) {}
/**
* Registers to listen to a given destination
@ -218,7 +218,7 @@ function stomp_send($link, $destination, $msg, array $headers = []) {}
* @param array $headers additional headers (example: receipt).
* @return boolean TRUE on success, or FALSE on failure
*/
function stomp_subscribe($link, $destination, array $headers = []) {}
function stomp_subscribe($link, $destination, array $headers = array()) {}
/**
* Removes an existing subscription
@ -228,7 +228,7 @@ function stomp_subscribe($link, $destination, array $headers = []) {}
* @param array $headers additional headers (example: receipt).
* @return boolean TRUE on success, or FALSE on failure
*/
function stomp_unsubscribe($link, $destination, array $headers = []) {}
function stomp_unsubscribe($link, $destination, array $headers = array()) {}
/**
* Indicates whether or not there is a frame ready to read
@ -281,7 +281,7 @@ function stomp_abort($link, $transaction_id) {}
* @param array $headers additional headers (example: receipt).
* @return boolean TRUE on success, or FALSE on failure
*/
function stomp_ack($link, $msg, array $headers = []) {}
function stomp_ack($link, $msg, array $headers = array()) {}
/**
* Gets the last stomp error

View File

@ -7,7 +7,7 @@
*
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$GLOBALS = [];
$GLOBALS = array();
/**
* @xglobal $_COOKIE array
@ -17,7 +17,7 @@ $GLOBALS = [];
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_COOKIE = [];
$_COOKIE = array();
/**
* @xglobal $_ENV array
@ -29,11 +29,11 @@ $_COOKIE = [];
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_ENV = [];
$_ENV = array();
/**
* @deprecated 4.1
*/
$HTTP_ENV_VARS = [];
$HTTP_ENV_VARS = array();
/**
* @xglobal $_FILES array
@ -46,11 +46,11 @@ $HTTP_ENV_VARS = [];
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_FILES = [];
$_FILES = array();
/**
* @deprecated 4.1
*/
$HTTP_POST_FILES = [];
$HTTP_POST_FILES = array();
/**
@ -63,11 +63,11 @@ $HTTP_POST_FILES = [];
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_GET = [];
$_GET = array();
/**
* @deprecated 4.1
*/
$HTTP_GET_VARS = [];
$HTTP_GET_VARS = array();
/**
* @xglobal $_POST array
@ -80,11 +80,11 @@ $HTTP_GET_VARS = [];
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_POST = [];
$_POST = array();
/**
* @deprecated 4.1
*/
$HTTP_POST_VARS = [];
$HTTP_POST_VARS = array();
/**
* @xglobal $_REQUEST array
@ -104,7 +104,7 @@ $HTTP_POST_VARS = [];
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_REQUEST = [];
$_REQUEST = array();
/**
* @xglobal $_SERVER array
@ -116,11 +116,11 @@ $_REQUEST = [];
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_SERVER = [];
$_SERVER = array();
/**
* @deprecated 4.1
*/
$HTTP_SERVER_VARS = [];
$HTTP_SERVER_VARS = array();
$_SERVER['PHP_SELF'] = '';
$_SERVER['argv'] = '';
@ -171,11 +171,11 @@ $_SERVER['ORIG_PATH_INFO'] = '';
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_SESSION = [];
$_SESSION = array();
/**
* @deprecated 4.1
*/
$HTTP_SESSION_VARS = [];
$HTTP_SESSION_VARS = array();
/**
* @xglobal $argc int
@ -195,7 +195,7 @@ $argc = 0;
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$argv = [];
$argv = array();
/**
* @xglobal $HTTP_RAW_POST_DATA string
@ -217,7 +217,7 @@ $HTTP_RAW_POST_DATA = '';
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$http_response_header = [];
$http_response_header = array();
/**
* @xglobal $php_errormsg string

View File

@ -14,7 +14,6 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.checkprobabilitymodel.php
*/
public function checkProbabilityModel () : bool {}
/**
* Construct a new SVMModel
*
@ -24,7 +23,6 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.construct.php
*/
public function __construct ( string $filename = '' ) {}
/**
* Get the labels the model was trained on
*
@ -33,7 +31,6 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.getlabels.php
*/
public function getLabels () : array {}
/**
* Returns the number of classes the model was trained with
*
@ -42,7 +39,6 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.getnrclass.php
*/
public function getNrClass () : int {}
/**
* Get the SVM type the model was trained with
*
@ -51,7 +47,6 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.getsvmtype.php
*/
public function getSvmType () : int {}
/**
* Get the sigma value for regression types
*
@ -60,7 +55,6 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.getsvrprobability.php
*/
public function getSvrProbability () : float {}
/**
* Load a saved SVM Model
* @param string $filename The filename of the model.
@ -69,7 +63,6 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.load.php
*/
public function load ( string $filename ) : bool {}
/**
* Return class probabilities for previous unseen data
*
@ -80,7 +73,6 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.predict-probability.php
*/
public function predict_probability ( array $data ) : float {}
/**
* Predict a value for previously unseen data
*
@ -91,7 +83,6 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.predict.php
*/
public function predict ( array $data ) : float {}
/**
* Save a model to a file, for later use
* @param string $filename The file to save the model to.

View File

@ -655,7 +655,7 @@ function svn_propget ($path, $property_name, $recurse = false, $revision) {}
* </p>
* @return resource What the function returns, first on success, then on failure.
*/
function svn_repos_create ($path, array $config = null, array $fsconfig = null) {}
function svn_repos_create ($path, ?array $config = null, ?array $fsconfig = null) {}
/**
* (PECL svn &gt;= 0.1.0)<br/>

View File

@ -666,7 +666,7 @@ function uv_stdio_new($fd, int $flags) {}
*
* @return resource
*/
function uv_spawn($loop, string $command, array $args, array $stdio, string $cwd, array $env = [], callable $callback = null, int $flags = null, array $options = null) {}
function uv_spawn($loop, string $command, array $args, array $stdio, string $cwd, array $env = array(), ?callable $callback = null, ?int $flags = null, ?array $options = null) {}
/**
* Send signal to specified uv process resource.

View File

@ -2,6 +2,7 @@
// Start of xml v.
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
@ -383,7 +384,7 @@ function xml_parse_into_struct (#[LanguageLevelTypeAware(["8.0" => "XmlParser"],
* section.
*/
#[Pure]
function xml_get_error_code (resource $parser): int|false {}
function xml_get_error_code ($parser): int|false {}
#[PhpStormStubsElementAvailable('8.0')]
/**

View File

@ -49,7 +49,7 @@ function xmlrpc_decode_request ($xml, &$method, $encoding = null) {}
* <p>output_type: php, xml</p>
* @return string a string containing the XML representation of the request.
*/
function xmlrpc_encode_request ($method, $params, array $output_options = null) {}
function xmlrpc_encode_request ($method, $params, ?array $output_options = null) {}
/**
* Gets xmlrpc type for a PHP value
@ -121,7 +121,7 @@ function xmlrpc_server_register_method ($server, $method_name, $function) {}
* @param null|array $output_options [optional]
* @return string
*/
function xmlrpc_server_call_method ($server, $xml, $user_data, array $output_options = null) {}
function xmlrpc_server_call_method ($server, $xml, $user_data, ?array $output_options = null) {}
/**
* Decodes XML into a list of method descriptions

View File

@ -540,7 +540,7 @@ function xmlwriter_open_uri (string $uri)
* xmlwriter functions on success, <b>FALSE</b> on error.
*/
#[LanguageLevelTypeAware(["8.0" => "XMLWriter|false"], default: "resource|false")]
function xmlwriter_open_memory()
function xmlwriter_open_memory ()
{}
/**

View File

@ -71,7 +71,7 @@ define('YAML_BINARY_TAG', 'tag:yaml.org,2002:binary');
* @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details.
* @return bool Returns TRUE on success.
*/
function yaml_emit_file($filename, $data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, $callbacks = []) {}
function yaml_emit_file($filename, $data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, $callbacks = array()) {}
/**
* (PHP 5 &gt;= 5.2.0, PECL yaml &gt;= 0.5.0)<br/>
@ -82,7 +82,7 @@ function yaml_emit_file($filename, $data, $encoding = YAML_ANY_ENCODING, $linebr
* @param array $callbacks [optional] Content handlers for YAML nodes. Associative array of YAML tag => callable mappings. See parse callbacks for more details.
* @return string Returns a YAML encoded string on success.
*/
function yaml_emit($data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, $callbacks = []) {}
function yaml_emit($data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, $callbacks = array()) {}
/**
* (PHP 5 &gt;= 5.2.0, PECL yaml &gt;= 0.4.0)<br/>
@ -94,7 +94,7 @@ function yaml_emit($data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_B
* @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.
*/
function yaml_parse_file($filename, $pos = 0, &$ndocs = null, $callbacks = []) {}
function yaml_parse_file($filename, $pos = 0, &$ndocs = null, $callbacks = array()) {}
/**
* (PHP 5 &gt;= 5.2.0, PECL yaml &gt;= 0.4.0)<br/>
@ -106,7 +106,7 @@ function yaml_parse_file($filename, $pos = 0, &$ndocs = null, $callbacks = []) {
* @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.
*/
function yaml_parse_url($url, $pos = 0, &$ndocs = null, $callbacks = []) {}
function yaml_parse_url($url, $pos = 0, &$ndocs = null, $callbacks = array()) {}
/**
* (PHP 5 &gt;= 5.2.0, PECL yaml &gt;= 0.4.0)<br/>
@ -118,4 +118,4 @@ function yaml_parse_url($url, $pos = 0, &$ndocs = null, $callbacks = []) {}
* @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.
*/
function yaml_parse($input, $pos = 0, &$ndocs = null, $callbacks = []) {}
function yaml_parse($input, $pos = 0, &$ndocs = null, $callbacks = array()) {}

View File

@ -284,7 +284,7 @@ class ZendAPI_Job {
*
* @var array
*/
var $_user_variables = [];
var $_user_variables = array();
/**
* Bit mask holding the global variables that the user want the job's script to have when it's called

View File

@ -7,7 +7,7 @@
* can be used to indicate an error in the script logic (e.g. database connection problem)
* @param string $error_string the error string to display
*/
function set_job_failed( $error_string) {}
function set_job_failed( $error_string ){};
@ -16,7 +16,7 @@ function set_job_failed( $error_string) {}
* "license_ok" - whether license allows use of JobQueue
* "expires" - license expiration date
*/
function jobqueue_license_info() {}
function jobqueue_license_info(){};
/**
* Create Java object

View File

@ -757,7 +757,7 @@ class ZipArchive implements Countable {
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function addGlob ($pattern, $flags = 0, array $options = []) {}
public function addGlob ($pattern, $flags = 0, array $options = array()) {}
/**
* (PHP 5 &gt;= 5.3.0, PECL zip &gt;= 1.9.0)<br/>
@ -774,7 +774,7 @@ class ZipArchive implements Countable {
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
public function addPattern ($pattern, $path = '.', array $options = []) {}
public function addPattern ($pattern, $path = '.', array $options = array()) {}
/**
* (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>

View File

@ -228,6 +228,7 @@ function gzwrite ($stream, string $data, ?int $length): int|false
* @param resource $stream
* @param string $data
* @param int|null $length [optional]
* @return int|false
*/
function gzputs ($stream, string $data, ?int $length): int|false {}
@ -439,7 +440,7 @@ function ob_gzhandler (string $data, int $flags): string|false {}
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "DeflateContext|false"], default: "resource|false")]
function deflate_init (int $encoding, array $options = []) {}
function deflate_init (int $encoding, array $options = array()) {}
/**
* Incrementally deflate data
@ -487,7 +488,7 @@ function deflate_add (#[LanguageLevelTypeAware(["8.0" => "DeflateContext"], defa
*/
#[Pure]
#[LanguageLevelTypeAware(["8.0" => "InflateContext|false"], default: "resource|false")]
function inflate_init (int $encoding, array $options = []) {}
function inflate_init (int $encoding, array $options = array()) {}
/**
* Incrementally inflate encoded data

View File

@ -704,7 +704,7 @@ class ZMQDevice
* @param ZMQSocket $backend Backend parameter for the devices. Usually where there messages going to.
* @param null|ZMQSocket $listener Listener socket, which receives a copy of all messages going both directions. The type of this socket should be SUB, PULL or DEALER.
*/
public function __construct(ZMQSocket $frontend, ZMQSocket $backend, ZMQSocket $listener = null)
public function __construct(ZMQSocket $frontend, ZMQSocket $backend, ?ZMQSocket $listener = null)
{
}
/**