more phpdoc fixes

fix tests: "PHP Fatal error:  Uncaught PhpParser\Error: Variadic parameter cannot have a default value on line 767"

fix tests: "Type mismatch array_key_exists: $array"

fix tests: "parameter 'withComments' with typehint 'bool' but typehints available only since php 7"
This commit is contained in:
Lars Moelleken 2020-11-26 23:39:49 +01:00 committed by Ivan Fedorov
parent 4009034335
commit 9f6bfb660b
100 changed files with 805 additions and 717 deletions

View File

@ -1,13 +1,141 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="ForgottenDebugOutputInspection" enabled="true" level="ERROR" enabled_by_default="true">
<option name="configuration">
<list>
<option value="\Codeception\Util\Debug::debug" />
<option value="\Codeception\Util\Debug::pause" />
<option value="\Doctrine::dump" />
<option value="\Doctrine\Common\Util\Debug::dump" />
<option value="\Doctrine\Common\Util\Debug::export" />
<option value="\Illuminate\Support\Debug\Dumper::dump" />
<option value="\Symfony\Component\Debug\Debug::enable" />
<option value="\Symfony\Component\Debug\DebugClassLoader::enable" />
<option value="\Symfony\Component\Debug\ErrorHandler::register" />
<option value="\Symfony\Component\Debug\ExceptionHandler::register" />
<option value="\TYPO3\CMS\Core\Utility\DebugUtility::debug" />
<option value="\Zend\Debug\Debug::dump" />
<option value="\Zend\Di\Display\Console::export" />
<option value="\Zend_Debug::dump" />
<option value="dd" />
<option value="debug_print_backtrace" />
<option value="debug_zval_dump" />
<option value="dpm" />
<option value="dpq" />
<option value="dsm" />
<option value="dump" />
<option value="dvm" />
<option value="error_log" />
<option value="kpr" />
<option value="phpinfo" />
<option value="print_r" />
<option value="var_dump" />
<option value="var_export" />
<option value="wp_die" />
<option value="xdebug_break" />
<option value="xdebug_call_class" />
<option value="xdebug_call_file" />
<option value="xdebug_call_function" />
<option value="xdebug_call_line" />
<option value="xdebug_code_coverage_started" />
<option value="xdebug_debug_zval" />
<option value="xdebug_debug_zval_stdout" />
<option value="xdebug_dump_superglobals" />
<option value="xdebug_enable" />
<option value="xdebug_get_code_coverage" />
<option value="xdebug_get_collected_errors" />
<option value="xdebug_get_declared_vars" />
<option value="xdebug_get_function_stack" />
<option value="xdebug_get_headers" />
<option value="xdebug_get_monitored_functions" />
<option value="xdebug_get_profiler_filename" />
<option value="xdebug_get_stack_depth" />
<option value="xdebug_get_tracefile_name" />
<option value="xdebug_is_enabled" />
<option value="xdebug_memory_usage" />
<option value="xdebug_peak_memory_usage" />
<option value="xdebug_print_function_stack" />
<option value="xdebug_start_code_coverage" />
<option value="xdebug_start_error_collection" />
<option value="xdebug_start_function_monitor" />
<option value="xdebug_start_trace" />
<option value="xdebug_stop_code_coverage" />
<option value="xdebug_stop_error_collection" />
<option value="xdebug_stop_function_monitor" />
<option value="xdebug_stop_trace" />
<option value="xdebug_time_index" />
<option value="xdebug_var_dump" />
</list>
</option>
<option name="migratedIntoUserSpace" value="true" />
</inspection_tool>
<inspection_tool class="LoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false">
<option name="loggerClassName" value="org.apache.log4j.Logger,org.slf4j.LoggerFactory,org.apache.commons.logging.LogFactory,java.util.logging.Logger" />
<option name="loggerFactoryMethodName" value="getLogger,getLogger,getLog,getLogger" />
</inspection_tool>
<inspection_tool class="PhpCSFixerValidationInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<option name="CODING_STANDARD" value="Custom" />
<option name="CUSTOM_RULESET_PATH" value="$PROJECT_DIR$/.php_cs" />
</inspection_tool>
<inspection_tool class="PhpUndefinedClassInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="DONT_REPORT_MULTI_RESOLVE" value="true" />
</inspection_tool>
<inspection_tool class="SecurityAdvisoriesInspection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="optionConfiguration">
<list>
<option value="barryvdh/laravel-debugbar" />
<option value="behat/behat" />
<option value="brianium/paratest" />
<option value="codeception/codeception" />
<option value="codedungeon/phpunit-result-printer" />
<option value="composer/composer" />
<option value="doctrine/coding-standard" />
<option value="filp/whoops" />
<option value="friendsofphp/php-cs-fixer" />
<option value="humbug/humbug" />
<option value="infection/infection" />
<option value="jakub-onderka/php-parallel-lint" />
<option value="johnkary/phpunit-speedtrap" />
<option value="kalessil/production-dependencies-guard" />
<option value="mikey179/vfsStream" />
<option value="mockery/mockery" />
<option value="mybuilder/phpunit-accelerator" />
<option value="orchestra/testbench" />
<option value="pdepend/pdepend" />
<option value="phan/phan" />
<option value="phing/phing" />
<option value="phpcompatibility/php-compatibility" />
<option value="phpmd/phpmd" />
<option value="phpro/grumphp" />
<option value="phpspec/phpspec" />
<option value="phpspec/prophecy" />
<option value="phpstan/phpstan" />
<option value="phpunit/phpunit" />
<option value="povils/phpmnd" />
<option value="roave/security-advisories" />
<option value="satooshi/php-coveralls" />
<option value="sebastian/phpcpd" />
<option value="slevomat/coding-standard" />
<option value="spatie/phpunit-watcher" />
<option value="squizlabs/php_codesniffer" />
<option value="sstalle/php7cc" />
<option value="symfony/debug" />
<option value="symfony/maker-bundle" />
<option value="symfony/phpunit-bridge" />
<option value="symfony/var-dumper" />
<option value="vimeo/psalm" />
<option value="wimg/php-compatibility" />
<option value="wp-coding-standards/wpcs" />
<option value="yiisoft/yii2-coding-standards" />
<option value="yiisoft/yii2-debug" />
<option value="yiisoft/yii2-gii" />
<option value="zendframework/zend-coding-standard" />
<option value="zendframework/zend-debug" />
<option value="zendframework/zend-test" />
</list>
</option>
</inspection_tool>
<inspection_tool class="SpellCheckingInspection" enabled="false" level="TYPO" enabled_by_default="false">
<option name="processCode" value="true" />
<option name="processLiterals" value="true" />

View File

@ -8,6 +8,11 @@
<fqn value="\PHPUnit\Framework\ExpectationFailedException" />
</unchecked_exceptions>
</component>
<component name="PhpCSFixer">
<phpcsfixer_settings>
<PhpCSFixerConfiguration tool_path="$PROJECT_DIR$/vendor/bin/php-cs-fixer" />
</phpcsfixer_settings>
</component>
<component name="PhpIncludePathManager">
<include_path>
<path value="$PROJECT_DIR$/vendor/composer" />
@ -71,6 +76,8 @@
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php80" />
<path value="$PROJECT_DIR$/vendor/symfony/stopwatch" />
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
<path value="$PROJECT_DIR$/vendor/phpunit/phpunit-mock-objects" />
<path value="$PROJECT_DIR$/vendor/sebastian/cli-parser" />
</include_path>
</component>
<component name="PhpInterpreters">
@ -135,9 +142,7 @@
</interpreter>
</phpInfoCache>
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="8.0">
<option name="suggestChangeDefaultLanguageLevel" value="false" />
</component>
<component name="PhpProjectSharedConfiguration" php_language_level="8.0" />
<component name="PhpUnit">
<phpunit_settings>
<PhpUnitSettings custom_loader_path="$PROJECT_DIR$/vendor/autoload.php" phpunit_phar_path="" />

View File

@ -3,6 +3,7 @@
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/tests" isTestSource="true" packagePrefix="StubTests\" />
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
<excludeFolder url="file://$MODULE_DIR$/vendor/composer" />
<excludeFolder url="file://$MODULE_DIR$/vendor/doctrine/instantiator" />
<excludeFolder url="file://$MODULE_DIR$/vendor/myclabs/deep-copy" />

View File

@ -1,5 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CommitMessageInspectionProfile">
<profile version="1.0">
<inspection_tool class="GrazieCommit" enabled="true" level="TYPO" enabled_by_default="true" />
</profile>
</component>
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>

View File

@ -189,7 +189,7 @@ function str_contains(string $haystack, string $needle) : bool {}
* @removed 8.0
*/
#[Deprecated(reason: "Use a foreach loop instead", since: "7.2")]
function each (array &$array): array
function each (&$array): array
{}
/**

View File

@ -273,7 +273,7 @@ class Exception implements Throwable {
* @link https://php.net/manual/en/exception.construct.php
* @param string $message [optional] The Exception message to throw.
* @param int $code [optional] The Exception code.
* @param Throwable $previous [optional] The previous throwable used for the exception chaining.
* @param null|Throwable $previous [optional] The previous throwable used for the exception chaining.
*/
#[Pure]
public function __construct($message = "", $code = 0, Throwable $previous = null) { }
@ -369,7 +369,7 @@ class Error implements Throwable {
* @link https://php.net/manual/en/error.construct.php
* @param string $message [optional] The Error message to throw.
* @param int $code [optional] The Error code.
* @param Throwable $previous [optional] The previous throwable used for the exception chaining.
* @param null|Throwable $previous [optional] The previous throwable used for the exception chaining.
*/
public function __construct($message = "", $code = 0, Throwable $previous = null)
{
@ -878,7 +878,11 @@ class PhpToken implements Stringable {
{
}
/** @return static[] */
/**
* @param string $code
* @param int $flags
* @return static[]
*/
public static function tokenize(string $code, int $flags = 0): array {}
/**

View File

@ -794,7 +794,6 @@ final class EvPeriodic extends EvWatcher
*/
public $interval;
/**
* Constructs EvPeriodic watcher object.
*
@ -806,7 +805,7 @@ final class EvPeriodic extends EvWatcher
* numerical stability).
* @param float $interval The current interval value. Can be modified any time, but changes only take effect when
* the periodic timer fires or EvPeriodic::again() is being called.
* @param callable $reschedule_cb If set, tt must return the next time to trigger, based on the passed time value
* @param null|callable $reschedule_cb If set, tt must return the next time to trigger, based on the passed time value
* (that is, the lowest time value larger than or equal to the second argument). It will usually be called just
* before the callback will be triggered, but might be called at other times, too.
* @param callable $callback
@ -845,7 +844,7 @@ final class EvPeriodic extends EvWatcher
* numerical stability).
* @param float $interval The current interval value. Can be modified any time, but changes only take effect when
* the periodic timer fires or EvPeriodic::again() is being called.
* @param callable $reschedule_cb If set, tt must return the next time to trigger, based on the passed time value
* @param null|callable $reschedule_cb If set, tt must return the next time to trigger, based on the passed time value
* (that is, the lowest time value larger than or equal to the second argument). It will usually be called just
* before the callback will be triggered, but might be called at other times, too.
* @param callable $callback

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 = array()) {}
public function prepare ($query, array $options = []) {}
/**
* (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 = array()) {}
public function query ($statement, $mode = PDO::ATTR_DEFAULT_FETCH_MODE, $arg3 = null, array $ctorargs = []) {}
#[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 = array()) {}
public function fetchObject ($class = "stdClass", array $ctorArgs = []) {}
/**
* (PHP 5 &gt;= 5.1.0, PHP 7, PECL pdo &gt;= 0.1.0)<br/>
@ -1580,13 +1580,13 @@ class PDOStatement implements IteratorAggregate
* @param int $mode <p>
* The fetch mode must be one of the PDO::FETCH_* constants.
* </p>
* @param string|object $classNameObject [optional] <p>
* @param null|string|object $className [optional] <p>
* Class name or object
* </p>
* @param array $ctorarfg [optional] <p> Constructor arguments. </p>
* @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 = array()) {}
public function setFetchMode ($mode, $className = null, array $params = []) {}
#[PhpStormStubsElementAvailable('8.0')]
/**
@ -1596,7 +1596,7 @@ class PDOStatement implements IteratorAggregate
* @param int $mode <p>
* The fetch mode must be one of the PDO::FETCH_* constants.
* </p>
* @param string|object $classNameObject [optional] <p>
* @param string|object|null $className [optional] <p>
* Class name or object
* </p>
* @param mixed ...$params <p> Constructor arguments. </p>

View File

@ -729,18 +729,18 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* (PHP &gt;= 5.3.0, PECL phar &gt;= 2.0.0)<br/>
* mapPhar for web-based phars. front controller for web applications
* @link https://php.net/manual/en/phar.webphar.php
* @param string $alias [optional] <p>
* @param null|string $alias [optional] <p>
* The alias that can be used in phar:// URLs to
* refer to this archive, rather than its full path.
* </p>
* @param string $index [optional] <p>
* The location within the phar of the directory index.
* </p>
* @param string $fileNotFoundScript [optional] <p>
* @param null|string $fileNotFoundScript [optional] <p>
* The location of the script to run when a file is not found. This
* script should output the proper HTTP 404 headers.
* </p>
* @param array $mimeTypes [optional] <p>
* @param null|array $mimeTypes [optional] <p>
* An array mapping additional file extensions to MIME type.
* If the default mapping is sufficient, pass an empty array.
* By default, these extensions are mapped to these MIME types:
@ -789,7 +789,7 @@ class Phar extends RecursiveDirectoryIterator implements RecursiveIterator, Seek
* );
* </code>
* </p>
* @param callable $rewrite [optional] <p>
* @param null|callable $rewrite [optional] <p>
* The rewrites function is passed a string as its only parameter and must return a string or <b>FALSE</b>.
* </p>
* <p>

View File

@ -306,6 +306,8 @@ class ReflectionProperty implements Reflector
public function getDefaultValue(){}
/**
* @param null|string $name
* @param int $flags
* @return ReflectionAttribute[]
* @since 8.0
*/

View File

@ -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 = array(), $flags = 0, $iteratorClass = "ArrayIterator") { }
public function __construct($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 = array(), $flags = 0) { }
public function __construct($array = [], $flags = 0) { }
/**
* Check if offset exists

View File

@ -764,7 +764,7 @@ class SplFileObject extends SplFileInfo implements RecursiveIterator, SeekableIt
* function will return the number of assigned values. The optional
* parameters must be passed by reference.
*/
public function fscanf ($format, & ...$vars) {}
public function fscanf ($format, &...$vars) {}
/**
* Write to file

View File

@ -748,9 +748,9 @@ 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 string $class_name [optional]
* @param array $ctor_params [optional]
* @param bool $decode_binary [optional]
* @param null|string $class_name [optional]
* @param null|array $ctor_params [optional]
* @param null|bool $decode_binary [optional]
* @return object
*/
function sqlite_fetch_object ($result, $class_name = null, array $ctor_params = null, $decode_binary = null) {}

View File

@ -343,8 +343,7 @@ class Xslt30Processor
/**
* Compile a stylesheet received as an {@link XdmValue}.
*
* @param string $sourceFileName
* @param string $stylesheetFileName
* @param XdmValue $node
* @return string|null
*/
public function compileFromValue($node) {}

View File

@ -54,7 +54,7 @@ class SimpleXMLElement implements Traversable, ArrayAccess, Countable, Iterator,
* If specified, the function writes the data to the file rather than
* returning it.
* </p>
* @return mixed If the <i>filename</i> isn't specified, this function
* @return string|bool If the <i>filename</i> isn't specified, this function
* returns a string on success and false on error. If the
* parameter is specified, it returns true if the file was written
* successfully and false otherwise.
@ -391,10 +391,10 @@ class SimpleXMLIterator extends SimpleXMLElement implements RecursiveIterator, C
* </p>
* <p>
* Libxml 2 unescapes the URI, so if you want to pass e.g.
* b&#38;#38;c as the URI parameter a,
* b&c as the URI parameter a,
* you have to call
* simplexml_load_file(rawurlencode('https://example.com/?a=' .
* urlencode('b&#38;#38;c'))). Since PHP 5.1.0 you don't need to do
* urlencode('b&c'))). Since PHP 5.1.0 you don't need to do
* this because PHP will do it for you.
* </p>
* @param string|null $class_name [optional] <p>

View File

@ -642,7 +642,7 @@ class Aerospike {
* generation => the number of times the record has been written
* bins => Array of bin-name => bin-value pairs
* ```
* @param array $select only these bins out of the record (optional)
* @param null|array $select only these bins out of the record (optional)
* @param array $options an optional array of read policy options, whose keys include
* * Aerospike::OPT_READ_TIMEOUT
* * Aerospike::OPT_POLICY_KEY
@ -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 array() for no predicate
* or an empty [] 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 array() for no predicate
* or an empty [] 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 array() for no predicate
* or an empty [] for no predicate
* ```
* examples
* ```
@ -3474,7 +3474,7 @@ class Aerospike {
* @link https://www.aerospike.com/docs/reference/info Info Command Reference
* @param string $request a formatted info command
* @param string &$response a formatted response from the server, filled by reference
* @param array $host an array holding the cluster node connection information cluster
* @param null|array $host an array holding the cluster node connection information cluster
* and manage its connections to them. ```[ 'addr' => $addr , 'port' => $port ]```
* @param array $options an optional array of policy options, whose keys include
* * Aerospike::OPT_READ_TIMEOUT
@ -3508,7 +3508,7 @@ class Aerospike {
* ```
* @link https://www.aerospike.com/docs/reference/info Info Command Reference
* @param string $request a formatted info command
* @param array $host an array of _host_ arrays, each with ```[ 'addr' => $addr , 'port' => $port ]```
* @param null|array $host an array of _host_ arrays, each with ```[ 'addr' => $addr , 'port' => $port ]```
* @param array $options an optional array of policy options, whose keys include
* * Aerospike::OPT_READ_TIMEOUT
* @return array results in the format
@ -3559,7 +3559,7 @@ class Aerospike {
/**
* Set the logging threshold of the Aerospike object
*
* @param $log_level one of `Aerospike::LOG_LEVEL_*` values
* @param int $log_level one of `Aerospike::LOG_LEVEL_*` values
* * Aerospike::LOG_LEVEL_OFF
* * Aerospike::LOG_LEVEL_ERROR
* * Aerospike::LOG_LEVEL_WARN

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 = array()) { }
public function __construct(array $credentials = []) { }
/**
* 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 = array()) { }
public function bind($exchange_name, $routing_key = '', array $arguments = []) { }
/**
* 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 = array()) { }
public function unbind($exchange_name, $routing_key = '', array $arguments = []) { }
/**
* Create an instance of AMQPExchange.
@ -1246,7 +1246,7 @@ class AMQPExchange
$message,
$routing_key = null,
$flags = AMQP_NOPARAM,
array $attributes = array()
array $attributes = []
) {
}
@ -1371,7 +1371,7 @@ class AMQPQueue
*
* @return bool
*/
public function bind($exchange_name, $routing_key = null, array $arguments = array()) { }
public function bind($exchange_name, $routing_key = null, array $arguments = []) { }
/**
* 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 = array()) { }
public function unbind($exchange_name, $routing_key = null, array $arguments = []) { }
/**
* 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 array() will dump nothing.
* A NULL for files or user_vars signals a dump of every entry, while [] 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 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.
* @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.
* @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

@ -1,6 +1,7 @@
<?php
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
/**
@ -150,13 +151,22 @@ function bcpow (string $num, string $exponent, ?int $scale = 0): string
function bcsqrt (string $num, ?int $scale)
{}
#[PhpStormStubsElementAvailable(to: '7.2')]
/**
* Set default scale parameter for all bc math functions
* @link https://php.net/manual/en/function.bcscale.php
* @param int|null $scale <p>
* The scale factor. Since 7.3.0 can be omitted.
* </p>
* @return int|true <b>INT</b> since 7.3.0 and <b>TRUE</b> before.
* @param int $scale
* @return true
*/
function bcscale (int $scale): bool
{}
#[PhpStormStubsElementAvailable('7.3')]
/**
* Set default scale parameter for all bc math functions
* @link https://php.net/manual/en/function.bcscale.php
* @param int|null $scale
* @return int
*/
function bcscale (?int $scale): int
{}

View File

@ -31,7 +31,7 @@ function bzopen ($file, string $mode) {}
* (uncompressed) bytes at a time. A maximum of 8192
* uncompressed bytes will be read at a time.
* </p>
* @return string the uncompressed data, or <b>FALSE</b> on error.
* @return string|false the uncompressed data, or <b>FALSE</b> on error.
*/
function bzread ($bz, int $length = 1024): string|false {}
@ -50,7 +50,7 @@ function bzread ($bz, int $length = 1024): string|false {}
* (uncompressed) bytes have been written or the end of
* <i>data</i> is reached, whichever comes first.
* </p>
* @return int the number of bytes written, or <b>FALSE</b> on error.
* @return int|false the number of bytes written, or <b>FALSE</b> on error.
*/
function bzwrite ($bz, string $data, ?int $length): int|false
{}

View File

@ -2295,12 +2295,12 @@ namespace Cassandra {
/**
* Adds one or more values to this collection.
*
* @param mixed $value ,... one or more values to add
* @param mixed ...$value one or more values to add
*
* @return int total number of values in this collection
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/class.Collection/#method-add
*/
public function add($value)
public function add(...$value)
{
}
@ -6164,12 +6164,12 @@ namespace Cassandra\Cluster {
* Configures the initial endpoints. Note that the driver will
* automatically discover and connect to the rest of the cluster.
*
* @param string $host ,... one or more ip addresses or hostnames
* @param string ...$host one or more ip addresses or hostnames
*
* @return \Cassandra\Cluster\Builder self
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Cluster/class.Builder/#method-withContactPoints
*/
public function withContactPoints($host)
public function withContactPoints(...$host)
{
}
@ -6708,7 +6708,7 @@ namespace Cassandra\Type {
* Creates a new Tuple from the given values. When no values given,
* creates a tuple with null for the values.
*
* @param mixed $values ,... One or more values to be added to the tuple.
* @param mixed ...$values One or more values to be added to the tuple.
*
* @return \Cassandra\Tuple A tuple with given values.
* @throws \Cassandra\Exception\InvalidArgumentException when values given are of a
@ -6717,7 +6717,7 @@ namespace Cassandra\Type {
*
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Tuple/#method-create
*/
public function create($values)
public function create(...$values)
{
}
@ -6769,7 +6769,7 @@ namespace Cassandra\Type {
* Creates a new Collection from the given values. When no values
* given, creates an empty list.
*
* @param mixed $value ,... One or more values to be added to the list.
* @param mixed ...$value One or more values to be added to the list.
*
* @return \Cassandra\Collection A list with given values.
* @throws \Cassandra\Exception\InvalidArgumentException when values given are of a
@ -6778,7 +6778,7 @@ namespace Cassandra\Type {
*
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Collection/#method-create
*/
public function create($value)
public function create(...$value)
{
}
@ -6829,7 +6829,7 @@ namespace Cassandra\Type {
/**
* Creates a new Set from the given values.
*
* @param mixed $value ,... One or more values to be added to the set. When no values are given, creates an empty set.
* @param mixed ...$value One or more values to be added to the set. When no values are given, creates an empty set.
*
* @return \Cassandra\Set A set with given values.
* @throws \Cassandra\Exception\InvalidArgumentException when values given are of a
@ -6838,7 +6838,7 @@ namespace Cassandra\Type {
*
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Set/#method-create
*/
public function create($value)
public function create(...$value)
{
}
@ -6968,7 +6968,7 @@ namespace Cassandra\Type {
* Creates a new UserTypeValue from the given name/value pairs. When
* no values given, creates an empty user type.
*
* @param mixed $value ,... One or more name/value pairs to be added to the user type.
* @param mixed ...$value One or more name/value pairs to be added to the user type.
*
* @return \Cassandra\UserTypeValue A user type value with given name/value pairs.
* @throws \Cassandra\Exception\InvalidArgumentException when values given are of a
@ -6977,7 +6977,7 @@ namespace Cassandra\Type {
*
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.UserType/#method-create
*/
public function create($value)
public function create(...$value)
{
}
@ -7054,7 +7054,7 @@ namespace Cassandra\Type {
* map, e.g. `create(key, value, key, value)`.
* When no values given, creates an empty map.
*
* @param mixed $value ,... An even number of values, where each odd value
* @param mixed ...$value An even number of values, where each odd value
*
* @return \Cassandra\Map A set with given values.
* @throws \Cassandra\Exception\InvalidArgumentException when keys or values given are
@ -7063,7 +7063,7 @@ namespace Cassandra\Type {
*
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/Type/class.Map/#method-create
*/
public function create($value)
public function create(...$value)
{
}
@ -7143,14 +7143,14 @@ namespace Cassandra\SSLOptions {
/**
* Adds a trusted certificate. This is used to verify node's identity.
*
* @param string $path ,... one or more paths to files containing a PEM formatted certificate.
* @param string ...$path one or more paths to files containing a PEM formatted certificate.
*
* @return \Cassandra\Cluster\Builder self
* @throws \Cassandra\Exception\InvalidArgumentException
*
* @link https://docs.datastax.com/en/developer/php-driver/latest/api/Cassandra/SSLOptions/class.Builder/#method-withTrustedCerts
*/
public function withTrustedCerts($path)
public function withTrustedCerts(...$path)
{
}

View File

@ -1293,7 +1293,7 @@ namespace Couchbase {
* Encrypt fields inside specified document.
*
* @param array $document document structure
* @param array $options specification for fields needed to be encrypted. Where 'alg' contains
* @param array $fieldOptions specification for fields needed to be encrypted. Where 'alg' contains
* a string with alias of the registed crypto provider, and 'name' contains the name of the field.
* @param string $prefix optional prefix for modified field (when null, the library will use "__crypt")
*
@ -1307,7 +1307,7 @@ namespace Couchbase {
* Decrypt fields inside specified document.
*
* @param array $document document structure
* @param array $options specification for fields needed to be decrypted. Where 'alg' contains
* @param array $fieldOptions specification for fields needed to be decrypted. Where 'alg' contains
* a string with alias of the registed crypto provider, and 'name' contains the name of the field.
* @param string $prefix optional prefix for modified field (when null, the library will use "__crypt")
*

View File

@ -2165,7 +2165,8 @@ function curl_share_close (#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"]
* @return resource|CurlShareHandle Returns resource of type "cURL Share Handle".
* @since 5.5
*/
function curl_share_init (): CurlShareHandle
#[LanguageLevelTypeAware(["8.0" => "CurlShareHandle"], default: "resource")]
function curl_share_init()
{}
/**
@ -2540,7 +2541,7 @@ function curl_multi_exec (#[LanguageLevelTypeAware(["8.0" => "CurlMultiHandle"],
* Return the content of a cURL handle if <constant>CURLOPT_RETURNTRANSFER</constant> is set
* @link https://php.net/manual/en/function.curl-multi-getcontent.php
* @param CurlHandle|resource $handle
* @return string Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set.
* @return null|string Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set.
*/
#[Pure]
function curl_multi_getcontent (#[LanguageLevelTypeAware(["8.0" => "CurlHandle"], default: "resource")] $handle): ?string

View File

@ -1089,7 +1089,7 @@ function date_timezone_get (DateTimeInterface $object): DateTimeZone|false
* Alias:
* {@see DateTime::setTimezone}
* @link https://php.net/manual/en/function.date-timezone-set.php
* @param DateTime $object <p>A
* @param DateTimeInterface $object <p>A
* {@see DateTime} object returned by
* {@see date_create()}. The function modifies this object.</p>
* @param DateTimeZone $timezone <p>A
@ -1115,13 +1115,12 @@ function date_timezone_set (DateTimeInterface $object, DateTimeZone $timezone)
function date_offset_get (DateTimeInterface $object)
{}
/**
* Returns the difference between two datetime objects
* Alias:
* {@see DateTime::diff}
* @link https://php.net/manual/en/function.date-diff.php
* @param DateTime $baseObject
* @param DateTimeInterface $baseObject
* @param DateTimeInterface $targetObject The date to compare to
* @param bool $absolute [optional] Whether to return absolute difference.
* @return DateInterval|false The DateInterval object representing the difference between the two dates or FALSE on failure.
@ -1130,6 +1129,7 @@ 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
@ -1170,7 +1170,7 @@ function date_date_set (DateTime $object, int $year, int $month, int $day): Date
* @param DateTime $object
* @param int $year <p>Year of the date</p>
* @param int $week <p>Week of the date.</p>
* @param int $day [optional] <p>Offset from the first day of the week.</p>
* @param int $dayOfWeek [optional] <p>Offset from the first day of the week.</p>
* @return DateTime|false <p>
* Returns the {@see DateTime} object for method chaining or <strong><code>FALSE</code></strong> on failure.
* </p>

View File

@ -182,7 +182,7 @@ class DateTimeImmutable implements DateTimeInterface {
* @link https://secure.php.net/manual/en/datetimeimmutable.createfromformat.php
* @param string $format
* @param string $datetime
* @param DateTimeZone $timezone [optional]
* @param null|DateTimeZone $timezone [optional]
* @return DateTimeImmutable|false
*/
public static function createFromFormat($format, $datetime, DateTimeZone $timezone = null) { }
@ -361,6 +361,7 @@ class DateTimeImmutable implements DateTimeInterface {
public function __wakeup() { }
/**
* @param DateTimeInterface $object
* @return DateTimeImmutable
* @since 8.0
*/
@ -447,7 +448,7 @@ class DateTime implements DateTimeInterface {
* Enter <b>now</b> here to obtain the current time when using
* the <em>$timezone</em> parameter.
* </p>
* @param DateTimeZone $timezone [optional] <p>
* @param null|DateTimeZone $timezone [optional] <p>
* A {@link https://php.net/manual/en/class.datetimezone.php DateTimeZone} object representing the
* timezone of <em>$datetime</em>.
* </p>
@ -502,6 +503,7 @@ class DateTime implements DateTimeInterface {
/**
* @param DateTimeImmutable $datetTimeImmutable
* @since 7.3
* @return DateTime
*/
@ -597,7 +599,7 @@ class DateTime implements DateTimeInterface {
* Parse a string into a new DateTime object according to the specified format
* @param string $format Format accepted by date().
* @param string $datetime String representing the time.
* @param DateTimeZone $timezone A DateTimeZone object representing the desired time zone.
* @param null|DateTimeZone $timezone A DateTimeZone object representing the desired time zone.
* @return DateTime|false
* @link https://php.net/manual/en/datetime.createfromformat.php
*/
@ -619,6 +621,7 @@ class DateTime implements DateTimeInterface {
public static function __set_state ($array) {}
/**
* @param DateTimeInterface $object
* @return DateTime
* @since 8.0
*/

View File

@ -79,7 +79,7 @@ final class Decimal implements \JsonSerializable
/**
* Copy
*
* @param int $precision The precision of the return value, which defaults
* @param null|int $precision The precision of the return value, which defaults
* to the precision of this decimal.
*
* @return Decimal a copy of this decimal.

View File

@ -74,19 +74,21 @@ 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.
* @return int $whence Specifies how the position pos should be interpreted:
* @param int $whence Specifies how the position pos should be interpreted:
* SEEK_SET (default) - specifies that pos is specified from the beginning of the file.
* SEEK_CUR - Specifies that pos is a count of characters from the current file position. This count may be positive or negative.
* SEEK_END - Specifies that pos is a count of characters from the end of the file. A negative count specifies a position within the current extent of the file; a positive count specifies a position past the current end. If you set the position past the current end, and actually write data, you will extend the file with zeros up to that position.
* @return int
* @link https://www.php.net/manual/en/function.dio-seek.php
*/
function dio_seek ($fd, int $pos, int $whence = SEEK_SET) {}
/**
* dio_stat ( resource $fd ) : array
* dio_stat Gets stat information about the file descriptor fd
* @param resource $fd
* @return array|null Returns an associative array with the following keys:
* "device" - device
* "inode" - inode

View File

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

View File

@ -128,7 +128,7 @@ class DOMNode {
* @param DOMNode $node <p>
* The new node.
* </p>
* @param DOMNode $child [optional] <p>
* @param null|DOMNode $child [optional] <p>
* The reference node. If not supplied, newnode is
* appended to the children.
* </p>
@ -309,8 +309,8 @@ class DOMNode {
* Canonicalize nodes to a string
* @param bool $exclusive [optional] Enable exclusive parsing of only the nodes matched by the provided xpath or namespace prefixes.
* @param bool $withComments [optional] Retain comments in output.
* @param array $xpath [optional] An array of xpaths to filter the nodes by.
* @param array $nsPrefixes [optional] An array of namespace prefixes to filter the nodes by.
* @param null|array $xpath [optional] An array of xpaths to filter the nodes by.
* @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) {}
@ -321,11 +321,11 @@ class DOMNode {
* @param string $uri Number of bytes written or FALSE on failure
* @param bool $exclusive [optional] Enable exclusive parsing of only the nodes matched by the provided xpath or namespace prefixes.
* @param bool $withComments [optional] Retain comments in output.
* @param array $xpath [optional] An array of xpaths to filter the nodes by.
* @param array $nsPrefixes [optional] An array of namespace prefixes to filter the nodes by.
* @param null|array $xpath [optional] An array of xpaths to filter the nodes by.
* @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, array $withComments, array $xpath = null, $nsPrefixes = null) {}
public function C14NFile ($uri, $exclusive, $withComments = false, array $xpath = null, $nsPrefixes = null) {}
}
@ -914,7 +914,7 @@ class DOMDocument extends DOMNode implements DOMParentNode {
/**
* Dumps the internal XML tree back into a string
* @link https://php.net/manual/en/domdocument.savexml.php
* @param DOMNode $node [optional] <p>
* @param null|DOMNode $node [optional] <p>
* Use this parameter to output only a specific node without XML declaration
* rather than the entire document.
* </p>
@ -987,7 +987,7 @@ class DOMDocument extends DOMNode implements DOMParentNode {
/**
* Dumps the internal document into a string using HTML formatting
* @link https://php.net/manual/en/domdocument.savehtml.php
* @param DOMNode $node [optional] parameter to output a subset of the document.
* @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) {}

View File

@ -180,7 +180,7 @@ namespace Ds {
/**
* Creates a new sequence using a callable to determine which values
* to include.
* @param callable $callback Optional callable which returns TRUE if the
* @param null|callable $callback Optional callable which returns TRUE if the
* value should be included, FALSE otherwise. If a callback is not
* provided, only values which are TRUE (see converting to boolean) will
* be included.<p>
@ -407,7 +407,7 @@ namespace Ds {
* @return float|int The sum of all the values in the sequence as
* either a float or int depending on the values in the sequence.
*/
public function sum(): float;
public function sum(): float|int;
/**
* Adds values to the front of the sequence, moving all the current
@ -521,7 +521,7 @@ namespace Ds {
* Creates a new vector using a callable to determine which values to
* include.
*
* @param callable $callback
* @param null|callable $callback
* Optional callable which returns TRUE if the value should be included,
* FALSE otherwise. If a callback is not provided, only values which are
* TRUE (see converting to boolean) will be included.
@ -966,7 +966,7 @@ namespace Ds {
/**
* Creates a new deque using a callable to determine which values
* to include.
* @param callable $callback Optional callable which returns TRUE if the
* @param null|callable $callback Optional callable which returns TRUE if the
* value should be included, FALSE otherwise. If a callback is not
* provided, only values which are TRUE (see converting to boolean) will
* be included.<p>
@ -1235,7 +1235,7 @@ namespace Ds {
* @return float|int The sum of all the values in the deque as
* either a float or int depending on the values in the deque.
*/
public function sum(): float
public function sum(): float|int
{
}
@ -1360,7 +1360,7 @@ namespace Ds {
/**
* Creates a new map using a callable to determine which pairs to include
*
* @param callable $callback Optional callable which returns TRUE if the pair should be included, FALSE
* @param null|callable $callback Optional callable which returns TRUE if the pair should be included, FALSE
* otherwise. If a callback is not provided, only values which are TRUE (see converting to boolean) will be included.
*
* @return Map
@ -1815,7 +1815,7 @@ namespace Ds {
*
* @link https://www.php.net/manual/en/ds-map.sum.php
*/
public function sum()
public function sum(): float|int
{
}
@ -2096,7 +2096,7 @@ namespace Ds {
*
* @link https://www.php.net/manual/en/ds-set.filter.php
*
* @param callable $callback Optional callable which returns TRUE if the
* @param null|callable $callback Optional callable which returns TRUE if the
* value should be included, FALSE otherwise.
* If a callback is not provided, only values which are TRUE (see
* converting to boolean) will be included.
@ -2166,7 +2166,7 @@ namespace Ds {
*
* @link https://www.php.net/manual/en/ds-set.join.php
*
* @param string $glue An optional string to separate each value.
* @param null|string $glue An optional string to separate each value.
*
* @return string
*/
@ -2305,7 +2305,7 @@ namespace Ds {
*
* @link https://www.php.net/manual/en/ds-set.sorted.php
*
* @param callable $comparator The comparison function must return an
* @param null|callable $comparator The comparison function must return an
* integer less than, equal to, or greater than zero if the first
* argument is considered to be respectively less than, equal to, or
* greater than the second. Note that before PHP 7.0.0 this integer had
@ -2336,7 +2336,7 @@ namespace Ds {
* @return float|int The sum of all the values in the set as either a
* float or int depending on the values in the set.
*/
public function sum()
public function sum(): float|int
{
}

View File

@ -271,7 +271,7 @@ function enchant_dict_describe ($dict) {}
* @param string $word <p>
* The word to check
* </p>
* @param array &$suggestions [optional] <p>
* @param null|array &$suggestions [optional] <p>
* If the word is not correctly spelled, this variable will
* contain an array of suggestions.
* </p>

View File

@ -182,6 +182,7 @@ final class Event
* setPriority.
* Set event priority.
*
* @param int $priority
* @return bool
*
* @see https://php.net/manual/en/event.setpriority.php
@ -265,7 +266,7 @@ final class EventBase
* __construct.
* Constructs EventBase object.
*
* @param EventConfig $cfg
* @param null|EventConfig $cfg
*
* @see https://php.net/manual/en/eventbase.construct.php
*/
@ -817,9 +818,9 @@ final class EventBufferEvent
* @param EventBase $base
* @param mixed $socket = null
* @param int $options = 0
* @param callable $readcb = null
* @param callable $writecb = null
* @param callable $eventcb = null
* @param null|callable $readcb = null
* @param null|callable $writecb = null
* @param null|callable $eventcb = null
*
* @see https://php.net/manual/en/eventbufferevent.construct.php
*/
@ -1421,7 +1422,7 @@ final class EventHttp
* Constructs EventHttp object(the HTTP server).
*
* @param EventBase $base
* @param EventSslContext $ctx = null
* @param null|EventSslContext $ctx = null
*
* @see https://secure.php.net/manual/en/eventhttp.construct.php
*/
@ -1580,7 +1581,7 @@ class EventHttpConnection
* @param EventDnsBase $dns_base
* @param string $address
* @param int $port
* @param EventSslContext $ctx = null
* @param null|EventSslContext $ctx = null
*
* @see https://secure.php.net/manual/en/eventhttpconnection.construct.php
*/

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 = array()): int
function expect_expectl($expect, array $cases, array &$match = []): int
{
unset ($expect, $cases, $match);
return 0;

View File

@ -146,13 +146,6 @@ function finfo_file ($finfo, string $filename, int $flags, $context): string|fal
* @param string $string <p>
* Content of a file to be checked.
* </p>
* @param int $flags [optional] <p>
* One or disjunction of more Fileinfo
* constants.
* </p>
* @param resource $context [optional] <p>
* </p>
* @param string $string
* @param int $flags [optional] One or disjunction of more
* <a href="https://php.net/manual/en/fileinfo.constants.php">Fileinfo</a> constants.
* @param resource $context [optional]

View File

@ -440,7 +440,7 @@ define ('FILTER_FLAG_ENCODE_LOW', 16);
define ('FILTER_FLAG_ENCODE_HIGH', 32);
/**
* Encode &#38;#38;.
* Encode &.
* @link https://php.net/manual/en/filter.constants.php
*/
define ('FILTER_FLAG_ENCODE_AMP', 64);

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 = array()) {}
public function __construct($target, $args = []) {}
/**
* Get the endpoint this call/stream is connected to
@ -553,6 +553,7 @@ namespace Grpc
* Must not be closed.
* @param string $method The method to call
* @param Timeval $absolute_deadline The deadline for completing the call
* @param null|string $host_override The host is set by user (optional)
*
* @throws \InvalidArgumentException
*/

View File

@ -135,7 +135,7 @@ function hash_hmac_file (string $algo, string $data, string $key, bool $binary =
* and <b>hash_final</b>.
*/
#[Pure]
#[LanguageLevelTypeAware(['8.0' => 'HashContext'], default: 'resource')]
#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")]
function hash_init (string $algo, int $flags = 0, string $key)
{}
@ -218,8 +218,8 @@ function hash_final (#[LanguageLevelTypeAware(["8.0" => "HashContext"], default:
* @return HashContext|resource a copy of Hashing Context resource.
*/
#[Pure]
#[LanguageLevelTypeAware(['8.0' => 'HashContext'], default: 'resource')]
function hash_copy (#[LanguageLevelTypeAware(["8.0" => "HashContext"], default: "resource")] $context)
#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")]
function hash_copy (#[LanguageLevelTypeAware(["7.2" => "HashContext"], default: "resource")] $context)
{}
/**

View File

@ -255,7 +255,7 @@ class HttpMessage implements Countable, Serializable, Iterator {
* (PECL pecl_http &gt;= 0.10.0)<br/>
* Set headers
* @link https://php.net/manual/en/function.httpmessage-setheaders.php
* @param array $headers <p>
* @param array $header <p>
* associative array containing the new HTTP headers, which will replace all previous HTTP headers of the message
* </p>
* @return void
@ -891,7 +891,7 @@ class HttpRequest {
* @param int $request_method [optional] <p>
* the request method to use
* </p>
* @param array $options [optional] <p>
* @param null|array $options [optional] <p>
* an associative array with request options
* </p>
*/
@ -901,7 +901,7 @@ class HttpRequest {
* (PECL pecl_http &gt;= 0.10.0)<br/>
* Set options
* @link https://php.net/manual/en/function.httprequest-setoptions.php
* @param array $options [optional] <p>
* @param null|array $options [optional] <p>
* an associative array, which values will overwrite the
* currently set request options;
* if empty or omitted, the options of the HttpRequest object will be reset
@ -923,7 +923,7 @@ class HttpRequest {
* (PECL pecl_http &gt;= 0.10.0)<br/>
* Set ssl options
* @link https://php.net/manual/en/function.httprequest-setssloptions.php
* @param array $options [optional] <p>
* @param null|array $options [optional] <p>
* an associative array containing any SSL specific options;
* if empty or omitted, the SSL options will be reset
* </p>
@ -944,7 +944,7 @@ class HttpRequest {
* (PECL pecl_http &gt;= 0.12.0)<br/>
* Add ssl options
* @link https://php.net/manual/en/function.httprequest-addssloptions.php
* @param array $options <p>
* @param array $option <p>
* an associative array as parameter containing additional SSL specific options
* </p>
* @return bool true on success or false on failure.
@ -975,7 +975,7 @@ class HttpRequest {
* (PECL pecl_http &gt;= 0.12.0)<br/>
* Set headers
* @link https://php.net/manual/en/function.httprequest-setheaders.php
* @param array $headers [optional] <p>
* @param null|array $headers [optional] <p>
* an associative array as parameter containing header name/value pairs;
* if empty or omitted, all previously set headers will be unset
* </p>
@ -1007,7 +1007,7 @@ class HttpRequest {
* (PECL pecl_http &gt;= 0.12.0)<br/>
* Set cookies
* @link https://php.net/manual/en/function.httprequest-setcookies.php
* @param array $cookies [optional] <p>
* @param null|array $cookies [optional] <p>
* an associative array as parameter containing cookie name/value pairs;
* if empty or omitted, all previously set cookies will be unset
* </p>
@ -1336,7 +1336,7 @@ class HttpRequest {
* @param int $flags [optional] <p>
* http_parse_cookie flags
* </p>
* @param array $allowed_extras [optional] <p>
* @param null|array $allowed_extras [optional] <p>
* allowed keys treated as extra information instead of cookie names
* </p>
* @return stdClass[] an array of stdClass objects like http_parse_cookie would return.
@ -1575,7 +1575,7 @@ class HttpRequestPool implements Countable, Iterator {
* (PECL pecl_http &gt;= 0.10.0)<br/>
* HttpRequestPool constructor
* @link https://php.net/manual/en/function.httprequestpool-construct.php
* @param HttpRequest $request [optional] <p>
* @param null|HttpRequest $request [optional] <p>
* HttpRequest object to attach
* </p>
*/
@ -2020,10 +2020,10 @@ class HttpResponse {
* (PECL pecl_http &gt;= 0.10.0)<br/>
* Redirect
* @link https://php.net/manual/en/function.httpresponse-redirect.php
* @param string $url [optional]
* @param array $params [optional]
* @param bool $session [optional]
* @param int $status [optional]
* @param null|string $url [optional]
* @param null|array $params [optional]
* @param null|bool $session [optional]
* @param null|int $status [optional]
* @return void
*/
public static function redirect ($url = null, array $params = null , $session = null, $status = null) {}
@ -2187,17 +2187,17 @@ function http_date ($timestamp = null) {}
* (PECL pecl_http &gt;= 0.21.0)<br/>
* Build an URL
* @link https://php.net/manual/en/function.http-build-url.php
* @param mixed $url [optional] <p>
* @param null|mixed $url [optional] <p>
* (part(s) of) an URL in form of a string or associative array like parse_url returns
* </p>
* @param mixed $parts [optional] <p>
* @param null|mixed $parts [optional] <p>
* same as the first argument
* </p>
* @param int $flags [optional] <p>
* @param null|int $flags [optional] <p>
* a bitmask of binary or'ed HTTP_URL constants;
* HTTP_URL_REPLACE is the default
* </p>
* @param array &$new_url [optional] <p>
* @param null|array &$new_url [optional] <p>
* if set, it will be filled with the parts of the composed url like parse_url would return
* </p>
* @return string|false the new URL as string on success or false on failure.
@ -2229,7 +2229,7 @@ function http_build_str (array $query, $prefix = null, $arg_separator = null) {}
* @param array $supported <p>
* array containing the supported languages as values
* </p>
* @param array &$result [optional] <p>
* @param null|array &$result [optional] <p>
* will be filled with an array containing the negotiation results
* </p>
* @return string the negotiated language or the default language (i.e. first array entry) if none match.
@ -2243,7 +2243,7 @@ function http_negotiate_language (array $supported, array &$result = null ) {}
* @param array $supported <p>
* array containing the supported charsets as values
* </p>
* @param array &$result [optional] <p>
* @param null|array &$result [optional] <p>
* will be filled with an array containing the negotiation results
* </p>
* @return string the negotiated charset or the default charset (i.e. first array entry) if none match.
@ -2257,7 +2257,7 @@ function http_negotiate_charset (array $supported, array &$result = null ) {}
* @param array $supported <p>
* array containing the supported content types as values
* </p>
* @param array &$result [optional] <p>
* @param null|array &$result [optional] <p>
* will be filled with an array containing the negotiation results
* </p>
* @return string the negotiated content type or the default content type (i.e. first array entry) if none match.
@ -2271,13 +2271,13 @@ function http_negotiate_content_type (array $supported, array &$result = null )
* @param string $url [optional] <p>
* the URL to redirect to
* </p>
* @param array $params [optional] <p>
* @param null|array $params [optional] <p>
* associative array of query parameters
* </p>
* @param bool $session [optional] <p>
* @param null|bool $session [optional] <p>
* whether to append session information
* </p>
* @param int $status [optional] <p>
* @param null|int $status [optional] <p>
* custom response status code
* </p>
* @return void|false returns false or exits with the specified redirection status code
@ -2482,7 +2482,7 @@ function http_parse_headers ($header) {}
* @param int $flags [optional] <p>
* parse flags (HTTP_COOKIE_PARSE_RAW)
* </p>
* @param array $allowed_extras [optional] <p>
* @param null|array $allowed_extras [optional] <p>
* array containing recognized extra keys;
* by default all unknown keys will be treated as cookie names
* </p>
@ -2598,10 +2598,9 @@ function http_persistent_handles_ident ($ident) {}
* @param string $url <p>
* URL
* </p>
* @param array $options [optional] <p>
* &link.http.request.options;
* @param null|array $options [optional] <p>
* </p>
* @param array &$info [optional] <p>
* @param null|array &$info [optional] <p>
* Will be filled with request/response information
* </p>
* @return string
@ -2615,10 +2614,10 @@ function http_get ($url, array $options = null , array &$info = null ) {}
* @param string $url [optional] <p>
* URL
* </p>
* @param array $options [optional] <p>
* &link.http.request.options;
* @param null|array $options [optional] <p>
():
* </p>
* @param array &$info [optional] <p>
* @param null|array &$info [optional] <p>
* &link.http.request.info;
* </p>
* @return string
@ -2635,11 +2634,9 @@ function http_head ($url = null, array $options = null , array &$info = null )
* @param string $data [optional] <p>
* String containing the pre-encoded post data
* </p>
* @param array $options [optional] <p>
* &link.http.request.options;
* @param null|array $options [optional] <p>
* </p>
* @param array &$info [optional] <p>
* &link.http.request.info;
* @param null|array &$info [optional] <p>
* </p>
* @return string
*/
@ -2652,21 +2649,26 @@ function http_post_data ($url, $data = null, array $options = null , array &$in
* @param string $url <p>
* URL
* </p>
* @param array $data [optional] <p>
* @param null|array $data [optional] <p>
* Associative array of POST values
* </p>
* @param array $files [optional] <p>
* @param null|array $files [optional] <p>
* Array of files to post
* </p>
* @param array $options [optional] <p>
* &link.http.request.options;
* @param null|array $options [optional] <p>
* </p>
* @param array &$info [optional] <p>
* @param null|array &$info [optional] <p>
* &link.http.request.info;
* </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/>
@ -2675,13 +2677,12 @@ function http_post_fields ($url, array $data = null , array $files = null , ar
* @param string $url <p>
* URL
* </p>
* @param string $data [optional] <p>
* @param null|string $data [optional] <p>
* PUT request body
* </p>
* @param array $options [optional] <p>
* &link.http.request.options;
* @param null|array $options [optional] <p>
* </p>
* @param array &$info [optional] <p>
* @param null|array &$info [optional] <p>
* &link.http.request.info;
* </p>
* @return string
@ -2695,13 +2696,12 @@ function http_put_data ($url, $data = null, array $options = null , array &$inf
* @param string $url <p>
* URL
* </p>
* @param string $file [optional] <p>
* @param null|string $file [optional] <p>
* The file to put
* </p>
* @param array $options [optional] <p>
* &link.http.request.options;
* @param null|array $options [optional] <p>
* </p>
* @param array &$info [optional] <p>
* @param null|array &$info [optional] <p>
* &link.http.request.info;
* </p>
* @return string
@ -2715,13 +2715,12 @@ function http_put_file ($url, $file = null, array $options = null , array &$inf
* @param string $url <p>
* URL
* </p>
* @param resource $stream [optional] <p>
* @param null|resource $stream [optional] <p>
* The stream to read the PUT request body from
* </p>
* @param array $options [optional] <p>
* &link.http.request.options;
* @param null|array $options [optional] <p>
* </p>
* @param array &$info [optional] <p>
* @param null|array &$info [optional] <p>
* &link.http.request.info;
* </p>
* @return string
@ -2735,16 +2734,15 @@ function http_put_stream ($url, $stream = null, array $options = null , array &
* @param int $method <p>
* Request method
* </p>
* @param string $url [optional] <p>
* @param null|string $url [optional] <p>
* URL
* </p>
* @param string $body [optional] <p>
* @param null|string $body [optional] <p>
* Request body
* </p>
* @param array $options [optional] <p>
* &link.http.request.options;
* @param null|array $options [optional] <p>
* </p>
* @param array &$info [optional] <p>
* @param null|array &$info [optional] <p>
* &link.http.request.info;
* </p>
* @return string

View File

@ -6791,7 +6791,7 @@ class ImagickPixel {
* Returns true if the distance between two colors is less than the specified distance. The fuzz value should be in the range 0-QuantumRange.<br>
* The maximum value represents the longest possible distance in the colorspace. e.g. from RGB(0, 0, 0) to RGB(255, 255, 255) for the RGB colorspace
* @link https://php.net/manual/en/imagickpixel.ispixelsimilarquantum.php
* @param string $pixel
* @param string $color
* @param string $fuzz
* @return bool
* @since 3.3.0

View File

@ -41,7 +41,7 @@ use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
* @param int $n_retries [optional] <p>
* Number of maximum connect attempts
* </p>
* @param array $params [optional] <p>
* @param null|array $params [optional] <p>
* Connection parameters, the following (string) keys maybe used
* to set one or more connection parameters:
* DISABLE_AUTHENTICATOR - Disable authentication properties

View File

@ -243,7 +243,7 @@ function json_last_error_msg (): string {}
define ('JSON_HEX_TAG', 1);
/**
* All &#38;#38;s are converted to \u0026.
* All &s are converted to \u0026.
* @link https://php.net/manual/en/json.constants.php
*/
define ('JSON_HEX_AMP', 2);

View File

@ -1,5 +1,5 @@
<?php
declare(strict_types=1);
namespace Sodium;
/**
@ -59,17 +59,13 @@ 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.
*
* @return bool
*/
function crypto_aead_aes256gcm_is_available(): bool
{
return false;
}
function crypto_aead_aes256gcm_is_available(): bool { }
/**
* Authenticated Encryption with Associated Data (decrypt)
@ -86,10 +82,7 @@ namespace Sodium;
string $nonce,
string $key,
string $ad = ''
): string {
unset($msg, $nonce, $key, $ad);
return '';
}
): string { }
/**
* Authenticated Encryption with Associated Data (encrypt)
@ -106,10 +99,7 @@ namespace Sodium;
string $nonce,
string $key,
string $ad = ''
): string {
unset($msg, $nonce, $key, $ad);
return '';
}
): string { }
/**
* Authenticated Encryption with Associated Data (decrypt)
@ -126,10 +116,7 @@ namespace Sodium;
string $nonce,
string $key,
string $ad = ''
): string {
unset($msg, $nonce, $key, $ad);
return '';
}
): string { }
/**
* Authenticated Encryption with Associated Data (encrypt)
@ -146,10 +133,7 @@ namespace Sodium;
string $nonce,
string $key,
string $ad = ''
): string {
unset($msg, $nonce, $key, $ad);
return '';
}
): string { }
/**
* Secret-key message authentication
@ -162,10 +146,7 @@ namespace Sodium;
function crypto_auth(
string $msg,
string $key
): string {
unset($msg, $key);
return '';
}
): string { }
/**
* Secret-key message verification
@ -180,10 +161,7 @@ namespace Sodium;
string $mac,
string $msg,
string $key
): bool {
unset($mac, $msg, $key);
return false;
}
): bool { }
/**
* Public-key authenticated encryption (encrypt)
@ -198,19 +176,14 @@ namespace Sodium;
string $msg,
string $nonce,
string $keypair
): string {
unset($msg, $nonce, $keypair);
return '';
}
): string { }
/**
* Generate an X25519 keypair for use with the crypto_box API
*
* @return string
*/
function crypto_box_keypair(): string {
return '';
}
function crypto_box_keypair(): string { }
/**
* Derive an X25519 keypair for use with the crypto_box API from a seed
@ -220,10 +193,7 @@ namespace Sodium;
*/
function crypto_box_seed_keypair(
string $seed
): string {
unset($seed);
return '';
}
): string { }
/**
* Create an X25519 keypair from an X25519 secret key and X25519 public key
@ -235,10 +205,7 @@ namespace Sodium;
function crypto_box_keypair_from_secretkey_and_publickey(
string $secretkey,
string $publickey
): string {
unset($secretkey, $publickey);
return '';
}
): string { }
/**
* Public-key authenticated encryption (decrypt)
@ -253,10 +220,7 @@ namespace Sodium;
string $msg,
string $nonce,
string $keypair
): string {
unset($msg, $nonce, $keypair);
return '';
}
): string { }
/**
* Get an X25519 public key from an X25519 keypair
@ -266,10 +230,7 @@ namespace Sodium;
*/
function crypto_box_publickey(
string $keypair
): string {
unset($keypair);
return '';
}
): string { }
/**
* Derive an X25519 public key from an X25519 secret key
@ -279,10 +240,7 @@ namespace Sodium;
*/
function crypto_box_publickey_from_secretkey(
string $secretkey
): string {
unset($secretkey);
return '';
}
): string { }
/**
* Anonymous public-key encryption (encrypt)
@ -295,10 +253,7 @@ namespace Sodium;
function crypto_box_seal(
string $message,
string $publickey
): string {
unset($message, $publickey);
return '';
}
): string { }
/**
* Anonymous public-key encryption (decrypt)
@ -311,10 +266,7 @@ namespace Sodium;
function crypto_box_seal_open(
string $encrypted,
string $keypair
): string {
unset($encrypted, $keypair);
return '';
}
): string { }
/**
* Extract the X25519 secret key from an X25519 keypair
@ -322,11 +274,9 @@ namespace Sodium;
* @param string $keypair
* @return string
*/
function crypto_box_secretkey(string $keypair): string
{
unset($keypair);
return '';
}
function crypto_box_secretkey(
string $keypair
): string { }
/**
* Elliptic Curve Diffie Hellman Key Exchange
@ -343,10 +293,7 @@ namespace Sodium;
string $publickey,
string $client_publickey,
string $server_publickey
): string {
unset($secretkey, $publickey, $client_publickey, $server_publickey);
return '';
}
): string { }
/**
* Fast and secure cryptographic hash
@ -360,10 +307,7 @@ namespace Sodium;
string $input,
string $key = '',
int $length = 32
): string{
unset($input, $key, $length);
return '';
}
): string { }
/**
* Create a new hash state (e.g. to use for streams)
@ -376,10 +320,7 @@ namespace Sodium;
function crypto_generichash_init(
string $key = '',
int $length = 32
): string {
unset($key, $length);
return '';
}
): string { }
/**
* Update the hash state with some data
@ -392,26 +333,20 @@ namespace Sodium;
function crypto_generichash_update(
string &$hashState,
string $append
): bool {
unset($hashState, $append);
return '';
}
): bool { }
/**
* Get the final hash
* BLAKE2b
*
* @param string $hashState
* @param string $state
* @param int $length
* @return string
*/
function crypto_generichash_final(
string $state,
int $length = 32
): string {
unset($state, $length);
return '';
}
): string { }
/**
* Secure password-based key derivation function
@ -430,10 +365,7 @@ namespace Sodium;
string $salt,
int $opslimit,
int $memlimit
): string {
unset($out_len, $passwd, $salt, $opslimit, $memlimit);
return '';
}
): string { }
/**
* Get a formatted password hash (for storage)
@ -448,10 +380,7 @@ namespace Sodium;
string $passwd,
int $opslimit,
int $memlimit
): string {
unset($passwd, $opslimit, $memlimit);
return '';
}
): string { }
/**
* Verify a password against a hash
@ -464,10 +393,7 @@ namespace Sodium;
function crypto_pwhash_str_verify(
string $hash,
string $passwd
): bool {
unset($hash, $passwd);
return false;
}
): bool { }
/**
* Secure password-based key derivation function
@ -486,10 +412,7 @@ namespace Sodium;
string $salt,
int $opslimit,
int $memlimit
): string {
unset($out_len, $passwd, $salt, $opslimit, $memlimit);
return '';
}
): string { }
/**
* Get a formatted password hash (for storage)
@ -504,10 +427,7 @@ namespace Sodium;
string $passwd,
int $opslimit,
int $memlimit
): string {
unset($passwd, $opslimit, $memlimit);
return '';
}
): string { }
/**
* Verify a password against a hash
@ -520,10 +440,7 @@ namespace Sodium;
function crypto_pwhash_scryptsalsa208sha256_str_verify(
string $hash,
string $passwd
): bool {
unset($hash, $passwd);
return false;
}
): bool { }
/**
* Elliptic Curve Diffie Hellman over Curve25519
@ -536,10 +453,7 @@ namespace Sodium;
function crypto_scalarmult(
string $ecdhA,
string $ecdhB
): string {
unset($ecdhA, $ecdhB);
return '';
}
): string { }
/**
* Authenticated secret-key encryption (encrypt)
@ -554,10 +468,7 @@ namespace Sodium;
string $plaintext,
string $nonce,
string $key
): string {
unset($plaintext, $nonce, $key);
return '';
}
): string { }
/**
* Authenticated secret-key encryption (decrypt)
@ -572,10 +483,7 @@ namespace Sodium;
string $ciphertext,
string $nonce,
string $key
): string {
unset($ciphertext, $nonce, $key);
return '';
}
): string { }
/**
* A short keyed hash suitable for data structures
@ -588,10 +496,7 @@ namespace Sodium;
function crypto_shorthash(
string $message,
string $key
): string {
unset($message, $key);
return '';
}
): string { }
/**
* Digital Signature
@ -604,10 +509,7 @@ namespace Sodium;
function crypto_sign(
string $message,
string $secretkey
): string {
unset($message, $secretkey);
return '';
}
): string { }
/**
* Digital Signature (detached)
@ -620,10 +522,7 @@ namespace Sodium;
function crypto_sign_detached(
string $message,
string $secretkey
): string {
unset($message, $secretkey);
return '';
}
): string { }
/**
* Convert an Ed25519 public key to an X25519 public key
@ -633,10 +532,7 @@ namespace Sodium;
*/
function crypto_sign_ed25519_pk_to_curve25519(
string $sign_pk
): string {
unset($sign_pk);
return '';
}
): string { }
/**
* Convert an Ed25519 secret key to an X25519 secret key
@ -646,20 +542,14 @@ namespace Sodium;
*/
function crypto_sign_ed25519_sk_to_curve25519(
string $sign_sk
): string {
unset($sign_sk);
return '';
}
): string { }
/**
* Generate an Ed25519 keypair for use with the crypto_sign API
*
* @return string
*/
function crypto_sign_keypair(): string
{
return '';
}
function crypto_sign_keypair(): string { }
/**
@ -672,10 +562,7 @@ namespace Sodium;
function crypto_sign_keypair_from_secretkey_and_publickey(
string $secretkey,
string $publickey
): string {
unset($secretkey, $publickey);
return '';
}
): string { }
/**
* Verify a signed message and return the plaintext
@ -687,10 +574,7 @@ namespace Sodium;
function crypto_sign_open(
string $signed_message,
string $publickey
): string {
unset($signed_message, $publickey);
return '';
}
): string { }
/**
* Get the public key from an Ed25519 keypair
@ -700,10 +584,7 @@ namespace Sodium;
*/
function crypto_sign_publickey(
string $keypair
): string {
unset($keypair);
return '';
}
): string { }
/**
* Get the secret key from an Ed25519 keypair
@ -713,10 +594,7 @@ namespace Sodium;
*/
function crypto_sign_secretkey(
string $keypair
): string {
unset($keypair);
return '';
}
): string { }
/**
* Derive an Ed25519 public key from an Ed25519 secret key
@ -726,10 +604,7 @@ namespace Sodium;
*/
function crypto_sign_publickey_from_secretkey(
string $secretkey
): string {
unset($secretkey);
return '';
}
): string { }
/**
* Derive an Ed25519 keypair for use with the crypto_sign API from a seed
@ -739,10 +614,7 @@ namespace Sodium;
*/
function crypto_sign_seed_keypair(
string $seed
): string {
unset($seed);
return '';
}
): string { }
/**
* Verify a detached signature
@ -756,10 +628,7 @@ namespace Sodium;
string $signature,
string $msg,
string $publickey
): bool {
unset($signature, $msg, $publickey);
return false;
}
): bool { }
/**
* Create a keystream from a key and nonce
@ -774,10 +643,7 @@ namespace Sodium;
int $length,
string $nonce,
string $key
): string {
unset($length, $nonce, $key);
return '';
}
): string { }
/**
* Encrypt a message using a stream cipher
@ -792,10 +658,7 @@ namespace Sodium;
string $plaintext,
string $nonce,
string $key
): string {
unset($plaintext, $nonce, $key);
return '';
}
): string { }
/**
* Generate a string of random bytes
@ -806,10 +669,7 @@ namespace Sodium;
*/
function randombytes_buf(
int $length
): string {
unset($length);
return '';
}
): string { }
/**
* Generate a 16-bit integer
@ -817,9 +677,7 @@ namespace Sodium;
*
* @return int
*/
function randombytes_random16(): string {
return '';
}
function randombytes_random16(): int { }
/**
* Generate an unbiased random integer between 0 and a specified value
@ -830,10 +688,7 @@ namespace Sodium;
*/
function randombytes_uniform(
int $upperBoundNonInclusive
): int {
unset($upperBoundNonInclusive);
return 0;
}
): int { }
/**
* Convert to hex without side-chanels
@ -843,10 +698,7 @@ namespace Sodium;
*/
function bin2hex(
string $binary
): string {
unset($binary);
return '';
}
): string { }
/**
* Compare two strings in constant time
@ -858,23 +710,17 @@ namespace Sodium;
function compare(
string $left,
string $right
): int {
unset($left, $right);
return 0;
}
): int { }
/**
* Convert from hex without side-chanels
*
* @param string $binary
* @param string $hex
* @return string
*/
function hex2bin(
string $hex
): string {
unset($hex);
return '';
}
): string { }
/**
* Increment a string in little-endian
@ -884,9 +730,7 @@ namespace Sodium;
*/
function increment(
string &$nonce
) {
unset($nonce);
}
) { }
/**
* Add the right operand to the left
@ -897,25 +741,19 @@ namespace Sodium;
function add(
string &$left,
string $right
) {
unset($left, $right);
}
) { }
/**
* Get the true major version of libsodium
* @return int
*/
function library_version_major(): int {
return 0;
}
function library_version_major(): int { }
/**
* Get the true minor version of libsodium
* @return int
*/
function library_version_minor(): int {
return 0;
}
function library_version_minor(): int { }
/**
* Compare two strings in constant time
@ -927,30 +765,23 @@ namespace Sodium;
function memcmp(
string $left,
string $right
): int {
unset($right, $left);
return 0;
}
): int { }
/**
* Wipe a buffer
*
* @param string &$nonce
* @param string &$target
*/
function memzero(
string &$target
) {
$target = '';
}
) { }
/**
* Get the version string
*
* @return string
*/
function version_string(): string {
return 'NA';
}
function version_string(): string { }
/**
* Scalar multiplication of the base point and your key
@ -960,8 +791,4 @@ namespace Sodium;
*/
function crypto_scalarmult_base(
string $sk
): string {
unset($sk);
return '';
}
): string { }

View File

@ -15,6 +15,7 @@ class Lua {
const LUA_VERSION = '5.1.4';
/**
* @param null|string $lua_script_file
* @link https://secure.php.net/manual/en/lua.construct.php
*/
public function __construct(?string $lua_script_file = null) {}

View File

@ -41,7 +41,7 @@ function mailparse_msg_create () {}
* <p>
* If not specified, the contents will be sent to "stdout".
* </p>
* @return string <p>
* @return string|bool <p>
* If callbackfunc is not <b>NULL</b> returns <b>TRUE</b> on success.
* </p>
* <p>

View File

@ -20,7 +20,7 @@ use JetBrains\PhpStorm\Pure;
* MB_CASE_LOWER, or
* MB_CASE_TITLE.
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return string A case folded version of string converted in the
* way specified by mode.
*/
@ -34,7 +34,7 @@ function mb_convert_case (string $string, int $mode, ?string $encoding): string
* @param string $string <p>
* The string being uppercased.
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return string str with all alphabetic characters converted to uppercase.
*/
#[Pure]
@ -47,7 +47,7 @@ function mb_strtoupper (string $string, ?string $encoding): string
* @param string $string <p>
* The string being lowercased.
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return string str with all alphabetic characters converted to lowercase.
*/
#[Pure]
@ -261,7 +261,7 @@ function mb_preferred_mime_name (string $encoding): string|false
* @param string $string <p>
* The string being checked for length.
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return int the number of characters in
* string str having character encoding
* encoding. A multi-byte character is
@ -283,7 +283,7 @@ function mb_strlen (string $string, ?string $encoding): int
* @param int $offset [optional] <p>
* The search offset. If it is not specified, 0 is used.
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return int|false the numeric position of
* the first occurrence of needle in the
* haystack string. If
@ -306,7 +306,7 @@ function mb_strpos (string $haystack, string $needle, int $offset = 0, ?string $
* @param int $offset [optional] May be specified to begin searching an arbitrary number of characters into
* the string. Negative values will stop searching at an arbitrary point
* prior to the end of the string.
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return int|false the numeric position of
* the last occurrence of needle in the
* haystack string. If
@ -494,7 +494,7 @@ function mb_strrichr (string $haystack, string $needle, bool $before_needle = fa
* @param string $needle <p>
* The string being found.
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return int The number of times the
* needle substring occurs in the
* haystack string.
@ -515,7 +515,7 @@ function mb_substr_count (string $haystack, string $needle, ?string $encoding):
* @param int|null $length [optional] <p>
* The maximum length of the returned string.
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return string mb_substr returns the portion of
* str specified by the
* start and
@ -537,7 +537,7 @@ function mb_substr (string $string, int $start, ?int $length, ?string $encoding)
* @param int|null $length [optional] <p>
* The string being decoded.
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return string mb_strcut returns the portion of
* str specified by the
* start and
@ -553,7 +553,7 @@ function mb_strcut (string $string, int $start, ?int $length, ?string $encoding)
* @param string $string <p>
* The string being decoded.
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return int The width of string str.
*/
#[Pure]
@ -577,7 +577,7 @@ function mb_strwidth (string $string, ?string $encoding): int
* A string that is added to the end of string
* when string is truncated.
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return string The truncated string. If trimmarker is set,
* trimmarker is appended to the return value.
*/
@ -768,7 +768,7 @@ function mb_encoding_aliases (string $encoding)
* </tr>
* </table>
* </p>
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return string The converted string.
*/
#[Pure]
@ -858,7 +858,7 @@ function mb_convert_variables (string $to_encoding, array|string $from_encoding,
* convmap is array specifies code area to
* convert.
* </p>
* @param string $encoding &mbstring.encoding.parameter;
* @param null|string $encoding
* @param bool $hex [optional]
* @return string The converted string.
*/
@ -870,14 +870,14 @@ function mb_encode_numericentity (string $string, array $map, ?string $encoding,
/**
* Decode HTML numeric string reference to character
* @link https://php.net/manual/en/function.mb-decode-numericentity.php
* @param string $str <p>
* @param string $string <p>
* The string being decoded.
* </p>
* @param int[] $map <p>
* convmap is an array that specifies
* the code area to convert.
* </p>
* @param string $encoding &mbstring.encoding.parameter;
* @param null|string $encoding
* @param bool $is_hex [optional] <p>
* this parameter is not used.
* </p>
@ -891,14 +891,14 @@ function mb_decode_numericentity ($string, array $map, ?string $encoding, $is_he
/**
* Decode HTML numeric string reference to character
* @link https://php.net/manual/en/function.mb-decode-numericentity.php
* @param string $str <p>
* @param string $string <p>
* The string being decoded.
* </p>
* @param int[] $map <p>
* convmap is an array that specifies
* the code area to convert.
* </p>
* @param string $encoding &mbstring.encoding.parameter;
* @param null|string $encoding
* @return string The converted string.
*/
#[Pure]
@ -961,7 +961,7 @@ function mb_get_info (string $type): array|string|int|false
/**
* Check if the string is valid for the specified encoding
* @link https://php.net/manual/en/function.mb-check-encoding.php
* @param array|string|null $value [optional] <p>
* @param string|string[]|null $value [optional] <p>
* The byte stream to check. If it is omitted, this function checks
* all the input from the beginning of the request.
* </p>
@ -978,7 +978,7 @@ function mb_check_encoding (array|string|null $value = null, ?string $encoding):
/**
* Returns current encoding for multibyte regex as string
* @link https://php.net/manual/en/function.mb-regex-encoding.php
* @param string|null $encoding [optional] &mbstring.encoding.parameter;
* @param string|null $encoding [optional]
* @return bool|string If encoding is set, then Returns TRUE on success
* or FALSE on failure. In this case, the internal character encoding
* is NOT changed. If encoding is omitted, then the current character

View File

@ -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 = array()) {}
public function execute($code, array $args = []) {}
/**
* 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 = array()) {}
public function insert($a, array $options = []) {}
/**
* 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 = array()) {}
public function batchInsert(array $a, array $options = []) {}
/**
* 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 = array()) {}
public function update(array $criteria , array $newobj, array $options = []) {}
/**
* (PECL mongo &gt;= 0.9.0)<br/>
@ -1114,7 +1114,7 @@ class MongoCollection {
* <b>MongoCollection::insert()</b>.
* </p>
*/
public function remove(array $criteria = array(), array $options = array()) {}
public function remove(array $criteria = [], array $options = []) {}
/**
* 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(), array $fields = array()) {}
public function find(array $query = [], array $fields = []) {}
/**
* 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(), array $fields = array(), array $options = array()) {}
public function findOne(array $query = [], array $fields = [], array $options = []) {}
/**
* 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 = array()) {}
public function createIndex(array $keys, array $options = []) {}
/**
* 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 = array()) {}
public function ensureIndex(array $keys, array $options = []) {}
/**
* 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 = array()) {}
public function count($query = []) {}
/**
* 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 = array()) {}
public function save($a, array $options = []) {}
/**
* 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 = array()) {}
public function group($keys, array $initial, MongoCode $reduce, array $condition = []) {}
}
/**
@ -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(), array $fields = array()) {}
public function __construct($connection, $ns, array $query = [], array $fields = []) {}
/**
* (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(), array $fields = array()) {}
public function find(array $query = [], array $fields = []) {}
/**
* 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 = array(), $options = array()) {}
public function storeFile($filename, $extra = [], $options = []) {}
/**
* 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 = array(), $options = array()) {}
public function storeBytes($bytes, $extra = [], $options = []) {}
/**
* 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(), array $fields = array()) {}
public function findOne(array $query = [], array $fields = []) {}
/**
* Removes files from the collections
@ -1746,7 +1746,7 @@ class MongoGridFS extends MongoCollection {
* @throws MongoCursorException
* @return bool
*/
public function remove(array $criteria = array(), array $options = array()) {}
public function remove(array $criteria = [], array $options = []) {}
/**
* 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 = array()) {}
public function storeUpload($name, array $metadata = []) {}
/**
@ -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 = array()) {}
public function put($filename, array $extra = []) {}
}
@ -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 = array()) {}
public function __construct($code, array $scope = []) {}
/**
* Returns this code as a string

View File

@ -134,7 +134,7 @@ class Collection {
* @param string $index_name
* @return bool
*/
public function dropIndex($index_name, $index_desc_json) : bool {}
public function dropIndex($index_name) : bool {}
/**
* Check if collection exists in database
@ -684,7 +684,7 @@ class DocResult implements \mysql_xdevapi\BaseResult, \Traversable {
/**
* Fetches warnings generated by MySQL server's last operation.
* @link https://www.php.net/manual/en/mysql-xdevapi-docresult.getwarnings.php
* @return array|\mysql_xdevapi\Warning
* @return \mysql_xdevapi\Warning[]
*/
public function getWarnings () : array {}
@ -762,7 +762,7 @@ class Result implements \mysql_xdevapi\BaseResult , \Traversable {
/**
* Fetch the generated _id values from the last operation. The unique _id field is generated by the MySQL server.
* @link https://www.php.net/manual/en/mysql-xdevapi-result.getgeneratedids.php
* @return array|string[]
* @return string[]
*/
public function getGeneratedIds () : array {}
@ -770,7 +770,7 @@ class Result implements \mysql_xdevapi\BaseResult , \Traversable {
/**
* Retrieve warnings from the last Result operation.
* @link https://www.php.net/manual/en/mysql-xdevapi-result.getwarnings.php
* @return array|\mysql_xdevapi\Warning[]
* @return \mysql_xdevapi\Warning[]
*/
public function getWarnings () : array {}
@ -821,14 +821,14 @@ class RowResult implements \mysql_xdevapi\BaseResult , \Traversable {
/**
* Retrieve column metadata for columns present in the result set.
* @link https://www.php.net/manual/en/mysql-xdevapi-rowresult.getcolumns.php
* @return array|\mysql_xdevapi\FieldMetadata[]
* @return \mysql_xdevapi\FieldMetadata[]
*/
public function getColumns () : array {}
/**
* Retrieve warnings from the last RowResult operation.
* @link https://www.php.net/manual/en/mysql-xdevapi-rowresult.getwarnings.php
* @return array|\mysql_xdevapi\Warning[]
* @return \mysql_xdevapi\Warning[]
*/
public function getWarnings () : array {}
@ -894,7 +894,7 @@ class Schema implements \mysql_xdevapi\DatabaseObject {
/**
* Fetch a list of collections for this schema.
* @link https://www.php.net/manual/en/mysql-xdevapi-schema.getcollections.php
* @return array|\mysql_xdevapi\Collection[] Array of all collections in this schema, where each array element value is a Collection object with the collection name as the key.
* @return \mysql_xdevapi\Collection[] Array of all collections in this schema, where each array element value is a Collection object with the collection name as the key.
*/
public function getCollections () : array {}
@ -923,7 +923,7 @@ class Schema implements \mysql_xdevapi\DatabaseObject {
/**
* Get schema tables
* @link https://www.php.net/manual/en/mysql-xdevapi-schema.gettables.php
* @return array|\mysql_xdevapi\Table[] Array of all tables in this schema, where each array element value is a Table object with the table name as the key.
* @return \mysql_xdevapi\Table[] Array of all tables in this schema, where each array element value is a Table object with the table name as the key.
*/
public function getTables () : array {}
}
@ -1185,7 +1185,7 @@ class SqlStatementResult implements \mysql_xdevapi\BaseResult , \Traversable {
/**
* Get warnings from last operation
* @link https://www.php.net/manual/en/mysql-xdevapi-sqlstatementresult.getwarnings.php
* @return array|\mysql_xdevapi\Warning[]
* @return \mysql_xdevapi\Warning[]
*/
public function getWarnings () : array {}

View File

@ -176,7 +176,7 @@ class mysqli {
/**
* Changes the user of the specified database connection
* @link https://php.net/manual/en/mysqli.change-user.php
* @param string $username <p>
* @param string $user <p>
* The MySQL user name.
* </p>
* @param string $password <p>
@ -1732,13 +1732,13 @@ function mysqli_fetch_assoc (mysqli_result $result): ?array {}
* @param mysqli_result $result A result set identifier returned by mysqli_query(),
* mysqli_store_result() or mysqli_use_result().
* @param string $class The name of the class to instantiate, set the properties of and return. If not specified, a stdClass object is returned.
* @param array|null $constructor_args [optional] An optional array of parameters to pass to the constructor for class_name objects.
* @param array $constructor_args [optional] An optional array of parameters to pass to the constructor for class_name objects.
* @return object|null Returns an object with string properties that corresponds to the fetched row or NULL if there are no more rows in resultset.
* If two or more columns of the result have the same field names, the last column will take precedence.
* 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 = []): ?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 = array()) { }
function oauth_get_sbs($http_method, $uri, $request_parameters = []) { }
/**
* Encode a URI to RFC 3986
@ -132,7 +132,7 @@ class OAuth {
* @throws \OAuthException
* @return mixed
*/
public function fetch($protected_resource_url, $extra_parameters = array(), $http_method = null, $http_headers = array()) { }
public function fetch($protected_resource_url, $extra_parameters = [], $http_method = null, $http_headers = []) { }
/**
* Fetch an access token

View File

@ -28,7 +28,7 @@ function openssl_pkey_free(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetric
* error.
*/
#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")]
function openssl_pkey_new(?array $options): bool
function openssl_pkey_new(?array $options)
{ }
/**
@ -92,7 +92,7 @@ function openssl_pkey_export_to_file($key, string $output_filename, ?string $pas
* @return OpenSSLAsymmetricKey|resource|false Returns a positive key resource identifier on success, or <b>FALSE</b> on error.
*/
#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")]
function openssl_pkey_get_private($private_key, ?string $passphrase = ""): bool
function openssl_pkey_get_private($private_key, ?string $passphrase = "")
{ }
/**
@ -111,7 +111,7 @@ function openssl_pkey_get_private($private_key, ?string $passphrase = ""): bool
* @return OpenSSLAsymmetricKey|resource|false a positive key resource identifier on success, or false on error.
*/
#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")]
function openssl_pkey_get_public($public_key): bool
function openssl_pkey_get_public($public_key)
{ }
/**
@ -165,7 +165,7 @@ function openssl_free_key(#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricK
* @return OpenSSLAsymmetricKey|resource|false Returns a positive key resource identifier on success, or <b>FALSE</b> on error.
*/
#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")]
function openssl_get_privatekey($private_key, ?string $passphrase): bool
function openssl_get_privatekey($private_key, ?string $passphrase)
{ }
/**
@ -185,7 +185,7 @@ function openssl_get_privatekey($private_key, ?string $passphrase): bool
* @return OpenSSLAsymmetricKey|false a positive key resource identifier on success, or FALSE on error.
*/
#[LanguageLevelTypeAware(["8.0" => "OpenSSLAsymmetricKey|false"], default: "resource|false")]
function openssl_get_publickey($public_key): bool
function openssl_get_publickey($public_key)
{ }
/**
@ -259,7 +259,7 @@ function openssl_x509_fingerprint(#[LanguageLevelTypeAware(["8.0" => "OpenSSLCer
/**
* Free certificate resource
* @link https://php.net/manual/en/function.openssl-x509-free.php
* @param OpenSSLCertificate $certificateopenssl_x509_parse
* @param OpenSSLCertificate|resource|string $certificate
* @return void
*/
#[Deprecated(since: '8.0')]
@ -1099,7 +1099,14 @@ function openssl_cms_verify(string $input_filename, int $flags = 0, ?string $cer
/**
* Encrypts the message in the file with the certificates and outputs the result to the supplied file.
* @param string $input_filename
* @param string $output_filename
* @param resource|string|array $certificate
* @param null|array $headers
* @param int $flags
* @param int $encoding
* @param int $cipher_algo
* @return bool
* @since 8.0
*/
function openssl_cms_encrypt(string $input_filename, string $output_filename, $certificate, ?array $headers, int $flags = 0, int $encoding = OPENSSL_ENCODING_SMIME, int $cipher_algo = OPENSSL_CIPHER_RC2_40): bool {}
@ -1121,14 +1128,21 @@ function openssl_cms_sign(string $input_filename, string $output_filename, OpenS
/**
* Decrypts the S/MIME message in the file and outputs the results to the supplied file.
* @param string $input_filename
* @param string $output_filename
* @param resource|string $certificate
* @param resource|string|array $private_key
* @param int $encoding
* @return bool
* @since 8.0
*/
function openssl_cms_decrypt(string $input_filename, string $output_filename, $certificate, $private_key, int $encoding = OPENSSL_ENCODING_SMIME): bool {}
/**
* Exports the CMS file to an array of PEM certificates.
* @param string $input_filename
* @param array &$certificates
* @return bool
* @since 8.0
*/
function openssl_cms_read(string $input_filename, &$certificates): bool {}

View File

@ -45,7 +45,7 @@ final class Channel{
* Shall make an anonymous unbuffered channel
* Shall make an anonymous buffered channel with the given capacity
*
* @param int $capacity May be Channel::Infinite or a positive integer
* @param null|int $capacity May be Channel::Infinite or a positive integer
*/
public function __construct(int $capacity = null){}
@ -56,7 +56,7 @@ final class Channel{
* Shall make a buffered channel with the given name and capacity
*
* @param string $name The name of the channel.
* @param int $capacity May be Channel::Infinite or a positive integer
* @param null|int $capacity May be Channel::Infinite or a positive integer
*
* @return Channel
*

View File

@ -28,7 +28,7 @@ final class Runtime{
* Shall construct a new runtime without bootstrapping.
* Shall construct a bootstrapped runtime.
*
* @param string $bootstrap The location of a bootstrap file, generally an autoloader.
* @param null|string $bootstrap The location of a bootstrap file, generally an autoloader.
*
* @throws Runtime\Error if thread could not be created
* @throws Runtime\Error\Bootstrap if bootstrapping failed

View File

@ -34,12 +34,12 @@ namespace pcov
* pcov\inclusive shall collect coverage information for the specified files
* pcov\exclusive shall collect coverage information for all but the specified files
* </p>
* @param array $filenames [optional] <p>
* Note: paths in filter must be realpath
* @param array $filter <p>
* path of files (realpath) that should be filtered
* </p>
* @return array
*/
function collect($type = all, $filter = []) {}
function collect(int $type = all, array $filter = []) {}
/**
* (PHP &gt;= 7.0, PECL pcov &gt;= 1.0.0)<br/>

View File

@ -175,7 +175,7 @@ function preg_match (string $pattern, string $subject, &$matches, int $flags = 0
* sense to use <b>PREG_PATTERN_ORDER</b> together with
* <b>PREG_SET_ORDER</b>):
* <b>PREG_PATTERN_ORDER</b>
* <p>
* <br>
* Orders results so that $matches[0] is an array of full
* pattern matches, $matches[1] is an array of strings matched by
* the first parenthesized subpattern, and so on.
@ -211,8 +211,6 @@ function preg_match (string $pattern, string $subject, &$matches, int $flags = 0
* So, $out[0] contains array of strings that matched full pattern,
* and $out[1] contains array of strings enclosed by tags.
* </p>
* </p>
* @param int $offset [optional]
* @return int|false|null the number of full pattern matches (which might be zero),
* or <b>FALSE</b> if an error occurred.
*/
@ -435,7 +433,8 @@ function preg_filter (array|string $pattern, array|string $replacement, array|st
* <b>PREG_SPLIT_NO_EMPTY</b>
* If this flag is set, only non-empty pieces will be returned by
* <b>preg_split</b>.
* @return string[]|array|false an array containing substrings of <i>subject</i>
* </p>
* @return string[]|false an array containing substrings of <i>subject</i>
* split along boundaries matched by <i>pattern</i>, or <b>FALSE</b>
* if an error occurred.
*/

View File

@ -307,7 +307,7 @@ function posix_getcwd (): string|false
* octal notation (e.g. 0644). The permission of the newly created
* FIFO also depends on the setting of the current
* <b>umask</b>. The permissions of the created file are
* (mode &#38;#38; ~umask).
* (mode & ~umask).
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/

View File

@ -114,7 +114,7 @@ class Pool {
* Allows the pool to collect references determined to be garbage by the
* optionally given collector
* @link https://secure.php.net/manual/en/pool.collect.php
* @param callable $collector [optional] <p>A Callable collector that returns a
* @param null|callable $collector [optional] <p>A Callable collector that returns a
* boolean on whether the task can be collected or not. Only in rare cases should
* a custom collector need to be used.</p>
* @return int <p>The number of remaining tasks in the pool to be collected</p>
@ -449,7 +449,7 @@ class Worker extends Thread implements Traversable, Countable, ArrayAccess {
* Allows the worker to collect references determined to be garbage by the
* optionally given collector
* @link https://secure.php.net/manual/en/worker.collect.php
* @param callable $collector [optional] <p>A Callable collector that returns
* @param null|callable $collector [optional] <p>A Callable collector that returns
* a boolean on whether the task can be collected or not. Only in rare cases
* should a custom collector need to be used</p>
* @return int <p>The number of remaining tasks on the worker's stack to be

View File

@ -14,10 +14,10 @@ final class RarArchive implements Traversable
* Open RAR archive
*
* @param string $filename Path to the Rar archive
* @param string $password A plain password, if needed to decrypt the headers. It will also be used by default if
* @param null|string $password A plain password, if needed to decrypt the headers. It will also be used by default if
* encrypted files are found. Note that the files may have different passwords in respect
* to the headers and among them
* @param callable $volume_callback A function that receives one parameter the path of the volume that was
* @param null|callable $volume_callback A function that receives one parameter the path of the volume that was
* not found and returns a string with the correct path for such volume or NULL if such volume does not
* exist or is not known. The programmer should ensure the passed function doesn't cause loops as this
* function is called repeatedly if the path returned in a previous call did not correspond to the needed

View File

@ -38,7 +38,7 @@ abstract class RdKafka
/**
* @param string $topic_name
* @param TopicConf $topic_conf
* @param null|TopicConf $topic_conf
*
* @return Topic
*/

View File

@ -5,7 +5,7 @@ namespace RdKafka;
class Consumer extends \RdKafka
{
/**
* @param Conf $conf
* @param null|Conf $conf
*/
public function __construct(Conf $conf = null)
{
@ -13,7 +13,7 @@ class Consumer extends \RdKafka
/**
* @param string $topic_name
* @param TopicConf $topic_conf
* @param null|TopicConf $topic_conf
*
* @return ConsumerTopic
*/

View File

@ -139,7 +139,7 @@ class KafkaConsumer
/**
* @param string $topic_name
* @param TopicConf $topic_conf
* @param null|TopicConf $topic_conf
*
* @return Topic
*/

View File

@ -5,7 +5,7 @@ namespace RdKafka;
class Producer extends \RdKafka
{
/**
* @param Conf $conf
* @param null|Conf $conf
*/
public function __construct(Conf $conf = null)
{
@ -13,7 +13,7 @@ class Producer extends \RdKafka
/**
* @param string $topic_name
* @param TopicConf $topic_conf
* @param null|TopicConf $topic_conf
*
* @return ProducerTopic
*/

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 = array())
public function zRangeByScore($key, $start, $end, array $options = [])
{
}
@ -3135,7 +3135,7 @@ class Redis
*
* @return array
*/
public function zRevRangeByScore($key, $start, $end, array $options = array())
public function zRevRangeByScore($key, $start, $end, array $options = [])
{
}
@ -3394,7 +3394,7 @@ class Redis
*
* @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 zUnionStore
*
@ -3448,7 +3448,7 @@ class Redis
*
* @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.
*
@ -4325,7 +4325,7 @@ class Redis
* $redis->eval("return {1,2,3,redis.call('lrange','mylist',0,-1)}}");
* </pre>
*/
public function eval($script, $args = array(), $numKeys = 0)
public function eval($script, $args = [], $numKeys = 0)
{
}
@ -4336,7 +4336,7 @@ class Redis
* @return mixed @see eval()
*/
#[Deprecated(replacement: '%class%->eval(%parametersList%)')]
public function evaluate($script, $args = array(), $numKeys = 0)
public function evaluate($script, $args = [], $numKeys = 0)
{
}
@ -4360,7 +4360,7 @@ class Redis
* $redis->evalSha($sha); // Returns 1
* </pre>
*/
public function evalSha($scriptSha, $args = array(), $numKeys = 0)
public function evalSha($scriptSha, $args = [], $numKeys = 0)
{
}
@ -4370,7 +4370,7 @@ class Redis
* @param int $numKeys
*/
#[Deprecated(replacement: '%class%->evalSha(%parametersList%)')]
public function evaluateSha($scriptSha, $args = array(), $numKeys = 0)
public function evaluateSha($scriptSha, $args = [], $numKeys = 0)
{
}
@ -5049,8 +5049,8 @@ class RedisArray
/**
* Constructor
*
* @param string|array $hosts Name of the redis array from redis.ini or array of hosts to construct the array with
* @param array $opts Array of options
* @param string|string[] $hosts Name of the redis array from redis.ini or array of hosts to construct the array with
* @param null|array $opts Array of options
*
* @link https://github.com/nicolasff/phpredis/blob/master/arrays.markdown
*/

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 = array(), $numKeys = 0)
* @method mixed eval($script, $args = [], $numKeys = 0)
*
*/
class RedisCluster {
@ -2342,7 +2342,7 @@ class RedisCluster {
* // array('val2'=> 2)
* </pre>
*/
public function zRangeByScore($key, $start, $end, array $options = array()) { }
public function zRangeByScore($key, $start, $end, array $options = []) { }
/**
* @see zRangeByScore()
@ -2354,7 +2354,7 @@ class RedisCluster {
*
* @return array
*/
public function zRevRangeByScore($key, $start, $end, array $options = array()) { }
public function zRevRangeByScore($key, $start, $end, array $options = []) { }
/**
* Returns a range of members in a sorted set, by lexicographical range
@ -2439,7 +2439,7 @@ class RedisCluster {
*
* @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 zUnion.
*
@ -2675,7 +2675,7 @@ class RedisCluster {
* $redisCluster->evalSha($sha); // Returns 1
* </pre>
*/
public function evalSha($scriptSha, $args = array(), $numKeys = 0) { }
public function evalSha($scriptSha, $args = [], $numKeys = 0) { }
/**
* Scan the keyspace for keys.

View File

@ -12,7 +12,7 @@ use JetBrains\PhpStorm\Deprecated;
* @param string $string <p>
* The input string.
* </p>
* @param array &$regs [optional] <p>
* @param null|array &$regs [optional] <p>
* If matches are found for parenthesized substrings of
* <i>pattern</i> and the function is called with the
* third argument <i>regs</i>, the matches will be stored
@ -73,7 +73,7 @@ function ereg_replace ($pattern, $replacement, $string) {}
* @param string $string <p>
* The input string.
* </p>
* @param array &$regs [optional] <p>
* @param null|array &$regs [optional] <p>
* If matches are found for parenthesized substrings of
* <i>pattern</i> and the function is called with the
* third argument <i>regs</i>, the matches will be stored

View File

@ -304,7 +304,7 @@ function rpmvercmp (string $evr1, string $evr2) {}
* @param bool $full [optional] <p>
* If TRUE all information headers for the file are retrieved, else only a minimal set.
* </p>
* @param string &$error [optional] <p>
* @param null|string &$error [optional] <p>
* If provided, will receive the possible error message, and will avoid a runtime warning.
* </p>
*

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 = array()) {}
function rrd_restore($xml_file, $rrd_file, $options = []) {}
/**
* Change some options in the RRD dabase header file. E.g. renames the source for the data etc.

View File

@ -1,7 +1,7 @@
<?php
// Start of session v.
use JetBrains\PhpStorm\Deprecated;
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
/**
* Get and/or set the current session name.<br/>
@ -207,7 +207,8 @@ function session_destroy (): bool
* @link https://php.net/manual/en/function.session-unset.php
* @return void|bool since 7.2.0 returns true on success or false on failure.
*/
function session_unset (): bool
#[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")]
function session_unset()
{}
/**
@ -397,8 +398,14 @@ function session_set_cookie_params (array $options): bool
* </p>
* @return void|bool since 7.2.0 returns true on success or false on failure.
*/
function session_set_cookie_params (array|int $lifetime_or_options, ?string $path, ?string $domain, ?bool $secure = false, ?bool $httponly = false): bool
{}
#[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
) {}
/**
* Get the session cookie parameters
@ -424,7 +431,8 @@ function session_get_cookie_params (): array
* @link https://php.net/manual/en/function.session-write-close.php
* @return void|bool since 7.2.0 returns true on success or false on failure.
*/
function session_write_close (): bool
#[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")]
function session_write_close()
{}
/**
@ -432,7 +440,8 @@ function session_write_close (): bool
* @link https://php.net/manual/en/function.session-commit.php
* @return void|bool since 7.2.0 returns true on success or false on failure.
*/
function session_commit (): bool
#[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")]
function session_commit()
{}
/**
@ -454,7 +463,8 @@ function session_status (): int
* @return void|bool since 7.2.0 returns true if a session was successfully reinitialized or false on failure.
* @since 5.6
*/
function session_abort(): bool
#[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")]
function session_abort()
{}
/**
@ -464,7 +474,8 @@ function session_abort(): bool
* @return void|bool since 7.2.0 returns true if a session was successfully reinitialized or false on failure.
* @since 5.6
*/
function session_reset(): bool
#[LanguageLevelTypeAware(["7.2" => "bool"], default: "void")]
function session_reset()
{}
// End of session v.

View File

@ -11,7 +11,7 @@ use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
* System's id for the shared memory block.
* Can be passed as a decimal or hex.
* </p>
* @param int $mode <p>
* @param string $mode <p>
* The flags that you can use:
* "a" for access (sets SHM_RDONLY for shmat)
* use this flag when you need to open an existing shared memory
@ -28,7 +28,7 @@ use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
* use to access the shared memory segment you've created. <b>FALSE</b> is
* returned on failure.
*/
#[LanguageLevelTypeAware(["8.0" => "Shmop|false"], default: "Shmop|false")]
#[LanguageLevelTypeAware(["8.0" => "Shmop|false"], default: "resource|false")]
function shmop_open (int $key, string $mode, int $permissions, int $size) {}
/**
@ -46,7 +46,8 @@ function shmop_open (int $key, string $mode, int $permissions, int $size) {}
* </p>
* @return string|false the data or <b>FALSE</b> on failure.
*/
function shmop_read (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop, int $offset, int $size): string {}
#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false")]
function shmop_read (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop, int $offset, int $size) {}
/**
* Close shared memory block
@ -89,7 +90,8 @@ function shmop_size (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "reso
* @return int|false The size of the written <i>data</i>, or <b>FALSE</b> on
* failure.
*/
function shmop_write (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop, string $data, int $offset): int {}
#[LanguageLevelTypeAware(["8.0" => "int"], default: "int|false")]
function shmop_write (#[LanguageLevelTypeAware(["8.0" => "Shmop"], default: "resource")] $shmop, string $data, int $offset) {}
/**
* Delete shared memory block

View File

@ -137,7 +137,7 @@ function sodium_crypto_aead_aes256gcm_encrypt(string $message, string $additiona
* @param string $additional_data additional data
* @param string $nonce
* @param string $key
* @return string
* @return string|false
* @throws SodiumException
* @since 7.2
*/
@ -165,7 +165,7 @@ function sodium_crypto_aead_chacha20poly1305_encrypt(string $message, string $ad
* @param string $additional_data additional data
* @param string $nonce
* @param string $key
* @return string
* @return string|false
* @throws SodiumException
* @since 7.2
*/
@ -609,7 +609,7 @@ function sodium_crypto_pwhash_str_verify(string $hash, string $password): bool {
* Secure password-based key derivation function
* Scrypt
* @link https://www.php.net/manual/en/function.sodium-crypto-pwhash-scryptsalsa208sha256.php
* @param int $out_len
* @param int $length
* @param string $password
* @param string $salt
* @param int $opslimit
@ -942,7 +942,7 @@ function sodium_compare(string $string1, string $string2): int {}
/**
* Convert from hex without side-chanels
* @link https://www.php.net/manual/en/function.sodium-hex2bin.php
* @param string $binary
* @param string $string
* @param string $ignore [optional]
* @return string
* @throws SodiumException
@ -954,7 +954,7 @@ function sodium_hex2bin(string $string, string $ignore): string {}
* Increment a string in little-endian
* @link https://www.php.net/manual/en/function.sodium-increment.php
* @param string &$string
* @return string
* @return void
* @throws SodiumException
* @since 7.2
*/
@ -1002,11 +1002,11 @@ function sodium_memcmp(string $string1, string $string2): int {}
/**
* Wipe a buffer
* @link https://www.php.net/manual/en/function.sodium-memzero.php
* @param string &$nonce
* @param string &$string
* @throws SodiumException
* @since 7.2
*/
function sodium_memzero(&$reference): void {
function sodium_memzero(string &$string): void {
$target = '';
}
@ -1080,18 +1080,38 @@ function sodium_crypto_aead_chacha20poly1305_keygen(): string {}
function sodium_crypto_aead_chacha20poly1305_ietf_keygen(): string {}
/**
* @param string $ciphertext
* @param string $additional_data
* @param string $nonce
* @param string $key
* @return string|false
* @throws SodiumException
* @since 7.2
* @see https://www.php.net/manual/en/function.sodium-crypto-aead-xchacha20poly1305-ietf-decrypt.php
*/
function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt(string $ciphertext, string $additional_data, string $nonce, string $key): string|false {}
function sodium_crypto_aead_xchacha20poly1305_ietf_decrypt(
string $ciphertext,
string $additional_data,
string $nonce,
string $key
): string|false {}
/**
* @param string$message
* @param string $additional_data
* @param string $nonce
* @param string $key
* @return string
* @throws SodiumException
* @since 7.2
* https://www.php.net/manual/en/function.sodium-crypto-aead-xchacha20poly1305-ietf-encrypt.php
*/
function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt(string $message, string $additional_data, string $nonce, string $key): string{}
function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt(
string $message,
string $additional_data,
string $nonce,
string $key
): string {}
/**
* @since 7.2
@ -1100,6 +1120,10 @@ function sodium_crypto_aead_xchacha20poly1305_ietf_encrypt(string $message, stri
function sodium_crypto_aead_xchacha20poly1305_ietf_keygen():string {}
/**
* @param string $password
* @param int $opslimit
* @param int $memlimit
* @return bool
* @since 7.2
* @see https://www.php.net/manual/en/function.sodium-crypto-pwhash-str-needs-rehash.php
*/
@ -1112,6 +1136,8 @@ function sodium_crypto_pwhash_str_needs_rehash(string $password, int $opslimit,
function sodium_crypto_secretstream_xchacha20poly1305_keygen(): string {}
/**
* @param string$key
* @return array
* @throws SodiumException
* @since 7.2
* @see https://www.php.net/manual/en/function.sodium-crypto-secretstream-xchacha20poly1305-init-push.php
@ -1130,6 +1156,9 @@ function sodium_crypto_secretstream_xchacha20poly1305_init_push(string $key): ar
function sodium_crypto_secretstream_xchacha20poly1305_push(string &$state, string $message, string $additional_data, int $tag): string{}
/**
* @param string $header
* @param string $key
* @return string
* @throws SodiumException
* @since 7.2
* @see https://www.php.net/manual/en/function.sodium-crypto-secretstream-xchacha20poly1305-init-pull.php
@ -1137,6 +1166,10 @@ function sodium_crypto_secretstream_xchacha20poly1305_push(string &$state, strin
function sodium_crypto_secretstream_xchacha20poly1305_init_pull(string $header, string $key): string{}
/**
* @param string &$state ,
* @param string $ciphertext
* @param string $additional_data
* @return array|false
* @throws SodiumException
* @since 7.2
* @see https://www.php.net/manual/en/function.sodium-crypto-secretstream-xchacha20poly1305-pull.php
@ -1144,6 +1177,7 @@ function sodium_crypto_secretstream_xchacha20poly1305_init_pull(string $header,
function sodium_crypto_secretstream_xchacha20poly1305_pull(string &$state, string $ciphertext, string $additional_data = ''): array|false {}
/**
* @param string &$state
* @throws SodiumException
* @since 7.2
* @see https://www.php.net/manual/en/function.sodium-crypto-secretstream-xchacha20poly1305-rekey.php
@ -1151,6 +1185,9 @@ function sodium_crypto_secretstream_xchacha20poly1305_pull(string &$state, strin
function sodium_crypto_secretstream_xchacha20poly1305_rekey(string &$state): void{}
/**
* @param string $string
* @param int $id
* @return string
* @throws SodiumException
* @since 7.2
* @see https://www.php.net/manual/en/function.sodium-bin2base64.php
@ -1158,6 +1195,9 @@ function sodium_crypto_secretstream_xchacha20poly1305_rekey(string &$state): voi
function sodium_bin2base64(string $string, int $id): string {}
/**
* @param string $string
* @param int $id
* @param string $ignore
* @throws SodiumException
* @since 7.2
* @see https://www.php.net/manual/en/function.sodium-base642bin.php

View File

@ -222,7 +222,7 @@ final class SolrDocument implements ArrayAccess, Iterator, Serializable {
* (PECL solr &gt;= 0.9.2)<br/>
* Merges one input document into another
* @link https://php.net/manual/en/solrdocument.merge.php
* @param SolrDocument $sourceDoc <p>
* @param SolrInputDocument $sourceDoc <p>
* The source document.
* </p>
* @param bool $overwrite [optional] <p>

View File

@ -333,10 +333,11 @@ class SQLite3 {
public function backup($destination, $sourceDatabase, $destinationDatabase){}
/**
* @param null|callable $callback
* @return bool
* @since 8.0
*/
function setAuthorizer(?callable $callback) {}
function setAuthorizer(?callable $callback): bool {}
}

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 = array()){}
function sqlsrv_connect($server_name, $connection_info = []){}
/**
* 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 = array(), $options = array()){}
function sqlsrv_prepare($conn, $tsql, $params = [], $options = []){}
/**
* 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 = array(), $options = array()){}
function sqlsrv_query($conn, $tsql, $params = [], $options = []){}
/**
* Makes the next row in a result set available for reading.

View File

@ -10,7 +10,7 @@
* </p>
* @param int $port [optional] <p>
* </p>
* @param array $methods [optional] <p>
* @param null|array $methods [optional] <p>
* methods may be an associative array with up to four parameters
* as described below.
* </p>
@ -127,7 +127,7 @@
* for the underlying library for more information.
* </p>
* </p>
* @param array $callbacks [optional] <p>
* @param null|array $callbacks [optional] <p>
* callbacks may be an associative array with any
* or all of the following parameters.
* <table>
@ -320,17 +320,17 @@ function ssh2_forward_accept () {}
* term_type should correspond to one of the
* entries in the target system's /etc/termcap file.
* </p>
* @param array $env [optional] <p>
* @param null|array $env [optional] <p>
* env may be passed as an associative array of
* name/value pairs to set in the target environment.
* </p>
* @param int $width [optional] <p>
* @param null|int $width [optional] <p>
* Width of the virtual terminal.
* </p>
* @param int $height [optional] <p>
* @param null|int $height [optional] <p>
* Height of the virtual terminal.
* </p>
* @param int $width_height_type [optional] <p>
* @param null|int $width_height_type [optional] <p>
* width_height_type should be one of
* SSH2_TERM_UNIT_CHARS or
* SSH2_TERM_UNIT_PIXELS.
@ -349,19 +349,19 @@ function ssh2_shell ($session, $term_type = null, array $env = null , $width = n
* </p>
* @param string $command <p>
* </p>
* @param string $pty [optional] <p>
* @param null|string $pty [optional] <p>
* </p>
* @param array $env [optional] <p>
* @param null|array $env [optional] <p>
* env may be passed as an associative array of
* name/value pairs to set in the target environment.
* </p>
* @param int $width [optional] <p>
* @param null|int $width [optional] <p>
* Width of the virtual terminal.
* </p>
* @param int $height [optional] <p>
* @param null|int $height [optional] <p>
* Height of the virtual terminal.
* </p>
* @param int $width_height_type [optional] <p>
* @param null|int $width_height_type [optional] <p>
* width_height_type should be one of
* SSH2_TERM_UNIT_CHARS or
* SSH2_TERM_UNIT_PIXELS.
@ -617,10 +617,10 @@ function ssh2_publickey_init ($session) {}
* @param string $blob <p>
* Publickey blob as raw binary data
* </p>
* @param bool $overwrite [optional] <p>
* @param null|bool $overwrite [optional] <p>
* If the specified key already exists, should it be overwritten?
* </p>
* @param array $attributes [optional] <p>
* @param null|array $attributes [optional] <p>
* Associative array of attributes to assign to this public key.
* Refer to ietf-secsh-publickey-subsystem for a list of supported attributes.
* To mark an attribute as mandatory, precede its name with an asterisk.

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.
@ -389,6 +389,7 @@ class object {
/**
* Restores the object state from the given data array.
* @param array $data
* @since 7.4
* @link https://wiki.php.net/rfc/custom_object_serialization
*/

View File

@ -310,7 +310,7 @@ function wordwrap (string $string, int $width = 75, string $break = "\n", bool $
* @param string $string <p>
* The {@link https://secure.php.net/manual/en/language.types.string.php string} being converted.
* </p>
* @param int|string $flags [optional] <p>
* @param int $flags [optional] <p>
* A bitmask of one or more of the following flags, which specify how to handle quotes,
* invalid code unit sequences and the used document type. The default is
* <em><b>ENT_COMPAT | ENT_HTML401</b></em>.
@ -836,7 +836,7 @@ function iptcparse (string $iptc_block): array|false
* Spool flag. If the spool flag is over 2 then the JPEG will be
* returned as a string.
* </p>
* @return string|bool If success and spool flag is lower than 2 then the JPEG will not be
* @return string|false If success and spool flag is lower than 2 then the JPEG will not be
* returned as a string, false on errors.
*/
function iptcembed (string $iptc_data, string $filename, int $spool): string|bool

View File

@ -584,13 +584,13 @@ function substr (string $string, int $offset, ?int $length)
/**
* Replace text within a portion of a string
* @link https://php.net/manual/en/function.substr-replace.php
* @param array|string $string <p>
* @param string[]|string $string <p>
* The input string.
* </p>
* @param string|array $replace <p>
* @param string[]|string $replace <p>
* The replacement string.
* </p>
* @param array|int $offset <p>
* @param int[]|int $offset <p>
* If start is positive, the replacing will
* begin at the start'th offset into
* string.
@ -600,7 +600,7 @@ function substr (string $string, int $offset, ?int $length)
* begin at the start'th character from the
* end of string.
* </p>
* @param int $length [optional] <p>
* @param int[]|int $length [optional] <p>
* If given and is positive, it represents the length of the portion of
* string which is to be replaced. If it is
* negative, it represents the number of characters from the end of
@ -960,16 +960,37 @@ function trim (string $string, string $characters = " \t\n\r\0\x0B"): string
function ltrim (string $string, string $characters = " \t\n\r\0\x0B"): string
{}
#[PhpStormStubsElementAvailable(to: '7.3')]
/**
* Strip HTML and PHP tags from a string
* @link https://php.net/manual/en/function.strip-tags.php
* @param string $string <p>
* The input string.
* </p>
* @param array|string $allowed_tags [optional] <p>
* @param null|string $allowed_tags [optional] <p>
* You can use the optional second parameter to specify tags which should
* not be stripped.<br/>
* Since 7.4.0 alternatively accepts an array of allowed tags.
* not be stripped.
* </p>
* <p>
* HTML comments and PHP tags are also stripped. This is hardcoded and
* can not be changed with allowable_tags.
* </p>
* @return string the stripped string.
*/
#[Pure]
function strip_tags (string $string, string $allowed_tags = null): string
{}
#[PhpStormStubsElementAvailable('7.4')]
/**
* Strip HTML and PHP tags from a string
* @link https://php.net/manual/en/function.strip-tags.php
* @param string $string <p>
* The input string.
* </p>
* @param null|string[]|string $allowed_tags [optional] <p>
* You can use the optional second parameter to specify tags which should
* not be stripped.
* </p>
* <p>
* HTML comments and PHP tags are also stripped. This is hardcoded and

View File

@ -739,6 +739,9 @@ function fmod(float $num1, float $num2): float
* Performs a floating-point division under
* IEEE 754 semantics. Division by zero is considered well-defined and
* will return one of Inf, -Inf or NaN.
* @param float $num1
* @param float $num2
* @return float
* @since 8.0
*/
#[Pure]

View File

@ -518,7 +518,7 @@ function fgets ($stream, ?int $length): string|false
* Gets line from file pointer and strip HTML tags
* @link https://php.net/manual/en/function.fgetss.php
* @param resource $handle The file pointer must be valid, and must point to a file successfully opened by fopen() or fsockopen() (and not yet closed by fclose()).
* @param int $length [optional] <p>
* @param null|int $length [optional] <p>
* Length of the data to be retrieved.
* </p>
* @param string $allowable_tags [optional] <p>

View File

@ -1047,8 +1047,8 @@ function stream_is_local ($stream): bool
* @param string $url <p>
* The target URL.
* </p>
* @param int $associative [optional] <p>
* If the optional format parameter is set to non-zero,
* @param bool $associative [optional] <p>
* If the optional format parameter is set to true,
* get_headers parses the response and sets the
* array's keys.
* </p>
@ -1057,7 +1057,7 @@ function stream_is_local ($stream): bool
* failure.
*/
#[Pure]
function get_headers (string $url, bool $associative, $context): array|false
function get_headers (string $url, bool $associative = false, $context): array|false
{}
/**

View File

@ -390,6 +390,7 @@ function dir (string $directory, $context): Directory|false
/**
* Alias of dir()
* @param string $directory
* @param resource $context
* @since 8.0
* @return Directory|false

View File

@ -674,7 +674,7 @@ function count (Countable|array $value, int $mode = COUNT_NORMAL): int
/**
* Set the internal pointer of an array to its last element
* @link https://php.net/manual/en/function.end.php
* @param ArrayAccess|array &$array <p>
* @param array|ArrayAccess &$array <p>
* The array. This array is passed by reference because it is modified by
* the function. This means you must pass it a real variable and not
* a function returning an array because only actual variables may be
@ -688,7 +688,7 @@ function end (object|array &$array): mixed {}
/**
* Rewind the internal array pointer
* @link https://php.net/manual/en/function.prev.php
* @param ArrayAccess|array &$array <p>
* @param array|ArrayAccess &$array <p>
* The input array.
* </p>
* @return mixed the array value in the previous place that's pointed to by
@ -701,7 +701,7 @@ function prev (object|array &$array): mixed {}
/**
* Advance the internal array pointer of an array
* @link https://php.net/manual/en/function.next.php
* @param ArrayAccess|array &$array <p>
* @param array|ArrayAccess &$array <p>
* The array being affected.
* </p>
* @return mixed the array value in the next place that's pointed to by the
@ -713,7 +713,7 @@ function next (object|array &$array): mixed {}
/**
* Set the internal pointer of an array to its first element
* @link https://php.net/manual/en/function.reset.php
* @param ArrayAccess|array &$array <p>
* @param array|ArrayAccess &$array <p>
* The input array.
* </p>
* @return mixed the value of the first array element, or false if the array is
@ -725,7 +725,7 @@ function reset (object|array &$array): mixed {}
/**
* Return the current element in an array
* @link https://php.net/manual/en/function.current.php
* @param ArrayAccess|array $array <p>
* @param array|ArrayAccess $array <p>
* The array.
* </p>
* @return mixed The current function simply returns the
@ -741,7 +741,7 @@ function current (object|array $array): mixed {}
/**
* Fetch a key from an array
* @link https://php.net/manual/en/function.key.php
* @param ArrayAccess|array $array <p>
* @param array|ArrayAccess $array <p>
* The array.
* </p>
* @return int|string|null The key function simply returns the
@ -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 array()
* not necessary to put []
* around it, unless the element is an array itself.
* </p>
* @return array the array consisting of the extracted elements.

View File

@ -4,6 +4,7 @@
* @since 5.6
*/
use JetBrains\PhpStorm\Internal\LanguageLevelTypeAware;
use JetBrains\PhpStorm\Internal\PhpStormStubsElementAvailable;
use JetBrains\PhpStorm\Pure;
@ -757,6 +758,7 @@ 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
@ -772,12 +774,14 @@ function array_chunk(array $array, int $length, bool $preserve_keys): array
* @meta
*/
#[Pure]
function array_combine(array $keys, array $values): array { }
#[LanguageLevelTypeAware(["8.0" => "array"], default: "array|false")]
function array_combine(array $keys, array $values) { }
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Checks if the given key or index exists in the array
* @link https://php.net/manual/en/function.array-key-exists.php
* @param mixed $key <p>
* @param int|string $key <p>
* Value to check.
* </p>
* @param array|ArrayObject $array <p>
@ -786,6 +790,22 @@ function array_combine(array $keys, array $values): array { }
* @return bool true on success or false on failure.
*/
#[Pure]
function array_key_exists($key, $array): bool
{ }
#[PhpStormStubsElementAvailable('8.0')]
/**
* Checks if the given key or index exists in the array
* @link https://php.net/manual/en/function.array-key-exists.php
* @param int|string $key <p>
* Value to check.
* </p>
* @param array $array <p>
* An array with keys to check.
* </p>
* @return bool true on success or false on failure.
*/
#[Pure]
function array_key_exists($key, array $array): bool
{ }
@ -841,7 +861,7 @@ function sizeof(Countable|array $value, int $mode = COUNT_NORMAL): int
/**
* Checks if the given key or index exists in the array. The name of this function is array_key_exists() in PHP > 4.0.6.
* @link https://php.net/manual/en/function.array-key-exists.php
* @param mixed $key <p>
* @param int|string $key <p>
* Value to check.
* </p>
* @param array $array <p>
@ -854,7 +874,7 @@ function key_exists($key, array $array): bool
{ }
/**
* Checks if assertion is &false;
* Checks if assertion is <b>FALSE</b>
* @link https://php.net/manual/en/function.assert.php
* @param Throwable|string|null $assertion <p>
* The assertion.
@ -929,7 +949,7 @@ class AssertionError extends Error {
* @param mixed $value [optional] <p>
* An optional new value for the option.
* </p>
* @return object|array|string|int|null the original setting of any option or false on errors.
* @return object|array|string|int|null The original setting of any option.
*/
function assert_options(int $option, mixed $value): object|array|string|int|null
{ }

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 = array()) {}
public function __construct($broker = null, $username = null, $password = null, array $headers = []) {}
/**
* 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 = array()) {}
public function send($destination, $msg, array $headers = []) {}
/**
* 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 = array()) {}
public function subscribe($destination, array $headers = []) {}
/**
* 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 = array()) {}
public function unsubscribe($destination, array $headers = []) {}
/**
* 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 = array()) {}
public function ack($msg, array $headers = []) {}
/**
* 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 = array()) {}
function stomp_connect($broker = null, $username = null, $password = null, array $headers = []) {}
/**
* 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 = array()) {}
function stomp_send($link, $destination, $msg, array $headers = []) {}
/**
* Registers to listen to a given destination
@ -218,7 +218,7 @@ function stomp_send($link, $destination, $msg, array $headers = array()) {}
* @param array $headers additional headers (example: receipt).
* @return boolean TRUE on success, or FALSE on failure
*/
function stomp_subscribe($link, $destination, array $headers = array()) {}
function stomp_subscribe($link, $destination, array $headers = []) {}
/**
* Removes an existing subscription
@ -228,7 +228,7 @@ function stomp_subscribe($link, $destination, array $headers = array()) {}
* @param array $headers additional headers (example: receipt).
* @return boolean TRUE on success, or FALSE on failure
*/
function stomp_unsubscribe($link, $destination, array $headers = array()) {}
function stomp_unsubscribe($link, $destination, array $headers = []) {}
/**
* 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 = array()) {}
function stomp_ack($link, $msg, array $headers = []) {}
/**
* 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 = array();
$GLOBALS = [];
/**
* @xglobal $_COOKIE array
@ -17,7 +17,7 @@ $GLOBALS = array();
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_COOKIE = array();
$_COOKIE = [];
/**
* @xglobal $_ENV array
@ -29,11 +29,11 @@ $_COOKIE = array();
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_ENV = array();
$_ENV = [];
/**
* @deprecated 4.1
*/
$HTTP_ENV_VARS = array();
$HTTP_ENV_VARS = [];
/**
* @xglobal $_FILES array
@ -46,11 +46,11 @@ $HTTP_ENV_VARS = array();
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_FILES = array();
$_FILES = [];
/**
* @deprecated 4.1
*/
$HTTP_POST_FILES = array();
$HTTP_POST_FILES = [];
/**
@ -63,11 +63,11 @@ $HTTP_POST_FILES = array();
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_GET = array();
$_GET = [];
/**
* @deprecated 4.1
*/
$HTTP_GET_VARS = array();
$HTTP_GET_VARS = [];
/**
* @xglobal $_POST array
@ -80,11 +80,11 @@ $HTTP_GET_VARS = array();
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_POST = array();
$_POST = [];
/**
* @deprecated 4.1
*/
$HTTP_POST_VARS = array();
$HTTP_POST_VARS = [];
/**
* @xglobal $_REQUEST array
@ -104,7 +104,7 @@ $HTTP_POST_VARS = array();
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_REQUEST = array();
$_REQUEST = [];
/**
* @xglobal $_SERVER array
@ -116,11 +116,11 @@ $_REQUEST = array();
* <p><a href="https://secure.php.net/manual/en/reserved.variables.php">
* https://secure.php.net/manual/en/reserved.variables.php</a>
*/
$_SERVER = array();
$_SERVER = [];
/**
* @deprecated 4.1
*/
$HTTP_SERVER_VARS = array();
$HTTP_SERVER_VARS = [];
$_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 = array();
$_SESSION = [];
/**
* @deprecated 4.1
*/
$HTTP_SESSION_VARS = array();
$HTTP_SESSION_VARS = [];
/**
* @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 = array();
$argv = [];
/**
* @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 = array();
$http_response_header = [];
/**
* @xglobal $php_errormsg string

View File

@ -14,6 +14,7 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.checkprobabilitymodel.php
*/
public function checkProbabilityModel () : bool {}
/**
* Construct a new SVMModel
*
@ -23,6 +24,7 @@ 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
*
@ -31,6 +33,7 @@ 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
*
@ -39,6 +42,7 @@ 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
*
@ -47,6 +51,7 @@ class SVMModel {
* @link https://www.php.net/manual/en/svmmodel.getsvmtype.php
*/
public function getSvmType () : int {}
/**
* Get the sigma value for regression types
*
@ -55,14 +60,16 @@ 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.
* @return Returns true on success.
* @return bool Returns true on success.
* @throws SVMException
* @link https://www.php.net/manual/en/svmmodel.load.php
*/
public function load ( string $filename ) : bool {}
/**
* Return class probabilities for previous unseen data
*
@ -73,6 +80,7 @@ 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
*
@ -83,10 +91,11 @@ 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.
* @return Throws SVMException on error. Returns true on success.
* @return bool Throws SVMException on error. Returns true on success.
* @throws SVMException Throws SVMException on error
* @link https://www.php.net/manual/en/svmmodel.save.php
*/

View File

@ -647,14 +647,13 @@ function svn_propget ($path, $property_name, $recurse = false, $revision) {}
* @param string $path <p>
* Its description
* </p>
* @param array $config [optional] <p>
* @param null|array $config [optional] <p>
* Its description
* </p>
* @param array $fsconfig [optional] <p>
* @param null|array $fsconfig [optional] <p>
* Its description
* </p>
* @return resource What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return resource What the function returns, first on success, then on failure.
*/
function svn_repos_create ($path, array $config = null, array $fsconfig = null) {}
@ -665,8 +664,7 @@ function svn_repos_create ($path, array $config = null, array $fsconfig = null)
* @param string $path <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_repos_recover ($path) {}
@ -683,8 +681,7 @@ function svn_repos_recover ($path) {}
* @param bool $cleanlogs <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_repos_hotcopy ($repospath, $destpath, $cleanlogs) {}
@ -695,8 +692,7 @@ function svn_repos_hotcopy ($repospath, $destpath, $cleanlogs) {}
* @param string $path <p>
* Its description
* </p>
* @return resource What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return resource What the function returns, first on success, then on failure.
*/
function svn_repos_open ($path) {}
@ -707,8 +703,7 @@ function svn_repos_open ($path) {}
* @param resource $repos <p>
* Its description
* </p>
* @return resource What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return resource What the function returns, first on success, then on failure.
*/
function svn_repos_fs ($repos) {}
@ -728,8 +723,7 @@ function svn_repos_fs ($repos) {}
* @param string $log_msg <p>
* Its description
* </p>
* @return resource What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return resource What the function returns, first on success, then on failure.
*/
function svn_repos_fs_begin_txn_for_commit ($repos, $rev, $author, $log_msg) {}
@ -740,8 +734,7 @@ function svn_repos_fs_begin_txn_for_commit ($repos, $rev, $author, $log_msg) {}
* @param resource $txn <p>
* Its description
* </p>
* @return int What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return int What the function returns, first on success, then on failure.
*/
function svn_repos_fs_commit_txn ($txn) {}
@ -755,8 +748,7 @@ function svn_repos_fs_commit_txn ($txn) {}
* @param int $revnum <p>
* Its description
* </p>
* @return resource What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return resource What the function returns, first on success, then on failure.
*/
function svn_fs_revision_root ($fs, $revnum) {}
@ -770,8 +762,7 @@ function svn_fs_revision_root ($fs, $revnum) {}
* @param string $path <p>
* Its description
* </p>
* @return int What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return int What the function returns, first on success, then on failure.
*/
function svn_fs_check_path ($fsroot, $path) {}
@ -788,8 +779,7 @@ function svn_fs_check_path ($fsroot, $path) {}
* @param string $propname <p>
* Its description
* </p>
* @return string What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return string What the function returns, first on success, then on failure.
*/
function svn_fs_revision_prop ($fs, $revnum, $propname) {}
@ -803,8 +793,7 @@ function svn_fs_revision_prop ($fs, $revnum, $propname) {}
* @param string $path <p>
* Its description
* </p>
* @return array What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return array What the function returns, first on success, then on failure.
*/
function svn_fs_dir_entries ($fsroot, $path) {}
@ -818,8 +807,7 @@ function svn_fs_dir_entries ($fsroot, $path) {}
* @param string $path <p>
* Its description
* </p>
* @return int What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return int What the function returns, first on success, then on failure.
*/
function svn_fs_node_created_rev ($fsroot, $path) {}
@ -830,8 +818,7 @@ function svn_fs_node_created_rev ($fsroot, $path) {}
* @param resource $fs <p>
* Its description
* </p>
* @return int What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return int What the function returns, first on success, then on failure.
*/
function svn_fs_youngest_rev ($fs) {}
@ -845,8 +832,7 @@ function svn_fs_youngest_rev ($fs) {}
* @param string $path <p>
* Its description
* </p>
* @return resource What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return resource What the function returns, first on success, then on failure.
*/
function svn_fs_file_contents ($fsroot, $path) {}
@ -860,8 +846,7 @@ function svn_fs_file_contents ($fsroot, $path) {}
* @param string $path <p>
* Its description
* </p>
* @return int What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return int What the function returns, first on success, then on failure.
*/
function svn_fs_file_length ($fsroot, $path) {}
@ -872,8 +857,7 @@ function svn_fs_file_length ($fsroot, $path) {}
* @param resource $txn <p>
* Its description
* </p>
* @return resource What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return resource What the function returns, first on success, then on failure.
*/
function svn_fs_txn_root ($txn) {}
@ -887,8 +871,7 @@ function svn_fs_txn_root ($txn) {}
* @param string $path <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_fs_make_file ($root, $path) {}
@ -902,8 +885,7 @@ function svn_fs_make_file ($root, $path) {}
* @param string $path <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_fs_make_dir ($root, $path) {}
@ -917,8 +899,7 @@ function svn_fs_make_dir ($root, $path) {}
* @param string $path <p>
* Its description
* </p>
* @return resource What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return resource What the function returns, first on success, then on failure.
*/
function svn_fs_apply_text ($root, $path) {}
@ -938,8 +919,7 @@ function svn_fs_apply_text ($root, $path) {}
* @param string $to_path <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_fs_copy ($from_root, $from_path, $to_root, $to_path) {}
@ -953,8 +933,7 @@ function svn_fs_copy ($from_root, $from_path, $to_root, $to_path) {}
* @param string $path <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_fs_delete ($root, $path) {}
@ -968,8 +947,7 @@ function svn_fs_delete ($root, $path) {}
* @param int $rev <p>
* Its description
* </p>
* @return resource What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return resource What the function returns, first on success, then on failure.
*/
function svn_fs_begin_txn2 ($repos, $rev) {}
@ -983,8 +961,7 @@ function svn_fs_begin_txn2 ($repos, $rev) {}
* @param string $path <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_fs_is_dir ($root, $path) {}
@ -998,8 +975,7 @@ function svn_fs_is_dir ($root, $path) {}
* @param string $path <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_fs_is_file ($root, $path) {}
@ -1016,8 +992,7 @@ function svn_fs_is_file ($root, $path) {}
* @param string $propname <p>
* Its description
* </p>
* @return string What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return string What the function returns, first on success, then on failure.
*/
function svn_fs_node_prop ($fsroot, $path, $propname) {}
@ -1037,8 +1012,7 @@ function svn_fs_node_prop ($fsroot, $path, $propname) {}
* @param string $value <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_fs_change_node_prop ($root, $path, $name, $value) {}
@ -1058,8 +1032,7 @@ function svn_fs_change_node_prop ($root, $path, $name, $value) {}
* @param string $path2 <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_fs_contents_changed ($root1, $path1, $root2, $path2) {}
@ -1079,8 +1052,7 @@ function svn_fs_contents_changed ($root1, $path1, $root2, $path2) {}
* @param string $path2 <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_fs_props_changed ($root1, $path1, $root2, $path2) {}
@ -1091,8 +1063,7 @@ function svn_fs_props_changed ($root1, $path1, $root2, $path2) {}
* @param resource $txn <p>
* Its description
* </p>
* @return bool What the function returns, first on success, then on failure. See
* also the &#38;#38;return.success; entity
* @return bool What the function returns, first on success, then on failure.
*/
function svn_fs_abort_txn ($txn) {}

View File

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

View File

@ -28,7 +28,7 @@ function xdebug_get_function_stack(): array {}
* Displays the current function stack, in a similar way as what Xdebug would display in an error situation.
* @param string $message
* @param int $options A bit mask of the following constants: XDEBUG_STACK_NO_DESC
* @return array
* @return void
*/
function xdebug_print_function_stack (string $message = '', int $options = 0) {}
@ -36,7 +36,7 @@ function xdebug_print_function_stack (string $message = '', int $options = 0) {}
* Returns an array where each element is a variable name which is defined in the current scope.
* @return array
*/
function xdebug_get_declared_vars () {}
function xdebug_get_declared_vars (): array {}
/**
* This function returns the filename from where the current function/method was executed from, or NULL
@ -96,6 +96,7 @@ function xdebug_get_monitored_functions(): array {}
/**
* This function displays structured information about one or more expressions that includes its type and value.
* Arrays are explored recursively with values.
* @param mixed $var
* @return void
*/
function xdebug_var_dump (mixed ...$variable) {}
@ -195,23 +196,23 @@ function xdebug_start_trace(?string $traceFile, int $options = 0): string {}
/**
* Stop tracing function calls and closes the trace file.
*
* @return void
* @return string
*/
function xdebug_stop_trace(): string {}
/**
* Returns the name of the file which is used to trace the output of this script too.
* This is useful when xdebug.auto_trace is enabled.
* @return string
* @return string|null
*/
function xdebug_get_tracefile_name () {}
function xdebug_get_tracefile_name (): ?string {}
/**
* Returns the name of the file which is used to save profile information to.
*
* @return string
* @return string|false
*/
function xdebug_get_profiler_filename () {}
function xdebug_get_profiler_filename (): string|false {}
/**
* @return bool
@ -296,7 +297,7 @@ function xdebug_get_function_count(): int {}
*
* @return void
*/
function xdebug_dump_superglobals () {}
function xdebug_dump_superglobals(): void {}
/**
* Returns all the headers that are set with PHP's header() function,
@ -334,7 +335,7 @@ function xdebug_stop_gcstats(): string {}
* statistics collection is not active.
* @return mixed
*/
function xdebug_get_gcstats_filename() {}
function xdebug_get_gcstats_filename(): mixed {}
/**
* @return int

View File

@ -370,10 +370,11 @@ function xml_parse (#[LanguageLevelTypeAware(["8.0" => "XmlParser"], default: "r
function xml_parse_into_struct (#[LanguageLevelTypeAware(["8.0" => "XmlParser"], default: "resource")] $parser, string $data, &$values, &$index): int
{}
#[PhpStormStubsElementAvailable(to: '7.4')]
/**
* Get XML parser error code
* @link https://php.net/manual/en/function.xml-get-error-code.php
* @param XmlParser|resource $parser <p>
* @param resource $parser <p>
* A reference to the XML parser to get error code from.
* </p>
* @return int|false This function returns <b>FALSE</b> if <i>parser</i> does
@ -382,7 +383,20 @@ function xml_parse_into_struct (#[LanguageLevelTypeAware(["8.0" => "XmlParser"],
* section.
*/
#[Pure]
function xml_get_error_code (#[LanguageLevelTypeAware(["8.0" => "XmlParser"], default: "resource")] $parser): int {}
function xml_get_error_code (resource $parser): int|false {}
#[PhpStormStubsElementAvailable('8.0')]
/**
* Get XML parser error code
* @link https://php.net/manual/en/function.xml-get-error-code.php
* @param XmlParser $parser <p>
* A reference to the XML parser to get error code from.
* </p>
* @return int Returns one of the error codes listed in the error codes
* section.
*/
#[Pure]
function xml_get_error_code (XmlParser $parser): int {}
/**
* Get XML parser error string

View File

@ -383,7 +383,7 @@ class XMLReader {
/**
* Returns a copy of the current node as a DOM object
* @link https://php.net/manual/en/xmlreader.expand.php
* @param DOMNode $baseNode [optional]
* @param null|DOMNode $baseNode [optional]
* @return DOMNode|false The resulting <b>DOMNode</b> or <b>FALSE</b> on error.
* @since 5.1.2
*/

View File

@ -43,7 +43,7 @@ function xmlrpc_decode_request ($xml, &$method, $encoding = null) {}
* @param mixed $params <p>
* Method parameters compatible with method signature.
* </p>
* @param array $output_options [optional] <p>
* @param null|array $output_options [optional] <p>
* Array specifying output options may contain (default values are
* emphasised):
* <p>output_type: php, xml</p>
@ -118,7 +118,7 @@ function xmlrpc_server_register_method ($server, $method_name, $function) {}
* @param resource $server
* @param string $xml
* @param mixed $user_data
* @param array $output_options [optional]
* @param null|array $output_options [optional]
* @return string
*/
function xmlrpc_server_call_method ($server, $xml, $user_data, array $output_options = null) {}

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 (): bool
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 = array()) {}
function yaml_emit_file($filename, $data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, $callbacks = []) {}
/**
* (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 = array()) {}
function yaml_emit($data, $encoding = YAML_ANY_ENCODING, $linebreak = YAML_ANY_BREAK, $callbacks = []) {}
/**
* (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 = array()) {}
function yaml_parse_file($filename, $pos = 0, &$ndocs = null, $callbacks = []) {}
/**
* (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 = array
* @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 = array()) {}
function yaml_parse_url($url, $pos = 0, &$ndocs = null, $callbacks = []) {}
/**
* (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 = array()) {}
* @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 = array()) {}
function yaml_parse($input, $pos = 0, &$ndocs = null, $callbacks = []) {}

View File

@ -284,7 +284,7 @@ class ZendAPI_Job {
*
* @var array
*/
var $_user_variables = array();
var $_user_variables = [];
/**
* 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 = array()) {}
public function addGlob ($pattern, $flags = 0, array $options = []) {}
/**
* (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 = array()) {}
public function addPattern ($pattern, $path = '.', array $options = []) {}
/**
* (PHP 5 &gt;= 5.2.0, PECL zip &gt;= 1.5.0)<br/>

View File

@ -439,7 +439,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 = array()) {}
function deflate_init (int $encoding, array $options = []) {}
/**
* Incrementally deflate data
@ -487,7 +487,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 = array()) {}
function inflate_init (int $encoding, array $options = []) {}
/**
* Incrementally inflate encoded data

View File

@ -702,7 +702,7 @@ class ZMQDevice
*
* @param ZMQSocket $frontend Frontend parameter for the devices. Usually where there messages are coming.
* @param ZMQSocket $backend Backend parameter for the devices. Usually where there messages going to.
* @param 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.
* @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)
{