diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b2a300e7a45..cb91b65d8e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,7 +87,7 @@ jobs: ini-values: zend.assertions=1, assert.exception=1 tools: composer:v2 coverage: none - extensions: none, curl, dom, filter, json, libxml, mbstring, openssl, pcre, phar, reflection, simplexml, spl, tokenizer, xml, xmlwriter + extensions: none, curl, dom, filter, intl, json, libxml, mbstring, openssl, pcre, phar, reflection, simplexml, spl, tokenizer, xml, xmlwriter - uses: actions/checkout@v3 diff --git a/.github/workflows/windows-ci.yml b/.github/workflows/windows-ci.yml index 4450dfb8606..adf55967721 100644 --- a/.github/workflows/windows-ci.yml +++ b/.github/workflows/windows-ci.yml @@ -57,7 +57,7 @@ jobs: ini-values: zend.assertions=1, assert.exception=1 tools: composer:v2 coverage: none - extensions: none, curl, dom, filter, json, libxml, mbstring, openssl, pcre, phar, reflection, simplexml, spl, tokenizer, xml, xmlwriter + extensions: none, curl, dom, filter, intl, json, libxml, mbstring, openssl, pcre, phar, reflection, simplexml, spl, tokenizer, xml, xmlwriter - uses: actions/checkout@v3 diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index a28691ce39f..e1b65ee87a2 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -373,7 +373,7 @@ 'array_diff_ukey\'1' => ['associative-array', 'array'=>'array', 'rest'=>'array', 'arr3'=>'array', 'arg4'=>'array|callable(mixed,mixed):int', '...rest='=>'array|callable(mixed,mixed):int'], 'array_fill' => ['array', 'start_index'=>'int', 'count'=>'int', 'value'=>'mixed'], 'array_fill_keys' => ['array', 'keys'=>'array', 'value'=>'mixed'], -'array_filter' => ['associative-array', 'array'=>'array', 'callback='=>'callable(mixed,mixed=):scalar', 'mode='=>'int'], +'array_filter' => ['associative-array', 'array'=>'array', 'callback='=>'callable(mixed,mixed=):scalar|null', 'mode='=>'int'], 'array_flip' => ['associative-array|associative-array', 'array'=>'array'], 'array_intersect' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], 'array_intersect_assoc' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], @@ -404,7 +404,7 @@ 'array_search' => ['int|string|false', 'needle'=>'mixed', 'haystack'=>'array', 'strict='=>'bool'], 'array_shift' => ['mixed|null', '&rw_array'=>'array'], 'array_slice' => ['array', 'array'=>'array', 'offset'=>'int', 'length='=>'?int', 'preserve_keys='=>'bool'], -'array_splice' => ['array', '&rw_array'=>'array', 'offset'=>'int', 'length='=>'int', 'replacement='=>'array|string'], +'array_splice' => ['array', '&rw_array'=>'array', 'offset'=>'int', 'length='=>'?int', 'replacement='=>'array|string'], 'array_sum' => ['int|float', 'array'=>'array'], 'array_udiff' => ['associative-array', 'array'=>'array', 'rest'=>'array', 'data_comp_func'=>'callable(mixed,mixed):int'], 'array_udiff\'1' => ['associative-array', 'array'=>'array', 'rest'=>'array', 'arr3'=>'array', 'arg4'=>'array|callable(mixed,mixed):int', '...rest='=>'array|callable(mixed,mixed):int'], @@ -548,9 +548,9 @@ 'bcsqrt' => ['numeric-string|null', 'num'=>'numeric-string', 'scale='=>'int|null'], 'bcsub' => ['numeric-string', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int|null'], 'bin2hex' => ['string', 'string'=>'string'], -'bind_textdomain_codeset' => ['string', 'domain'=>'string', 'codeset'=>'string'], +'bind_textdomain_codeset' => ['string', 'domain'=>'string', 'codeset'=>'?string'], 'bindec' => ['float|int', 'binary_string'=>'string'], -'bindtextdomain' => ['string', 'domain'=>'string', 'directory'=>'string'], +'bindtextdomain' => ['string', 'domain'=>'string', 'directory'=>'?string'], 'birdstep_autocommit' => ['bool', 'index'=>'int'], 'birdstep_close' => ['bool', 'id'=>'int'], 'birdstep_commit' => ['bool', 'index'=>'int'], @@ -576,7 +576,7 @@ 'bzflush' => ['bool', 'bz'=>'resource'], 'bzopen' => ['resource|false', 'file'=>'string|resource', 'mode'=>'string'], 'bzread' => ['string|false', 'bz'=>'resource', 'length='=>'int'], -'bzwrite' => ['int|false', 'bz'=>'resource', 'data'=>'string', 'length='=>'int'], +'bzwrite' => ['int|false', 'bz'=>'resource', 'data'=>'string', 'length='=>'?int'], 'CachingIterator::__construct' => ['void', 'iterator'=>'Iterator', 'flags='=>''], 'CachingIterator::__toString' => ['string'], 'CachingIterator::count' => ['int'], @@ -1672,8 +1672,8 @@ 'curl_escape' => ['string|false', 'handle'=>'CurlHandle', 'string'=>'string'], 'curl_exec' => ['bool|string', 'handle'=>'CurlHandle'], 'curl_file_create' => ['CURLFile', 'filename'=>'string', 'mime_type='=>'string|null', 'posted_filename='=>'string|null'], -'curl_getinfo' => ['mixed', 'handle'=>'CurlHandle', 'option='=>'int'], -'curl_init' => ['CurlHandle|false', 'url='=>'string'], +'curl_getinfo' => ['mixed', 'handle'=>'CurlHandle', 'option='=>'?int'], +'curl_init' => ['CurlHandle|false', 'url='=>'?string'], 'curl_multi_add_handle' => ['int', 'multi_handle'=>'CurlMultiHandle', 'handle'=>'CurlHandle'], 'curl_multi_close' => ['void', 'multi_handle'=>'CurlMultiHandle'], 'curl_multi_errno' => ['int', 'multi_handle'=>'CurlMultiHandle'], @@ -1734,8 +1734,8 @@ 'date_parse_from_format' => ['array', 'format'=>'string', 'datetime'=>'string'], 'date_sub' => ['DateTime', 'object'=>'DateTime', 'interval'=>'DateInterval'], 'date_sun_info' => ['array', 'timestamp'=>'int', 'latitude'=>'float', 'longitude'=>'float'], -'date_sunrise' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], -'date_sunset' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], +'date_sunrise' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'?float', 'longitude='=>'?float', 'zenith='=>'?float', 'utcOffset='=>'?float'], +'date_sunset' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'?float', 'longitude='=>'?float', 'zenith='=>'?float', 'utcOffset='=>'?float'], 'date_time_set' => ['DateTime', 'object'=>'', 'hour'=>'', 'minute'=>'', 'second='=>'', 'microsecond='=>''], 'date_timestamp_get' => ['int', 'object'=>'DateTimeInterface'], 'date_timestamp_set' => ['DateTime', 'object'=>'DateTime', 'timestamp'=>'int'], @@ -1743,7 +1743,7 @@ 'date_timezone_set' => ['DateTime', 'object'=>'DateTime', 'timezone'=>'DateTimeZone'], 'datefmt_create' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType='=>'int', 'timeType='=>'int', 'timezone='=>'DateTimeZone|IntlTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], 'datefmt_format' => ['string|false', 'formatter'=>'IntlDateFormatter', 'datetime'=>'DateTime|IntlCalendar|array|int'], -'datefmt_format_object' => ['string|false', 'datetime'=>'object', 'format='=>'mixed', 'locale='=>'string'], +'datefmt_format_object' => ['string|false', 'datetime'=>'object', 'format='=>'mixed', 'locale='=>'?string'], 'datefmt_get_calendar' => ['int', 'formatter'=>'IntlDateFormatter'], 'datefmt_get_calendar_object' => ['IntlCalendar|false|null', 'formatter'=>'IntlDateFormatter'], 'datefmt_get_datetype' => ['int', 'formatter'=>'IntlDateFormatter'], @@ -1757,7 +1757,7 @@ 'datefmt_is_lenient' => ['bool', 'formatter'=>'IntlDateFormatter'], 'datefmt_localtime' => ['array|false', 'formatter'=>'IntlDateFormatter', 'string'=>'string', '&rw_offset='=>'int'], 'datefmt_parse' => ['int|false', 'formatter'=>'IntlDateFormatter', 'string'=>'string', '&rw_offset='=>'int'], -'datefmt_set_calendar' => ['bool', 'formatter'=>'IntlDateFormatter', 'calendar'=>'int'], +'datefmt_set_calendar' => ['bool', 'formatter'=>'IntlDateFormatter', 'calendar'=>'IntlCalendar|int|null'], 'datefmt_set_lenient' => ['?bool', 'formatter'=>'IntlDateFormatter', 'lenient'=>'bool'], 'datefmt_set_pattern' => ['bool', 'formatter'=>'IntlDateFormatter', 'pattern'=>'string'], 'datefmt_set_timezone' => ['false|null', 'formatter'=>'IntlDateFormatter', 'timezone'=>'IntlTimeZone|DateTimeZone|string|null'], @@ -1878,7 +1878,7 @@ 'dba_firstkey' => ['string', 'dba'=>'resource'], 'dba_handlers' => ['array', 'full_info='=>'bool'], 'dba_insert' => ['bool', 'key'=>'string', 'value'=>'string', 'dba'=>'resource'], -'dba_key_split' => ['array|false', 'key'=>'string'], +'dba_key_split' => ['array|false', 'key'=>'string|false|null'], 'dba_list' => ['array'], 'dba_nextkey' => ['string', 'dba'=>'resource'], 'dba_open' => ['resource', 'path'=>'string', 'mode'=>'string', 'handler='=>'string', '...handler_params='=>'string'], @@ -1984,9 +1984,9 @@ 'dio_truncate' => ['bool', 'fd'=>'resource', 'offset'=>'int'], 'dio_write' => ['int', 'fd'=>'resource', 'data'=>'string', 'length='=>'int'], 'dir' => ['Directory|false', 'directory'=>'string', 'context='=>'resource'], -'Directory::close' => ['void', 'dir_handle='=>'resource'], -'Directory::read' => ['string|false', 'dir_handle='=>'resource'], -'Directory::rewind' => ['void', 'dir_handle='=>'resource'], +'Directory::close' => ['void'], +'Directory::read' => ['string|false'], +'Directory::rewind' => ['void'], 'DirectoryIterator::__construct' => ['void', 'path'=>'string'], 'DirectoryIterator::__toString' => ['string'], 'DirectoryIterator::current' => ['DirectoryIterator'], @@ -2398,8 +2398,8 @@ 'Ds\Vector::sum' => ['int|float'], 'Ds\Vector::toArray' => ['array'], 'Ds\Vector::unshift' => ['void', '...values='=>'mixed'], -'easter_date' => ['int', 'year='=>'int'], -'easter_days' => ['int', 'year='=>'int', 'mode='=>'int'], +'easter_date' => ['int', 'year='=>'?int'], +'easter_days' => ['int', 'year='=>'?int', 'mode='=>'int'], 'echo' => ['void', 'arg1'=>'string', '...args='=>'string'], 'eio_busy' => ['resource', 'delay'=>'int', 'pri='=>'int', 'callback='=>'callable', 'data='=>'mixed'], 'eio_cancel' => ['void', 'req'=>'resource'], @@ -2501,8 +2501,8 @@ 'Error::getTraceAsString' => ['string'], 'error_clear_last' => ['void'], 'error_get_last' => ['?array{type:int,message:string,file:string,line:int}'], -'error_log' => ['bool', 'message'=>'string', 'message_type='=>'int', 'destination='=>'string', 'additional_headers='=>'string'], -'error_reporting' => ['int', 'error_level='=>'int'], +'error_log' => ['bool', 'message'=>'string', 'message_type='=>'int', 'destination='=>'?string', 'additional_headers='=>'?string'], +'error_reporting' => ['int', 'error_level='=>'?int'], 'ErrorException::__clone' => ['void'], 'ErrorException::__construct' => ['void', 'message='=>'string', 'code='=>'int', 'severity='=>'int', 'filename='=>'string', 'line='=>'int', 'previous='=>'?Throwable|?ErrorException'], 'ErrorException::__toString' => ['string'], @@ -2884,7 +2884,7 @@ 'Exception::getTraceAsString' => ['string'], 'exec' => ['string|false', 'command'=>'string', '&w_output='=>'array', '&w_result_code='=>'int'], 'exif_imagetype' => ['int|false', 'filename'=>'string'], -'exif_read_data' => ['array|false', 'file'=>'string|resource', 'required_sections='=>'string', 'as_arrays='=>'bool', 'read_thumbnail='=>'bool'], +'exif_read_data' => ['array|false', 'file'=>'string|resource', 'required_sections='=>'?string', 'as_arrays='=>'bool', 'read_thumbnail='=>'bool'], 'exif_tagname' => ['string|false', 'index'=>'int'], 'exif_thumbnail' => ['string|false', 'file'=>'string', '&w_width='=>'int', '&w_height='=>'int', '&w_image_type='=>'int'], 'exit' => ['', 'status'=>'string|int'], @@ -3192,9 +3192,8 @@ 'ffmpeg_movie::hasAudio' => ['bool'], 'ffmpeg_movie::hasVideo' => ['bool'], 'fgetc' => ['string|false', 'stream'=>'resource'], -'fgetcsv' => ['list|array{0: null}|false|null', 'stream'=>'resource', 'length='=>'int', 'separator='=>'string', 'enclosure='=>'string', 'escape='=>'string'], -'fgets' => ['string|false', 'stream'=>'resource', 'length='=>'int'], -'fgetss' => ['string|false', 'fp'=>'resource', 'length='=>'int', 'allowable_tags='=>'string'], +'fgetcsv' => ['list|array{0: null}|false|null', 'stream'=>'resource', 'length='=>'?int', 'separator='=>'string', 'enclosure='=>'string', 'escape='=>'string'], +'fgets' => ['string|false', 'stream'=>'resource', 'length='=>'?int'], 'Fiber::__construct' => ['void', 'callback'=>'callable'], 'Fiber::start' => ['mixed', '...args'=>'mixed'], 'Fiber::resume' => ['mixed', 'value='=>'null|mixed'], @@ -3209,7 +3208,7 @@ 'FiberError::__construct' => ['void'], 'file' => ['list|false', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'], 'file_exists' => ['bool', 'filename'=>'string'], -'file_get_contents' => ['string|false', 'filename'=>'string', 'use_include_path='=>'bool', 'context='=>'?resource', 'offset='=>'int', 'length='=>'int'], +'file_get_contents' => ['string|false', 'filename'=>'string', 'use_include_path='=>'bool', 'context='=>'?resource', 'offset='=>'int', 'length='=>'?int'], 'file_put_contents' => ['int|false', 'filename'=>'string', 'data'=>'string|resource|array', 'flags='=>'int', 'context='=>'resource'], 'fileatime' => ['int|false', 'filename'=>'string'], 'filectime' => ['int|false', 'filename'=>'string'], @@ -3288,7 +3287,7 @@ 'finfo_buffer' => ['string|false', 'finfo'=>'finfo', 'string'=>'string', 'flags='=>'int', 'context='=>'resource'], 'finfo_close' => ['bool', 'finfo'=>'finfo'], 'finfo_file' => ['string|false', 'finfo'=>'finfo', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'], -'finfo_open' => ['finfo|false', 'flags='=>'int', 'magic_database='=>'string'], +'finfo_open' => ['finfo|false', 'flags='=>'int', 'magic_database='=>'?string'], 'finfo_set_flags' => ['bool', 'finfo'=>'finfo', 'flags'=>'int'], 'floatval' => ['float', 'value'=>'mixed'], 'flock' => ['bool', 'stream'=>'resource', 'operation'=>'int', '&w_would_block='=>'int'], @@ -3303,14 +3302,14 @@ 'fpm_get_status' => ['array|false'], 'fprintf' => ['int', 'stream'=>'resource', 'format'=>'string', '...values='=>'string|int|float'], 'fputcsv' => ['int|false', 'stream'=>'resource', 'fields'=>'array', 'separator='=>'string', 'enclosure='=>'string', 'escape='=>'string', 'eol='=>'string'], -'fputs' => ['int|false', 'stream'=>'resource', 'data'=>'string', 'length='=>'int'], +'fputs' => ['int|false', 'stream'=>'resource', 'data'=>'string', 'length='=>'?int'], 'fread' => ['string|false', 'stream'=>'resource', 'length'=>'int'], 'frenchtojd' => ['int', 'month'=>'int', 'day'=>'int', 'year'=>'int'], 'fribidi_log2vis' => ['string', 'string'=>'string', 'direction'=>'string', 'charset'=>'int'], 'fscanf' => ['list', 'stream'=>'resource', 'format'=>'string'], 'fscanf\'1' => ['int', 'stream'=>'resource', 'format'=>'string', '&...w_vars='=>'string|int|float'], 'fseek' => ['int', 'stream'=>'resource', 'offset'=>'int', 'whence='=>'int'], -'fsockopen' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'float'], +'fsockopen' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'?float'], 'fstat' => ['array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int, 9: int, 10: int, 11: int, 12: int, dev: int, ino: int, mode: int, nlink: int, uid: int, gid: int, rdev: int, size: int, atime: int, mtime: int, ctime: int, blksize: int, blocks: int}|false', 'stream'=>'resource'], 'ftell' => ['int|false', 'stream'=>'resource'], 'ftok' => ['int', 'filename'=>'string', 'project_id'=>'string'], @@ -3355,7 +3354,7 @@ 'func_get_args' => ['list'], 'func_num_args' => ['int'], 'function_exists' => ['bool', 'function'=>'string'], -'fwrite' => ['int|false', 'stream'=>'resource', 'data'=>'string', 'length='=>'int'], +'fwrite' => ['int|false', 'stream'=>'resource', 'data'=>'string', 'length='=>'?int'], 'gc_collect_cycles' => ['int'], 'gc_disable' => ['void'], 'gc_enable' => ['void'], @@ -3714,10 +3713,10 @@ 'get_required_files' => ['list'], 'get_resource_id' => ['int', 'resource'=>'resource'], 'get_resource_type' => ['string', 'resource'=>'resource'], -'get_resources' => ['array', 'type='=>'string'], +'get_resources' => ['array', 'type='=>'?string'], 'getallheaders' => ['array|false'], 'getcwd' => ['string|false'], -'getdate' => ['array{seconds: int<0, 59>, minutes: int<0, 59>, hours: int<0, 23>, mday: int<1, 31>, wday: int<0, 6>, mon: int<1, 12>, year: int, yday: int<0, 365>, weekday: "Monday"|"Tuesday"|"Wednesday"|"Thursday"|"Friday"|"Saturday"|"Sunday", month: "January"|"February"|"March"|"April"|"May"|"June"|"July"|"August"|"September"|"October"|"November"|"December", 0: int}', 'timestamp='=>'int'], +'getdate' => ['array{seconds: int<0, 59>, minutes: int<0, 59>, hours: int<0, 23>, mday: int<1, 31>, wday: int<0, 6>, mon: int<1, 12>, year: int, yday: int<0, 365>, weekday: "Monday"|"Tuesday"|"Wednesday"|"Thursday"|"Friday"|"Saturday"|"Sunday", month: "January"|"February"|"March"|"April"|"May"|"June"|"July"|"August"|"September"|"October"|"November"|"December", 0: int}', 'timestamp='=>'?int'], 'getenv' => ['string|false', 'name'=>'string', 'local_only='=>'bool'], 'getenv\'1' => ['array'], 'gethostbyaddr' => ['string|false', 'ip'=>'string'], @@ -4071,7 +4070,7 @@ 'grapheme_strripos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'], 'grapheme_strrpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'], 'grapheme_strstr' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'beforeNeedle='=>'bool'], -'grapheme_substr' => ['string|false', 'string'=>'string', 'offset'=>'int', 'length='=>'int'], +'grapheme_substr' => ['string|false', 'string'=>'string', 'offset'=>'int', 'length='=>'?int'], 'gregoriantojd' => ['int', 'month'=>'int', 'day'=>'int', 'year'=>'int'], 'gridObj::set' => ['int', 'property_name'=>'string', 'new_value'=>''], 'Grpc\Call::__construct' => ['void', 'channel'=>'Grpc\Channel', 'method'=>'string', 'absolute_deadline'=>'Grpc\Timeval', 'host_override='=>'mixed'], @@ -4154,17 +4153,17 @@ 'gzeof' => ['bool|int', 'stream'=>'resource'], 'gzfile' => ['list', 'filename'=>'string', 'use_include_path='=>'int'], 'gzgetc' => ['string|false', 'stream'=>'resource'], -'gzgets' => ['string|false', 'stream'=>'resource', 'length='=>'int'], +'gzgets' => ['string|false', 'stream'=>'resource', 'length='=>'?int'], 'gzinflate' => ['string|false', 'data'=>'string', 'max_length='=>'int'], 'gzopen' => ['resource|false', 'filename'=>'string', 'mode'=>'string', 'use_include_path='=>'int'], 'gzpassthru' => ['int|false', 'stream'=>'resource'], -'gzputs' => ['int', 'stream'=>'resource', 'data'=>'string', 'length='=>'int'], +'gzputs' => ['int', 'stream'=>'resource', 'data'=>'string', 'length='=>'?int'], 'gzread' => ['string|false', 'stream'=>'resource', 'length'=>'int'], 'gzrewind' => ['bool', 'stream'=>'resource'], 'gzseek' => ['int', 'stream'=>'resource', 'offset'=>'int', 'whence='=>'int'], 'gztell' => ['int|false', 'stream'=>'resource'], 'gzuncompress' => ['string|false', 'data'=>'string', 'max_length='=>'int'], -'gzwrite' => ['int', 'stream'=>'resource', 'data'=>'string', 'length='=>'int'], +'gzwrite' => ['int', 'stream'=>'resource', 'data'=>'string', 'length='=>'?int'], 'HaruAnnotation::setBorderStyle' => ['bool', 'width'=>'float', 'dash_on'=>'int', 'dash_off'=>'int'], 'HaruAnnotation::setHighlightMode' => ['bool', 'mode'=>'int'], 'HaruAnnotation::setIcon' => ['bool', 'icon'=>'int'], @@ -4351,7 +4350,7 @@ 'hashTableObj::set' => ['int', 'key'=>'string', 'value'=>'string'], 'header' => ['void', 'header'=>'string', 'replace='=>'bool', 'response_code='=>'int'], 'header_register_callback' => ['bool', 'callback'=>'callable():void'], -'header_remove' => ['void', 'name='=>'string'], +'header_remove' => ['void', 'name='=>'?string'], 'headers_list' => ['list'], 'headers_sent' => ['bool', '&w_filename='=>'string', '&w_line='=>'int'], 'hebrev' => ['string', 'string'=>'string', 'max_chars_per_line='=>'int'], @@ -4377,8 +4376,8 @@ 'HRTime\StopWatch::isRunning' => ['bool'], 'HRTime\StopWatch::start' => ['void'], 'HRTime\StopWatch::stop' => ['void'], -'html_entity_decode' => ['string', 'string'=>'string', 'flags='=>'int', 'encoding='=>'string'], -'htmlentities' => ['string', 'string'=>'string', 'flags='=>'int', 'encoding='=>'string', 'double_encode='=>'bool'], +'html_entity_decode' => ['string', 'string'=>'string', 'flags='=>'int', 'encoding='=>'?string'], +'htmlentities' => ['string', 'string'=>'string', 'flags='=>'int', 'encoding='=>'?string', 'double_encode='=>'bool'], 'htmlspecialchars' => ['string', 'string'=>'string', 'flags='=>'int', 'encoding='=>'string|null', 'double_encode='=>'bool'], 'htmlspecialchars_decode' => ['string', 'string'=>'string', 'flags='=>'int'], 'http\Client::__construct' => ['void', 'driver='=>'string', 'persistent_handle_id='=>'string'], @@ -4797,7 +4796,7 @@ 'http\Url::toArray' => ['string[]'], 'http\Url::toString' => ['string'], 'http_build_cookie' => ['string', 'cookie'=>'array'], -'http_build_query' => ['string', 'data'=>'array|object', 'numeric_prefix='=>'string', 'arg_separator='=>'string', 'encoding_type='=>'int'], +'http_build_query' => ['string', 'data'=>'array|object', 'numeric_prefix='=>'string', 'arg_separator='=>'?string', 'encoding_type='=>'int'], 'http_build_str' => ['string', 'query'=>'array', 'prefix='=>'?string', 'arg_separator='=>'string'], 'http_build_url' => ['string', 'url='=>'string|array', 'parts='=>'string|array', 'flags='=>'int', 'new_url='=>'array'], 'http_cache_etag' => ['bool', 'etag='=>'string'], @@ -5241,14 +5240,14 @@ 'ibase_wait_event\'1' => ['string', 'event'=>'string', '...args'=>''], 'iconv' => ['string|false', 'from_encoding'=>'string', 'to_encoding'=>'string', 'string'=>'string'], 'iconv_get_encoding' => ['mixed', 'type='=>'string'], -'iconv_mime_decode' => ['string|false', 'string'=>'string', 'mode='=>'int', 'encoding='=>'string'], -'iconv_mime_decode_headers' => ['array|false', 'headers'=>'string', 'mode='=>'int', 'encoding='=>'string'], +'iconv_mime_decode' => ['string|false', 'string'=>'string', 'mode='=>'int', 'encoding='=>'?string'], +'iconv_mime_decode_headers' => ['array|false', 'headers'=>'string', 'mode='=>'int', 'encoding='=>'?string'], 'iconv_mime_encode' => ['string|false', 'field_name'=>'string', 'field_value'=>'string', 'options='=>'array'], 'iconv_set_encoding' => ['bool', 'type'=>'string', 'encoding'=>'string'], -'iconv_strlen' => ['0|positive-int|false', 'string'=>'string', 'encoding='=>'string'], -'iconv_strpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int', 'encoding='=>'string'], -'iconv_strrpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'encoding='=>'string'], -'iconv_substr' => ['string|false', 'string'=>'string', 'offset'=>'int', 'length='=>'int', 'encoding='=>'string'], +'iconv_strlen' => ['0|positive-int|false', 'string'=>'string', 'encoding='=>'?string'], +'iconv_strpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int', 'encoding='=>'?string'], +'iconv_strrpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'encoding='=>'?string'], +'iconv_substr' => ['string|false', 'string'=>'string', 'offset'=>'int', 'length='=>'?int', 'encoding='=>'?string'], 'id3_get_frame_long_name' => ['string', 'frameid'=>'string'], 'id3_get_frame_short_name' => ['string', 'frameid'=>'string'], 'id3_get_genre_id' => ['int', 'genre'=>'string'], @@ -5258,7 +5257,7 @@ 'id3_get_version' => ['int', 'filename'=>'string'], 'id3_remove_tag' => ['bool', 'filename'=>'string', 'version='=>'int'], 'id3_set_tag' => ['bool', 'filename'=>'string', 'tag'=>'array', 'version='=>'int'], -'idate' => ['int', 'format'=>'string', 'timestamp='=>'int'], +'idate' => ['int', 'format'=>'string', 'timestamp='=>'?int'], 'idn_strerror' => ['string', 'errorcode'=>'int'], 'idn_to_ascii' => ['string|false', 'domain'=>'string', 'flags='=>'int', 'variant='=>'int', '&w_idna_info='=>'array'], 'idn_to_utf8' => ['string|false', 'domain'=>'string', 'flags='=>'int', 'variant='=>'int', '&w_idna_info='=>'array'], @@ -5302,7 +5301,7 @@ 'ifxus_write_slob' => ['int', 'bid'=>'int', 'content'=>'string'], 'igbinary_serialize' => ['string|false', 'value'=>'mixed'], 'igbinary_unserialize' => ['mixed', 'string'=>'string'], -'ignore_user_abort' => ['int', 'enable='=>'bool'], +'ignore_user_abort' => ['int', 'enable='=>'?bool'], 'iis_add_server' => ['int', 'path'=>'string', 'comment'=>'string', 'server_ip'=>'string', 'port'=>'int', 'host_name'=>'string', 'rights'=>'int', 'start_server'=>'int'], 'iis_get_dir_security' => ['int', 'server_instance'=>'int', 'virtual_path'=>'string'], 'iis_get_script_map' => ['string', 'server_instance'=>'int', 'virtual_path'=>'string', 'script_extension'=>'string'], @@ -5346,7 +5345,7 @@ 'imagecolorset' => ['false|null', 'image'=>'GdImage', 'color'=>'int', 'red'=>'int', 'green'=>'int', 'blue'=>'int', 'alpha='=>'int'], 'imagecolorsforindex' => ['array|false', 'image'=>'GdImage', 'color'=>'int'], 'imagecolorstotal' => ['int|false', 'image'=>'GdImage'], -'imagecolortransparent' => ['int|false', 'image'=>'GdImage', 'color='=>'int'], +'imagecolortransparent' => ['int|false', 'image'=>'GdImage', 'color='=>'?int'], 'imageconvolution' => ['bool', 'image'=>'GdImage', 'matrix'=>'array', 'divisor'=>'float', 'offset'=>'float'], 'imagecopy' => ['bool', 'dst_image'=>'GdImage', 'src_image'=>'GdImage', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_width'=>'int', 'src_height'=>'int'], 'imagecopymerge' => ['bool', 'dst_image'=>'GdImage', 'src_image'=>'GdImage', 'dst_x'=>'int', 'dst_y'=>'int', 'src_x'=>'int', 'src_y'=>'int', 'src_width'=>'int', 'src_height'=>'int', 'pct'=>'int'], @@ -5408,7 +5407,7 @@ 'imagepng' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'quality='=>'int', 'filters='=>'int'], 'imagepolygon' => ['bool', 'image'=>'GdImage', 'points'=>'array', 'num_points_or_color'=>'int', 'color'=>'int'], 'imagerectangle' => ['bool', 'image'=>'GdImage', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'color'=>'int'], -'imageresolution' => ['array|bool', 'image'=>'GdImage', 'resolution_x='=>'int', 'resolution_y='=>'int'], +'imageresolution' => ['array|bool', 'image'=>'GdImage', 'resolution_x='=>'?int', 'resolution_y='=>'?int'], 'imagerotate' => ['false|GdImage', 'image'=>'GdImage', 'angle'=>'float', 'background_color'=>'int', 'ignore_transparent='=>'int'], 'imagesavealpha' => ['bool', 'image'=>'GdImage', 'enable'=>'bool'], 'imagescale' => ['false|GdImage', 'image'=>'GdImage', 'width'=>'int', 'height='=>'int', 'mode='=>'int'], @@ -5427,7 +5426,7 @@ 'imagettfbbox' => ['false|array', 'size'=>'float', 'angle'=>'float', 'font_filename'=>'string', 'string'=>'string'], 'imagettftext' => ['false|array', 'image'=>'GdImage', 'size'=>'float', 'angle'=>'float', 'x'=>'int', 'y'=>'int', 'color'=>'int', 'font_filename'=>'string', 'text'=>'string'], 'imagetypes' => ['int'], -'imagewbmp' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'foreground_color='=>'int'], +'imagewbmp' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'foreground_color='=>'?int'], 'imagewebp' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'quality='=>'int'], 'imagexbm' => ['bool', 'image'=>'GdImage', 'filename='=>'?string', 'foreground_color='=>'int'], 'Imagick::__construct' => ['void', 'files='=>'string|string[]'], @@ -5990,7 +5989,7 @@ 'ImagickPixelIterator::valid' => ['bool'], 'imap_8bit' => ['string|false', 'string'=>'string'], 'imap_alerts' => ['array|false'], -'imap_append' => ['bool', 'imap'=>'IMAP\Connection', 'folder'=>'string', 'message'=>'string', 'options='=>'string', 'internal_date='=>'string'], +'imap_append' => ['bool', 'imap'=>'IMAP\Connection', 'folder'=>'string', 'message'=>'string', 'options='=>'?string', 'internal_date='=>'?string'], 'imap_base64' => ['string|false', 'string'=>'string'], 'imap_binary' => ['string|false', 'string'=>'string'], 'imap_body' => ['string|false', 'imap'=>'IMAP\Connection', 'message_num'=>'int', 'flags='=>'int'], @@ -6017,7 +6016,7 @@ 'imap_getmailboxes' => ['array|false', 'imap'=>'IMAP\Connection', 'reference'=>'string', 'pattern'=>'string'], 'imap_getsubscribed' => ['array|false', 'imap'=>'IMAP\Connection', 'reference'=>'string', 'pattern'=>'string'], 'imap_header' => ['stdClass|false', 'stream_id'=>'resource', 'msg_no'=>'int', 'from_length='=>'int', 'subject_length='=>'int', 'default_host='=>'string'], -'imap_headerinfo' => ['stdClass|false', 'imap'=>'IMAP\Connection', 'message_num'=>'int', 'from_length='=>'int', 'subject_length='=>'int', 'default_host='=>'string|null'], +'imap_headerinfo' => ['stdClass|false', 'imap'=>'IMAP\Connection', 'message_num'=>'int', 'from_length='=>'int', 'subject_length='=>'int'], 'imap_headers' => ['array|false', 'imap'=>'IMAP\Connection'], 'imap_last_error' => ['string|false'], 'imap_list' => ['array|false', 'imap'=>'IMAP\Connection', 'reference'=>'string', 'pattern'=>'string'], @@ -6025,7 +6024,7 @@ 'imap_listscan' => ['array|false', 'imap'=>'IMAP\Connection', 'reference'=>'string', 'pattern'=>'string', 'content'=>'string'], 'imap_listsubscribed' => ['array|false', 'imap'=>'IMAP\Connection', 'reference'=>'string', 'pattern'=>'string'], 'imap_lsub' => ['array|false', 'imap'=>'IMAP\Connection', 'reference'=>'string', 'pattern'=>'string'], -'imap_mail' => ['bool', 'to'=>'string', 'subject'=>'string', 'message'=>'string', 'additional_headers='=>'string', 'cc='=>'string', 'bcc='=>'string', 'return_path='=>'string'], +'imap_mail' => ['bool', 'to'=>'string', 'subject'=>'string', 'message'=>'string', 'additional_headers='=>'?string', 'cc='=>'?string', 'bcc='=>'?string', 'return_path='=>'?string'], 'imap_mail_compose' => ['string|false', 'envelope'=>'array', 'bodies'=>'array'], 'imap_mail_copy' => ['bool', 'imap'=>'IMAP\Connection', 'message_nums'=>'string', 'mailbox'=>'string', 'flags='=>'int'], 'imap_mail_move' => ['bool', 'imap'=>'IMAP\Connection', 'message_nums'=>'string', 'mailbox'=>'string', 'flags='=>'int'], @@ -6115,7 +6114,7 @@ 'ingres_rollback' => ['bool', 'link'=>'resource'], 'ingres_set_environment' => ['bool', 'link'=>'resource', 'options'=>'array'], 'ingres_unbuffered_query' => ['mixed', 'link'=>'resource', 'query'=>'string', 'params='=>'array', 'types='=>'string'], -'ini_alter' => ['string|false', 'option'=>'string', 'value'=>'string'], +'ini_alter' => ['string|false', 'option'=>'string', 'value'=>'string|int|float|bool|null'], 'ini_get' => ['string|false', 'option'=>'string'], 'ini_get_all' => ['array|false', 'extension='=>'?string', 'details='=>'bool'], 'ini_restore' => ['void', 'option'=>'string'], @@ -6133,12 +6132,12 @@ 'intl_get_error_message' => ['string'], 'intl_is_failure' => ['bool', 'errorCode'=>'int'], 'IntlBreakIterator::__construct' => ['void'], -'IntlBreakIterator::createCharacterInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], +'IntlBreakIterator::createCharacterInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlBreakIterator::createCodePointInstance' => ['IntlCodePointBreakIterator'], -'IntlBreakIterator::createLineInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], -'IntlBreakIterator::createSentenceInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], -'IntlBreakIterator::createTitleInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], -'IntlBreakIterator::createWordInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], +'IntlBreakIterator::createLineInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], +'IntlBreakIterator::createSentenceInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], +'IntlBreakIterator::createTitleInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], +'IntlBreakIterator::createWordInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlBreakIterator::current' => ['int'], 'IntlBreakIterator::first' => ['int'], 'IntlBreakIterator::following' => ['int', 'offset'=>'int'], @@ -6149,15 +6148,15 @@ 'IntlBreakIterator::getText' => ['string'], 'IntlBreakIterator::isBoundary' => ['bool', 'offset'=>'int'], 'IntlBreakIterator::last' => ['int'], -'IntlBreakIterator::next' => ['int', 'offset='=>'int'], +'IntlBreakIterator::next' => ['int', 'offset='=>'?int'], 'IntlBreakIterator::preceding' => ['int', 'offset'=>'int'], 'IntlBreakIterator::previous' => ['int'], 'IntlBreakIterator::setText' => ['bool', 'text'=>'string'], 'intlcal_add' => ['bool', 'calendar'=>'IntlCalendar', 'field'=>'int', 'value'=>'int'], 'intlcal_after' => ['bool', 'calendar'=>'IntlCalendar', 'other'=>'IntlCalendar'], 'intlcal_before' => ['bool', 'calendar'=>'IntlCalendar', 'other'=>'IntlCalendar'], -'intlcal_clear' => ['bool', 'calendar'=>'IntlCalendar', 'field='=>'int'], -'intlcal_create_instance' => ['?IntlCalendar', 'timezone='=>'mixed', 'locale='=>'string'], +'intlcal_clear' => ['bool', 'calendar'=>'IntlCalendar', 'field='=>'?int'], +'intlcal_create_instance' => ['?IntlCalendar', 'timezone='=>'mixed', 'locale='=>'?string'], 'intlcal_equals' => ['bool', 'calendar'=>'IntlCalendar', 'other'=>'IntlCalendar'], 'intlcal_field_difference' => ['int', 'calendar'=>'IntlCalendar', 'timestamp'=>'float', 'field'=>'int'], 'intlcal_from_date_time' => ['IntlCalendar', 'datetime'=>'DateTime|string'], @@ -6185,7 +6184,7 @@ 'intlcal_is_equivalent_to' => ['bool', 'calendar'=>'IntlCalendar', 'other'=>'IntlCalendar'], 'intlcal_is_lenient' => ['bool', 'calendar'=>'IntlCalendar'], 'intlcal_is_set' => ['bool', 'calendar'=>'IntlCalendar', 'field'=>'int'], -'intlcal_is_weekend' => ['bool', 'calendar'=>'IntlCalendar', 'timestamp='=>'float'], +'intlcal_is_weekend' => ['bool', 'calendar'=>'IntlCalendar', 'timestamp='=>'?float'], 'intlcal_roll' => ['bool', 'calendar'=>'IntlCalendar', 'field'=>'int', 'value'=>'mixed'], 'intlcal_set' => ['bool', 'calendar'=>'IntlCalendar', 'year'=>'int', 'month'=>'int'], 'intlcal_set\'1' => ['bool', 'calendar'=>'IntlCalendar', 'year'=>'int', 'month'=>'int', 'dayOfMonth='=>'int', 'hour='=>'int', 'minute='=>'int', 'second='=>'int'], @@ -6200,7 +6199,7 @@ 'IntlCalendar::add' => ['bool', 'field'=>'int', 'amount'=>'int'], 'IntlCalendar::after' => ['bool', 'other'=>'IntlCalendar'], 'IntlCalendar::before' => ['bool', 'other'=>'IntlCalendar'], -'IntlCalendar::clear' => ['bool', 'field='=>'int'], +'IntlCalendar::clear' => ['bool', 'field='=>'?int'], 'IntlCalendar::createInstance' => ['IntlCalendar', 'timeZone='=>'mixed', 'locale='=>'string'], 'IntlCalendar::equals' => ['bool', 'other'=>'IntlCalendar'], 'IntlCalendar::fieldDifference' => ['int', 'when'=>'float', 'field'=>'int'], @@ -6231,7 +6230,7 @@ 'IntlCalendar::isEquivalentTo' => ['bool', 'other'=>'IntlCalendar'], 'IntlCalendar::isLenient' => ['bool'], 'IntlCalendar::isSet' => ['bool', 'field'=>'int'], -'IntlCalendar::isWeekend' => ['bool', 'date='=>'float'], +'IntlCalendar::isWeekend' => ['bool', 'date='=>'?float'], 'IntlCalendar::roll' => ['bool', 'field'=>'int', 'amountOrUpOrDown'=>'mixed'], 'IntlCalendar::set' => ['bool', 'field'=>'int', 'value'=>'int'], 'IntlCalendar::set\'1' => ['bool', 'year'=>'int', 'month'=>'int', 'dayOfMonth='=>'int', 'hour='=>'int', 'minute='=>'int', 'second='=>'int'], @@ -6303,12 +6302,12 @@ 'IntlChar::totitle' => ['mixed', 'codepoint'=>'mixed'], 'IntlChar::toupper' => ['mixed', 'codepoint'=>'mixed'], 'IntlCodePointBreakIterator::__construct' => ['void'], -'IntlCodePointBreakIterator::createCharacterInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], +'IntlCodePointBreakIterator::createCharacterInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlCodePointBreakIterator::createCodePointInstance' => ['IntlCodePointBreakIterator'], -'IntlCodePointBreakIterator::createLineInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], -'IntlCodePointBreakIterator::createSentenceInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], -'IntlCodePointBreakIterator::createTitleInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], -'IntlCodePointBreakIterator::createWordInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], +'IntlCodePointBreakIterator::createLineInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], +'IntlCodePointBreakIterator::createSentenceInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], +'IntlCodePointBreakIterator::createTitleInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], +'IntlCodePointBreakIterator::createWordInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlCodePointBreakIterator::current' => ['int'], 'IntlCodePointBreakIterator::first' => ['int'], 'IntlCodePointBreakIterator::following' => ['int', 'offset'=>'string'], @@ -6364,7 +6363,7 @@ 'IntlGregorianCalendar::add' => ['bool', 'field'=>'int', 'amount'=>'int'], 'IntlGregorianCalendar::after' => ['bool', 'other'=>'IntlCalendar'], 'IntlGregorianCalendar::before' => ['bool', 'other'=>'IntlCalendar'], -'IntlGregorianCalendar::clear' => ['bool', 'field='=>'int'], +'IntlGregorianCalendar::clear' => ['bool', 'field='=>'?int'], 'IntlGregorianCalendar::createInstance' => ['IntlGregorianCalendar', 'timeZone='=>'mixed', 'locale='=>'string'], 'IntlGregorianCalendar::equals' => ['bool', 'other'=>'IntlCalendar'], 'IntlGregorianCalendar::fieldDifference' => ['int', 'when'=>'float', 'field'=>'int'], @@ -6418,12 +6417,12 @@ 'IntlIterator::valid' => ['bool'], 'IntlPartsIterator::getBreakIterator' => ['IntlBreakIterator'], 'IntlRuleBasedBreakIterator::__construct' => ['void', 'rules'=>'string', 'areCompiled='=>'string'], -'IntlRuleBasedBreakIterator::createCharacterInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], +'IntlRuleBasedBreakIterator::createCharacterInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlRuleBasedBreakIterator::createCodePointInstance' => ['IntlCodePointBreakIterator'], -'IntlRuleBasedBreakIterator::createLineInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], -'IntlRuleBasedBreakIterator::createSentenceInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], -'IntlRuleBasedBreakIterator::createTitleInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], -'IntlRuleBasedBreakIterator::createWordInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], +'IntlRuleBasedBreakIterator::createLineInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], +'IntlRuleBasedBreakIterator::createSentenceInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], +'IntlRuleBasedBreakIterator::createTitleInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], +'IntlRuleBasedBreakIterator::createWordInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlRuleBasedBreakIterator::current' => ['int'], 'IntlRuleBasedBreakIterator::first' => ['int'], 'IntlRuleBasedBreakIterator::following' => ['int', 'offset'=>'int'], @@ -6438,7 +6437,7 @@ 'IntlRuleBasedBreakIterator::getText' => ['string'], 'IntlRuleBasedBreakIterator::isBoundary' => ['bool', 'offset'=>'int'], 'IntlRuleBasedBreakIterator::last' => ['int'], -'IntlRuleBasedBreakIterator::next' => ['int', 'offset='=>'int'], +'IntlRuleBasedBreakIterator::next' => ['int', 'offset='=>'?int'], 'IntlRuleBasedBreakIterator::preceding' => ['int', 'offset'=>'int'], 'IntlRuleBasedBreakIterator::previous' => ['int'], 'IntlRuleBasedBreakIterator::setText' => ['bool', 'text'=>'string'], @@ -6537,7 +6536,7 @@ 'Iterator::next' => ['void'], 'Iterator::rewind' => ['void'], 'Iterator::valid' => ['bool'], -'iterator_apply' => ['0|positive-int', 'iterator'=>'Traversable', 'callback'=>'callable(mixed):bool', 'args='=>'array'], +'iterator_apply' => ['0|positive-int', 'iterator'=>'Traversable', 'callback'=>'callable(mixed):bool', 'args='=>'?array'], 'iterator_count' => ['0|positive-int', 'iterator'=>'Traversable'], 'iterator_to_array' => ['array', 'iterator'=>'Traversable', 'preserve_keys='=>'bool'], 'IteratorAggregate::getIterator' => ['Traversable'], @@ -6567,7 +6566,7 @@ 'jobqueue_license_info' => ['array'], 'join' => ['string', 'separator'=>'string', 'array'=>'array'], 'join\'1' => ['string', 'separator'=>'array'], -'json_decode' => ['mixed', 'json'=>'string', 'associative='=>'bool', 'depth='=>'int', 'flags='=>'int'], +'json_decode' => ['mixed', 'json'=>'string', 'associative='=>'?bool', 'depth='=>'int', 'flags='=>'int'], 'json_encode' => ['non-empty-string|false', 'value'=>'mixed', 'flags='=>'int', 'depth='=>'int'], 'json_last_error' => ['int'], 'json_last_error_msg' => ['string'], @@ -6743,7 +6742,7 @@ 'ldap_bind_ext' => ['LDAP\Result|false', 'ldap'=>'LDAP\Connection', 'dn='=>'string|null', 'password='=>'string|null', 'controls='=>'?array'], 'ldap_close' => ['bool', 'ldap'=>'LDAP\Connection'], 'ldap_compare' => ['bool|int', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'attribute'=>'string', 'value'=>'string', 'controls='=>'?array'], -'ldap_connect' => ['LDAP\Connection|false', 'uri='=>'string', 'port='=>'int', 'wallet='=>'string', 'password='=>'string', 'auth_mode='=>'int'], +'ldap_connect' => ['LDAP\Connection|false', 'uri='=>'?string', 'port='=>'int', 'wallet='=>'string', 'password='=>'string', 'auth_mode='=>'int'], 'ldap_count_entries' => ['int|false', 'ldap'=>'LDAP\Connection', 'result'=>'LDAP\Result'], 'ldap_delete' => ['bool', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'controls='=>'?array'], 'ldap_delete_ext' => ['LDAP\Result|false', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'controls='=>'?array'], @@ -6752,7 +6751,7 @@ 'ldap_errno' => ['int', 'ldap'=>'LDAP\Connection'], 'ldap_error' => ['string', 'ldap'=>'LDAP\Connection'], 'ldap_escape' => ['string', 'value'=>'string', 'ignore='=>'string', 'flags='=>'int'], -'ldap_exop' => ['mixed', 'ldap'=>'LDAP\Connection', 'request_oid'=>'string', 'request_data='=>'string', 'controls='=>'?array', '&w_response_data='=>'string', '&w_response_oid='=>'string'], +'ldap_exop' => ['LDAP\Result|bool', 'ldap'=>'LDAP\Connection', 'request_oid'=>'string', 'request_data='=>'?string', 'controls='=>'?array', '&w_response_data='=>'string', '&w_response_oid='=>'string'], 'ldap_exop_passwd' => ['bool|string', 'ldap'=>'LDAP\Connection', 'user='=>'string', 'old_password='=>'string', 'new_password='=>'string', '&w_controls='=>'array|null'], 'ldap_exop_refresh' => ['int|false', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'ttl'=>'int'], 'ldap_exop_whoami' => ['string|false', 'ldap'=>'LDAP\Connection'], @@ -6785,7 +6784,7 @@ 'ldap_read' => ['LDAP\Result|LDAP\Result[]|false', 'ldap'=>'LDAP\Connection|LDAP\Connection[]', 'base'=>'string', 'filter'=>'string', 'attributes='=>'array', 'attributes_only='=>'int', 'sizelimit='=>'int', 'timelimit='=>'int', 'deref='=>'int', 'controls='=>'?array'], 'ldap_rename' => ['bool', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'new_rdn'=>'string', 'new_parent'=>'string', 'delete_old_rdn'=>'bool', 'controls='=>'?array'], 'ldap_rename_ext' => ['LDAP\Result|false', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'new_rdn'=>'string', 'new_parent'=>'string', 'delete_old_rdn'=>'bool', 'controls='=>'?array'], -'ldap_sasl_bind' => ['bool', 'ldap'=>'LDAP\Connection', 'dn='=>'string', 'password='=>'string', 'mech='=>'string', 'realm='=>'string', 'authc_id='=>'string', 'authz_id='=>'string', 'props='=>'string'], +'ldap_sasl_bind' => ['bool', 'ldap'=>'LDAP\Connection', 'dn='=>'?string', 'password='=>'?string', 'mech='=>'?string', 'realm='=>'?string', 'authc_id='=>'?string', 'authz_id='=>'?string', 'props='=>'?string'], 'ldap_search' => ['LDAP\Result|LDAP\Result[]|false', 'ldap'=>'LDAP\Connection|LDAP\Connection[]', 'base'=>'string', 'filter'=>'string', 'attributes='=>'array', 'attributes_only='=>'int', 'sizelimit='=>'int', 'timelimit='=>'int', 'deref='=>'int', 'controls='=>'?array'], 'ldap_set_option' => ['bool', 'ldap'=>'LDAP\Connection|null', 'option'=>'int', 'value'=>'mixed'], 'ldap_set_rebind_proc' => ['bool', 'ldap'=>'LDAP\Connection', 'callback'=>'?callable'], @@ -6849,7 +6848,7 @@ 'libxml_get_external_entity_loader' => ['(callable(string,string,array{directory:?string,intSubName:?string,extSubURI:?string,extSubSystem:?string}):(resource|string|null))|null'], 'libxml_set_external_entity_loader' => ['bool', 'resolver_function'=>'(callable(string,string,array{directory:?string,intSubName:?string,extSubURI:?string,extSubSystem:?string}):(resource|string|null))|null'], 'libxml_set_streams_context' => ['void', 'context'=>'resource'], -'libxml_use_internal_errors' => ['bool', 'use_errors='=>'bool'], +'libxml_use_internal_errors' => ['bool', 'use_errors='=>'?bool'], 'LimitIterator::__construct' => ['void', 'iterator'=>'Iterator', 'offset='=>'int', 'count='=>'int'], 'LimitIterator::current' => ['mixed'], 'LimitIterator::getInnerIterator' => ['Iterator'], @@ -6885,7 +6884,7 @@ 'Locale::getPrimaryLanguage' => ['string', 'locale'=>'string'], 'Locale::getRegion' => ['string', 'locale'=>'string'], 'Locale::getScript' => ['string', 'locale'=>'string'], -'Locale::lookup' => ['string', 'langtag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'default='=>'string'], +'Locale::lookup' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'?string'], 'Locale::parseLocale' => ['array', 'locale'=>'string'], 'Locale::setDefault' => ['bool', 'locale'=>'string'], 'locale_accept_from_http' => ['string|false', 'header'=>'string'], @@ -6894,20 +6893,20 @@ 'locale_filter_matches' => ['?bool', 'languageTag'=>'string', 'locale'=>'string', 'canonicalize='=>'bool'], 'locale_get_all_variants' => ['?array', 'locale'=>'string'], 'locale_get_default' => ['string'], -'locale_get_display_language' => ['string', 'locale'=>'string', 'displayLocale='=>'string'], -'locale_get_display_name' => ['string', 'locale'=>'string', 'displayLocale='=>'string'], -'locale_get_display_region' => ['string', 'locale'=>'string', 'displayLocale='=>'string'], -'locale_get_display_script' => ['string', 'locale'=>'string', 'displayLocale='=>'string'], -'locale_get_display_variant' => ['string', 'locale'=>'string', 'displayLocale='=>'string'], +'locale_get_display_language' => ['string', 'locale'=>'string', 'displayLocale='=>'?string'], +'locale_get_display_name' => ['string', 'locale'=>'string', 'displayLocale='=>'?string'], +'locale_get_display_region' => ['string', 'locale'=>'string', 'displayLocale='=>'?string'], +'locale_get_display_script' => ['string', 'locale'=>'string', 'displayLocale='=>'?string'], +'locale_get_display_variant' => ['string', 'locale'=>'string', 'displayLocale='=>'?string'], 'locale_get_keywords' => ['array|false|null', 'locale'=>'string'], 'locale_get_primary_language' => ['?string', 'locale'=>'string'], 'locale_get_region' => ['?string', 'locale'=>'string'], 'locale_get_script' => ['?string', 'locale'=>'string'], -'locale_lookup' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'string'], +'locale_lookup' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'?string'], 'locale_parse' => ['?array', 'locale'=>'string'], 'locale_set_default' => ['bool', 'locale'=>'string'], 'localeconv' => ['array'], -'localtime' => ['array', 'timestamp='=>'int', 'associative='=>'bool'], +'localtime' => ['array', 'timestamp='=>'?int', 'associative='=>'bool'], 'log' => ['float', 'num'=>'float', 'base='=>'float'], 'log10' => ['float', 'num'=>'float'], 'log1p' => ['float', 'num'=>'float'], @@ -7471,7 +7470,7 @@ 'MessageFormatter::setPattern' => ['bool', 'pattern'=>'string'], 'metaphone' => ['string|false', 'string'=>'string', 'max_phonemes='=>'int'], 'method_exists' => ['bool', 'object_or_class'=>'object|class-string|interface-string|enum-string', 'method'=>'string'], -'mhash' => ['string', 'algo'=>'int', 'data'=>'string', 'key='=>'string'], +'mhash' => ['string', 'algo'=>'int', 'data'=>'string', 'key='=>'?string'], 'mhash_count' => ['int'], 'mhash_get_block_size' => ['int|false', 'algo'=>'int'], 'mhash_get_hash_name' => ['string|false', 'algo'=>'int'], @@ -9052,8 +9051,8 @@ 'nsapi_virtual' => ['bool', 'uri'=>'string'], 'nthmac' => ['string', 'clent'=>'string', 'data'=>'string'], 'number_format' => ['string', 'num'=>'float|int', 'decimals='=>'int', 'decimal_separator='=>'?string', 'thousands_separator='=>'?string'], -'NumberFormatter::__construct' => ['void', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], -'NumberFormatter::create' => ['NumberFormatter|false', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], +'NumberFormatter::__construct' => ['void', 'locale'=>'string', 'style'=>'int', 'pattern='=>'?string'], +'NumberFormatter::create' => ['NumberFormatter|null', 'locale'=>'string', 'style'=>'int', 'pattern='=>'?string'], 'NumberFormatter::format' => ['string|false', 'num'=>'', 'type='=>'int'], 'NumberFormatter::formatCurrency' => ['string|false', 'num'=>'float', 'currency'=>'string'], 'NumberFormatter::getAttribute' => ['int|false', 'attr'=>'int'], @@ -9069,7 +9068,7 @@ 'NumberFormatter::setPattern' => ['bool', 'pattern'=>'string'], 'NumberFormatter::setSymbol' => ['bool', 'attr'=>'int', 'symbol'=>'string'], 'NumberFormatter::setTextAttribute' => ['bool', 'attr'=>'int', 'value'=>'string'], -'numfmt_create' => ['NumberFormatter|false', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], +'numfmt_create' => ['NumberFormatter|null', 'locale'=>'string', 'style'=>'int', 'pattern='=>'?string'], 'numfmt_format' => ['string|false', 'formatter'=>'NumberFormatter', 'num'=>'int|float', 'type='=>'int'], 'numfmt_format_currency' => ['string|false', 'formatter'=>'NumberFormatter', 'amount'=>'float', 'currency'=>'string'], 'numfmt_get_attribute' => ['int|false', 'formatter'=>'NumberFormatter', 'attribute'=>'int'], @@ -9265,28 +9264,28 @@ 'odbc_binmode' => ['bool', 'statement'=>'resource', 'mode'=>'int'], 'odbc_close' => ['void', 'odbc'=>'resource'], 'odbc_close_all' => ['void'], -'odbc_columnprivileges' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'table'=>'string', 'column'=>'string'], -'odbc_columns' => ['resource|false', 'odbc'=>'resource', 'catalog='=>'string', 'schema='=>'string', 'table='=>'string', 'column='=>'string'], +'odbc_columnprivileges' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'?string', 'schema'=>'string', 'table'=>'string', 'column'=>'string'], +'odbc_columns' => ['resource|false', 'odbc'=>'resource', 'catalog='=>'?string', 'schema='=>'?string', 'table='=>'?string', 'column='=>'?string'], 'odbc_commit' => ['bool', 'odbc'=>'resource'], 'odbc_connect' => ['resource|false', 'dsn'=>'string', 'user'=>'string', 'password'=>'string', 'cursor_option='=>'int'], 'odbc_cursor' => ['string', 'statement'=>'resource'], 'odbc_data_source' => ['array|false', 'odbc'=>'resource', 'fetch_type'=>'int'], -'odbc_do' => ['resource', 'odbc'=>'resource', 'query'=>'string', 'flags='=>'int'], +'odbc_do' => ['resource', 'odbc'=>'resource', 'query'=>'string'], 'odbc_error' => ['string', 'odbc='=>'resource'], 'odbc_errormsg' => ['string', 'odbc='=>'resource'], -'odbc_exec' => ['resource', 'odbc'=>'resource', 'query'=>'string', 'flags='=>'int'], +'odbc_exec' => ['resource', 'odbc'=>'resource', 'query'=>'string'], 'odbc_execute' => ['bool', 'statement'=>'resource', 'params='=>'array'], 'odbc_fetch_array' => ['array|false', 'statement'=>'resource', 'row='=>'int'], 'odbc_fetch_into' => ['int', 'statement'=>'resource', '&w_array'=>'array', 'row='=>'int'], 'odbc_fetch_object' => ['stdClass|false', 'statement'=>'resource', 'row='=>'int'], -'odbc_fetch_row' => ['bool', 'statement'=>'resource', 'row='=>'int'], +'odbc_fetch_row' => ['bool', 'statement'=>'resource', 'row='=>'?int'], 'odbc_field_len' => ['int|false', 'statement'=>'resource', 'field'=>'int'], 'odbc_field_name' => ['string|false', 'statement'=>'resource', 'field'=>'int'], 'odbc_field_num' => ['int|false', 'statement'=>'resource', 'field'=>'string'], 'odbc_field_precision' => ['int', 'statement'=>'resource', 'field'=>'int'], 'odbc_field_scale' => ['int|false', 'statement'=>'resource', 'field'=>'int'], 'odbc_field_type' => ['string|false', 'statement'=>'resource', 'field'=>'int'], -'odbc_foreignkeys' => ['resource|false', 'odbc'=>'resource', 'pk_catalog'=>'string', 'pk_schema'=>'string', 'pk_table'=>'string', 'fk_catalog'=>'string', 'fk_schema'=>'string', 'fk_table'=>'string'], +'odbc_foreignkeys' => ['resource|false', 'odbc'=>'resource', 'pk_catalog'=>'?string', 'pk_schema'=>'string', 'pk_table'=>'string', 'fk_catalog'=>'string', 'fk_schema'=>'string', 'fk_table'=>'string'], 'odbc_free_result' => ['bool', 'statement'=>'resource'], 'odbc_gettypeinfo' => ['resource', 'odbc'=>'resource', 'data_type='=>'int'], 'odbc_longreadlen' => ['bool', 'statement'=>'resource', 'length'=>'int'], @@ -9295,17 +9294,17 @@ 'odbc_num_rows' => ['int', 'statement'=>'resource'], 'odbc_pconnect' => ['resource|false', 'dsn'=>'string', 'user'=>'string', 'password'=>'string', 'cursor_option='=>'int'], 'odbc_prepare' => ['resource|false', 'odbc'=>'resource', 'query'=>'string'], -'odbc_primarykeys' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'table'=>'string'], +'odbc_primarykeys' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'?string', 'schema'=>'string', 'table'=>'string'], 'odbc_procedurecolumns' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'procedure'=>'string', 'column'=>'string'], 'odbc_procedures' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'procedure'=>'string'], 'odbc_result' => ['mixed|false', 'statement'=>'resource', 'field'=>'mixed'], 'odbc_result_all' => ['int|false', 'statement'=>'resource', 'format='=>'string'], 'odbc_rollback' => ['bool', 'odbc'=>'resource'], 'odbc_setoption' => ['bool', 'odbc'=>'resource', 'which'=>'int', 'option'=>'int', 'value'=>'int'], -'odbc_specialcolumns' => ['resource|false', 'odbc'=>'resource', 'type'=>'int', 'catalog'=>'string', 'schema'=>'string', 'table'=>'string', 'scope'=>'int', 'nullable'=>'int'], -'odbc_statistics' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'table'=>'string', 'unique'=>'int', 'accuracy'=>'int'], -'odbc_tableprivileges' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'table'=>'string'], -'odbc_tables' => ['resource|false', 'odbc'=>'resource', 'catalog='=>'string', 'schema='=>'string', 'table='=>'string', 'types='=>'string'], +'odbc_specialcolumns' => ['resource|false', 'odbc'=>'resource', 'type'=>'int', 'catalog'=>'?string', 'schema'=>'string', 'table'=>'string', 'scope'=>'int', 'nullable'=>'int'], +'odbc_statistics' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'?string', 'schema'=>'string', 'table'=>'string', 'unique'=>'int', 'accuracy'=>'int'], +'odbc_tableprivileges' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'?string', 'schema'=>'string', 'table'=>'string'], +'odbc_tables' => ['resource|false', 'odbc'=>'resource', 'catalog='=>'?string', 'schema='=>'?string', 'table='=>'?string', 'types='=>'?string'], 'opcache_compile_file' => ['bool', 'filename'=>'string'], 'opcache_get_configuration' => ['array'], 'opcache_get_status' => ['array|false', 'include_scripts='=>'bool'], @@ -9345,7 +9344,7 @@ 'openssl_csr_get_subject' => ['array|false', 'csr'=>'OpenSSLCertificateSigningRequest|string', 'short_names='=>'bool'], 'openssl_csr_new' => ['OpenSSLCertificateSigningRequest|false', 'distinguished_names'=>'array', '&w_private_key'=>'OpenSSLAsymmetricKey', 'options='=>'array|null', 'extra_attributes='=>'array|null'], 'openssl_csr_sign' => ['OpenSSLCertificate|false', 'csr'=>'OpenSSLCertificateSigningRequest|string', 'ca_certificate'=>'OpenSSLCertificate|string|null', 'private_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'days'=>'int', 'options='=>'array|null', 'serial='=>'int'], -'openssl_decrypt' => ['string|false', 'data'=>'string', 'cipher_algo'=>'string', 'passphrase'=>'string', 'options='=>'int', 'iv='=>'string', 'tag='=>'string', 'aad='=>'string'], +'openssl_decrypt' => ['string|false', 'data'=>'string', 'cipher_algo'=>'string', 'passphrase'=>'string', 'options='=>'int', 'iv='=>'string', 'tag='=>'?string', 'aad='=>'string'], 'openssl_dh_compute_key' => ['string|false', 'public_key'=>'string', 'private_key'=>'OpenSSLAsymmetricKey'], 'openssl_digest' => ['string|false', 'data'=>'string', 'digest_algo'=>'string', 'binary='=>'bool'], 'openssl_encrypt' => ['string|false', 'data'=>'string', 'cipher_algo'=>'string', 'passphrase'=>'string', 'options='=>'int', 'iv='=>'string', '&w_tag='=>'string', 'aad='=>'string', 'tag_length='=>'int'], @@ -9366,7 +9365,7 @@ 'openssl_pkcs7_encrypt' => ['bool', 'input_filename'=>'string', 'output_filename'=>'string', 'certificate'=>'OpenSSLCertificate|list|string', 'headers'=>'array|null', 'flags='=>'int', 'cipher_algo='=>'int'], 'openssl_pkcs7_read' => ['bool', 'input_filename'=>'string', '&w_certificates'=>'array'], 'openssl_pkcs7_sign' => ['bool', 'input_filename'=>'string', 'output_filename'=>'string', 'certificate'=>'OpenSSLCertificate|string', 'private_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'headers'=>'array|null', 'flags='=>'int', 'untrusted_certificates_filename='=>'string|null'], -'openssl_pkcs7_verify' => ['bool|int', 'input_filename'=>'string', 'flags'=>'int', 'signers_certificates_filename='=>'string', 'ca_info='=>'array', 'untrusted_certificates_filename='=>'string', 'content='=>'string', 'output_filename='=>'string'], +'openssl_pkcs7_verify' => ['bool|int', 'input_filename'=>'string', 'flags'=>'int', 'signers_certificates_filename='=>'?string', 'ca_info='=>'array', 'untrusted_certificates_filename='=>'?string', 'content='=>'?string', 'output_filename='=>'?string'], 'openssl_pkey_derive' => ['string|false', 'public_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'private_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'key_length='=>'int'], 'openssl_pkey_export' => ['bool', 'key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', '&w_output'=>'string', 'passphrase='=>'string|null', 'options='=>'array|null'], 'openssl_pkey_export_to_file' => ['bool', 'key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'output_filename'=>'string', 'passphrase='=>'string|null', 'options='=>'array|null'], @@ -9555,13 +9554,13 @@ 'pclose' => ['int', 'handle'=>'resource'], 'pcnlt_sigwaitinfo' => ['int', 'set'=>'array', '&w_siginfo'=>'array'], 'pcntl_alarm' => ['int', 'seconds'=>'int'], -'pcntl_async_signals' => ['bool', 'enable='=>'bool'], +'pcntl_async_signals' => ['bool', 'enable='=>'?bool'], 'pcntl_errno' => ['int'], 'pcntl_exec' => ['null|false', 'path'=>'string', 'args='=>'array', 'env_vars='=>'array'], 'pcntl_fork' => ['int'], 'pcntl_get_last_error' => ['int'], -'pcntl_getpriority' => ['int', 'process_id='=>'int', 'mode='=>'int'], -'pcntl_setpriority' => ['bool', 'priority'=>'int', 'process_id='=>'int', 'mode='=>'int'], +'pcntl_getpriority' => ['int', 'process_id='=>'?int', 'mode='=>'int'], +'pcntl_setpriority' => ['bool', 'priority'=>'int', 'process_id='=>'?int', 'mode='=>'int'], 'pcntl_signal' => ['bool', 'signal'=>'int', 'handler'=>'callable():void|callable(int):void|callable(int,array):void|int', 'restart_syscalls='=>'bool'], 'pcntl_signal_dispatch' => ['bool'], 'pcntl_signal_get_handler' => ['int|string', 'signal'=>'int'], @@ -9947,11 +9946,11 @@ 'PDOStatement::rowCount' => ['int'], 'PDOStatement::setAttribute' => ['bool', 'attribute'=>'int', 'value'=>'mixed'], 'PDOStatement::setFetchMode' => ['bool', 'mode'=>'int', '...args='=> 'mixed'], -'pfsockopen' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'float'], +'pfsockopen' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'?float'], 'pg_affected_rows' => ['int', 'result'=>'\PgSql\Result'], 'pg_cancel_query' => ['bool', 'connection'=>'\PgSql\Connection'], -'pg_client_encoding' => ['string', 'connection='=>'\PgSql\Connection'], -'pg_close' => ['bool', 'connection='=>'\PgSql\Connection'], +'pg_client_encoding' => ['string', 'connection='=>'?\PgSql\Connection'], +'pg_close' => ['bool', 'connection='=>'?\PgSql\Connection'], 'pg_connect' => ['\PgSql\Connection|false', 'connection_string'=>'string', 'flags='=>'int'], 'pg_connect_poll' => ['int', 'connection'=>'\PgSql\Connection'], 'pg_connection_busy' => ['bool', 'connection'=>'\PgSql\Connection'], @@ -9961,9 +9960,9 @@ 'pg_convert' => ['array|false', 'connection'=>'\PgSql\Connection', 'table_name'=>'string', 'values'=>'array', 'flags='=>'int'], 'pg_copy_from' => ['bool', 'connection'=>'\PgSql\Connection', 'table_name'=>'string', 'rows'=>'array', 'separator='=>'string', 'null_as='=>'string'], 'pg_copy_to' => ['array|false', 'connection'=>'\PgSql\Connection', 'table_name'=>'string', 'separator='=>'string', 'null_as='=>'string'], -'pg_dbname' => ['string', 'connection='=>'\PgSql\Connection'], +'pg_dbname' => ['string', 'connection='=>'?\PgSql\Connection'], 'pg_delete' => ['string|bool', 'connection'=>'\PgSql\Connection', 'table_name'=>'string', 'conditions'=>'array', 'flags='=>'int'], -'pg_end_copy' => ['bool', 'connection='=>'\PgSql\Connection'], +'pg_end_copy' => ['bool', 'connection='=>'?\PgSql\Connection'], 'pg_escape_bytea' => ['string', 'connection'=>'\PgSql\Connection', 'string'=>'string'], 'pg_escape_bytea\'1' => ['string', 'connection'=>'string'], 'pg_escape_identifier' => ['string|false', 'connection'=>'\PgSql\Connection', 'string'=>'string'], @@ -9998,9 +9997,9 @@ 'pg_get_notify' => ['array|false', 'result'=>'\PgSql\Result', 'mode='=>'int'], 'pg_get_pid' => ['int', 'connection'=>'\PgSql\Connection'], 'pg_get_result' => ['\PgSql\Result|false', 'connection='=>'\PgSql\Connection'], -'pg_host' => ['string', 'connection='=>'\PgSql\Connection'], +'pg_host' => ['string', 'connection='=>'?\PgSql\Connection'], 'pg_insert' => ['\PgSql\Result|string|false', 'connection'=>'\PgSql\Connection', 'table_name'=>'string', 'values'=>'array', 'flags='=>'int'], -'pg_last_error' => ['string', 'connection='=>'\PgSql\Connection', 'operation='=>'int'], +'pg_last_error' => ['string', 'connection='=>'?\PgSql\Connection'], 'pg_last_notice' => ['string|array|bool', 'connection'=>'\PgSql\Connection', 'mode='=>'int'], 'pg_last_oid' => ['string|int|false', 'result'=>'\PgSql\Result'], 'pg_lo_close' => ['bool', 'lob'=>'\PgSql\Lob'], @@ -10018,16 +10017,16 @@ 'pg_lo_truncate' => ['bool', 'lob'=>'\PgSql\Lob', 'size'=>'int'], 'pg_lo_unlink' => ['bool', 'connection'=>'\PgSql\Connection', 'oid'=>'int|string'], 'pg_lo_unlink\'1' => ['bool', 'connection'=>'int|string'], -'pg_lo_write' => ['int|false', 'lob'=>'\PgSql\Lob', 'data'=>'string', 'length='=>'int'], +'pg_lo_write' => ['int|false', 'lob'=>'\PgSql\Lob', 'data'=>'string', 'length='=>'?int'], 'pg_meta_data' => ['array|false', 'connection'=>'\PgSql\Connection', 'table_name'=>'string', 'extended='=>'bool'], 'pg_num_fields' => ['int', 'result'=>'\PgSql\Result'], 'pg_num_rows' => ['int', 'result'=>'\PgSql\Result'], -'pg_options' => ['string', 'connection='=>'\PgSql\Connection'], +'pg_options' => ['string', 'connection='=>'?\PgSql\Connection'], 'pg_parameter_status' => ['string|false', 'connection'=>'\PgSql\Connection', 'name'=>'string'], 'pg_parameter_status\'1' => ['string|false', 'connection'=>'string'], 'pg_pconnect' => ['\PgSql\Connection|false', 'connection_string'=>'string', 'flags='=>'string', 'port='=>'string|int', 'options='=>'string', 'tty='=>'string', 'database='=>'string'], -'pg_ping' => ['bool', 'connection='=>'\PgSql\Connection'], -'pg_port' => ['int', 'connection='=>'\PgSql\Connection'], +'pg_ping' => ['bool', 'connection='=>'?\PgSql\Connection'], +'pg_port' => ['string', 'connection='=>'?\PgSql\Connection'], 'pg_prepare' => ['\PgSql\Result|false', 'connection'=>'\PgSql\Connection', 'statement_name'=>'string', 'query'=>'string'], 'pg_prepare\'1' => ['\PgSql\Result|false', 'connection'=>'string', 'statement_name'=>'string'], 'pg_put_line' => ['bool', 'connection'=>'\PgSql\Connection', 'data'=>'string'], @@ -10050,13 +10049,13 @@ 'pg_set_error_verbosity' => ['int|false', 'connection'=>'\PgSql\Connection', 'verbosity'=>'int'], 'pg_set_error_verbosity\'1' => ['int|false', 'connection'=>'int'], 'pg_socket' => ['resource|false', 'connection'=>'\PgSql\Connection'], -'pg_trace' => ['bool', 'filename'=>'string', 'mode='=>'string', 'connection='=>'\PgSql\Connection'], +'pg_trace' => ['bool', 'filename'=>'string', 'mode='=>'string', 'connection='=>'?\PgSql\Connection'], 'pg_transaction_status' => ['int', 'connection'=>'\PgSql\Connection'], -'pg_tty' => ['string', 'connection='=>'\PgSql\Connection'], +'pg_tty' => ['string', 'connection='=>'?\PgSql\Connection'], 'pg_unescape_bytea' => ['string', 'string'=>'string'], -'pg_untrace' => ['bool', 'connection='=>'\PgSql\Connection'], +'pg_untrace' => ['bool', 'connection='=>'?\PgSql\Connection'], 'pg_update' => ['string|bool', 'connection'=>'\PgSql\Connection', 'table_name'=>'string', 'values'=>'array', 'conditions'=>'array', 'flags='=>'int'], -'pg_version' => ['array', 'connection='=>'\PgSql\Connection'], +'pg_version' => ['array', 'connection='=>'?\PgSql\Connection'], 'Phar::__construct' => ['void', 'fname'=>'string', 'flags='=>'int', 'alias='=>'string'], 'Phar::addEmptyDir' => ['void', 'dirname'=>'string'], 'Phar::addFile' => ['void', 'file'=>'string', 'localname='=>'string'], @@ -10066,16 +10065,16 @@ 'Phar::buildFromIterator' => ['array', 'iter'=>'Iterator', 'base_directory='=>'string'], 'Phar::canCompress' => ['bool', 'method='=>'int'], 'Phar::canWrite' => ['bool'], -'Phar::compress' => ['Phar', 'compression'=>'int', 'extension='=>'string'], +'Phar::compress' => ['?Phar', 'compression'=>'int', 'extension='=>'?string'], 'Phar::compressAllFilesBZIP2' => ['bool'], 'Phar::compressAllFilesGZ' => ['bool'], 'Phar::compressFiles' => ['void', 'compression'=>'int'], -'Phar::convertToData' => ['PharData', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], -'Phar::convertToExecutable' => ['Phar', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], +'Phar::convertToData' => ['?PharData', 'format='=>'?int', 'compression='=>'?int', 'extension='=>'?string'], +'Phar::convertToExecutable' => ['?Phar', 'format='=>'?int', 'compression='=>'?int', 'extension='=>'?string'], 'Phar::copy' => ['bool', 'oldfile'=>'string', 'newfile'=>'string'], 'Phar::count' => ['int'], 'Phar::createDefaultStub' => ['string', 'indexfile='=>'string', 'webindexfile='=>'string'], -'Phar::decompress' => ['Phar', 'extension='=>'string'], +'Phar::decompress' => ['?Phar', 'extension='=>'?string'], 'Phar::decompressFiles' => ['bool'], 'Phar::delete' => ['bool', 'entry'=>'string'], 'Phar::delMetadata' => ['bool'], @@ -10096,7 +10095,7 @@ 'Phar::isFileFormat' => ['bool', 'format'=>'int'], 'Phar::isValidPharFilename' => ['bool', 'filename'=>'string', 'executable='=>'bool'], 'Phar::isWritable' => ['bool'], -'Phar::loadPhar' => ['bool', 'filename'=>'string', 'alias='=>'string'], +'Phar::loadPhar' => ['bool', 'filename'=>'string', 'alias='=>'?string'], 'Phar::mapPhar' => ['bool', 'alias='=>'string', 'dataoffset='=>'int'], 'Phar::mount' => ['void', 'pharpath'=>'string', 'externalpath'=>'string'], 'Phar::mungServer' => ['void', 'munglist'=>'array'], @@ -10121,12 +10120,12 @@ 'PharData::addFromString' => ['bool', 'localname'=>'string', 'contents'=>'string'], 'PharData::buildFromDirectory' => ['array', 'base_dir'=>'string', 'regex='=>'string'], 'PharData::buildFromIterator' => ['array', 'iter'=>'Iterator', 'base_directory='=>'string'], -'PharData::compress' => ['PharData', 'compression'=>'int', 'extension='=>'string'], +'PharData::compress' => ['?PharData', 'compression'=>'int', 'extension='=>'?string'], 'PharData::compressFiles' => ['bool', 'compression'=>'int'], -'PharData::convertToData' => ['PharData', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], -'PharData::convertToExecutable' => ['Phar', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], +'PharData::convertToData' => ['?PharData', 'format='=>'?int', 'compression='=>'?int', 'extension='=>'?string'], +'PharData::convertToExecutable' => ['?Phar', 'format='=>'?int', 'compression='=>'?int', 'extension='=>'?string'], 'PharData::copy' => ['bool', 'oldfile'=>'string', 'newfile'=>'string'], -'PharData::decompress' => ['PharData', 'extension='=>'string'], +'PharData::decompress' => ['PharData', 'extension='=>'?string'], 'PharData::decompressFiles' => ['bool'], 'PharData::delete' => ['bool', 'entry'=>'string'], 'PharData::delMetadata' => ['bool'], @@ -10201,7 +10200,7 @@ 'PhpToken::is' => ['bool', 'kind'=>'string|int|string[]|int[]'], 'PhpToken::isIgnorable' => ['bool'], 'PhpToken::getTokenName' => ['string'], -'phpversion' => ['string|false', 'extension='=>'string'], +'phpversion' => ['string|false', 'extension='=>'?string'], 'pht\AtomicInteger::__construct' => ['void', 'value='=>'int'], 'pht\AtomicInteger::dec' => ['void'], 'pht\AtomicInteger::get' => ['int'], @@ -10303,7 +10302,7 @@ 'preg_match' => ['int|false', 'pattern'=>'string', 'subject'=>'string', '&w_matches='=>'string[]', 'flags='=>'0', 'offset='=>'int'], 'preg_match\'1' => ['int|false', 'pattern'=>'string', 'subject'=>'string', '&w_matches='=>'array', 'flags='=>'int', 'offset='=>'int'], 'preg_match_all' => ['int|false', 'pattern'=>'string', 'subject'=>'string', '&w_matches='=>'array', 'flags='=>'int', 'offset='=>'int'], -'preg_quote' => ['string', 'str'=>'string', 'delimiter='=>'string'], +'preg_quote' => ['string', 'str'=>'string', 'delimiter='=>'?string'], 'preg_replace' => ['string|string[]|null', 'pattern'=>'string|array', 'replacement'=>'string|array', 'subject'=>'string|array', 'limit='=>'int', '&w_count='=>'int'], 'preg_replace_callback' => ['string|null', 'pattern'=>'string|array', 'callback'=>'callable(string[]):string', 'subject'=>'string', 'limit='=>'int', '&w_count='=>'int'], 'preg_replace_callback\'1' => ['string[]|null', 'pattern'=>'string|array', 'callback'=>'callable(string[]):string', 'subject'=>'string[]', 'limit='=>'int', '&w_count='=>'int'], @@ -10689,12 +10688,12 @@ 'readline_callback_read_char' => ['void'], 'readline_clear_history' => ['bool'], 'readline_completion_function' => ['bool', 'callback'=>'callable'], -'readline_info' => ['mixed', 'var_name='=>'string', 'value='=>'string|int|bool'], +'readline_info' => ['mixed', 'var_name='=>'?string', 'value='=>'string|int|bool|null'], 'readline_list_history' => ['array'], 'readline_on_new_line' => ['void'], -'readline_read_history' => ['bool', 'filename='=>'string'], +'readline_read_history' => ['bool', 'filename='=>'?string'], 'readline_redisplay' => ['void'], -'readline_write_history' => ['bool', 'filename='=>'string'], +'readline_write_history' => ['bool', 'filename='=>'?string'], 'readlink' => ['string|false', 'path'=>'string'], 'realpath' => ['string|false', 'path'=>'string'], 'realpath_cache_get' => ['array'], @@ -10836,7 +10835,7 @@ 'RecursiveIteratorIterator::getDepth' => ['int'], 'RecursiveIteratorIterator::getInnerIterator' => ['RecursiveIterator'], 'RecursiveIteratorIterator::getMaxDepth' => ['int|false'], -'RecursiveIteratorIterator::getSubIterator' => ['RecursiveIterator', 'level='=>'int'], +'RecursiveIteratorIterator::getSubIterator' => ['?RecursiveIterator', 'level='=>'?int'], 'RecursiveIteratorIterator::key' => ['mixed'], 'RecursiveIteratorIterator::next' => ['void'], 'RecursiveIteratorIterator::nextElement' => ['void'], @@ -10874,7 +10873,7 @@ 'RecursiveTreeIterator::getMaxDepth' => ['false|int'], 'RecursiveTreeIterator::getPostfix' => ['string'], 'RecursiveTreeIterator::getPrefix' => ['string'], -'RecursiveTreeIterator::getSubIterator' => ['RecursiveIterator', 'level='=>'int'], +'RecursiveTreeIterator::getSubIterator' => ['?RecursiveIterator', 'level='=>'?int'], 'RecursiveTreeIterator::key' => ['string'], 'RecursiveTreeIterator::next' => ['void'], 'RecursiveTreeIterator::nextElement' => ['void'], @@ -11353,12 +11352,12 @@ 'ReflectionClass::getInterfaceNames' => ['list'], 'ReflectionClass::getInterfaces' => ['array'], 'ReflectionClass::getMethod' => ['ReflectionMethod', 'name'=>'string'], -'ReflectionClass::getMethods' => ['list', 'filter='=>'int'], +'ReflectionClass::getMethods' => ['list', 'filter='=>'?int'], 'ReflectionClass::getModifiers' => ['int'], 'ReflectionClass::getName' => ['class-string'], 'ReflectionClass::getNamespaceName' => ['string'], 'ReflectionClass::getParentClass' => ['ReflectionClass|false'], -'ReflectionClass::getProperties' => ['list', 'filter='=>'int'], +'ReflectionClass::getProperties' => ['list', 'filter='=>'?int'], 'ReflectionClass::getProperty' => ['ReflectionProperty', 'name'=>'string'], 'ReflectionClass::getReflectionConstant' => ['ReflectionClassConstant|false', 'name'=>'string'], 'ReflectionClass::getReflectionConstants' => ['list', 'filter='=>'?int'], @@ -11497,7 +11496,7 @@ 'ReflectionMethod::__construct' => ['void', 'class'=>'class-string|object', 'name'=>'string'], 'ReflectionMethod::__construct\'1' => ['void', 'class_method'=>'string'], 'ReflectionMethod::__toString' => ['string'], -'ReflectionMethod::getClosure' => ['?Closure', 'object='=>'object'], +'ReflectionMethod::getClosure' => ['Closure', 'object='=>'?object'], 'ReflectionMethod::getClosureScopeClass' => ['ReflectionClass'], 'ReflectionMethod::getClosureThis' => ['object'], 'ReflectionMethod::getDeclaringClass' => ['ReflectionClass'], @@ -11556,12 +11555,12 @@ 'ReflectionObject::getInterfaceNames' => ['class-string[]'], 'ReflectionObject::getInterfaces' => ['array'], 'ReflectionObject::getMethod' => ['ReflectionMethod', 'name'=>'string'], -'ReflectionObject::getMethods' => ['ReflectionMethod[]', 'filter='=>'int'], +'ReflectionObject::getMethods' => ['ReflectionMethod[]', 'filter='=>'?int'], 'ReflectionObject::getModifiers' => ['int'], 'ReflectionObject::getName' => ['string'], 'ReflectionObject::getNamespaceName' => ['string'], 'ReflectionObject::getParentClass' => ['ReflectionClass|false'], -'ReflectionObject::getProperties' => ['ReflectionProperty[]', 'filter='=>'int'], +'ReflectionObject::getProperties' => ['ReflectionProperty[]', 'filter='=>'?int'], 'ReflectionObject::getProperty' => ['ReflectionProperty', 'name'=>'string'], 'ReflectionObject::getReflectionConstant' => ['ReflectionClassConstant', 'name'=>'string'], 'ReflectionObject::getReflectionConstants' => ['list<\ReflectionClassConstant>'], @@ -11679,7 +11678,7 @@ 'ResourceBundle::getErrorMessage' => ['string'], 'ResourceBundle::getLocales' => ['array', 'bundlename'=>'string'], 'resourcebundle_count' => ['int', 'bundle'=>'ResourceBundle'], -'resourcebundle_create' => ['?ResourceBundle', 'locale'=>'string', 'bundle'=>'string', 'fallback='=>'bool'], +'resourcebundle_create' => ['?ResourceBundle', 'locale'=>'?string', 'bundle'=>'?string', 'fallback='=>'bool'], 'resourcebundle_get' => ['mixed|null', 'bundle'=>'ResourceBundle', 'index'=>'string|int', 'fallback='=>'bool'], 'resourcebundle_get_error_code' => ['int', 'bundle'=>'ResourceBundle'], 'resourcebundle_get_error_message' => ['string', 'bundle'=>'ResourceBundle'], @@ -11804,7 +11803,7 @@ 'sapi_windows_cp_get' => ['int'], 'sapi_windows_cp_is_utf8' => ['bool'], 'sapi_windows_cp_set' => ['bool', 'codepage'=>'int'], -'sapi_windows_vt100_support' => ['bool', 'stream'=>'resource', 'enable='=>'bool'], +'sapi_windows_vt100_support' => ['bool', 'stream'=>'resource', 'enable='=>'?bool'], 'Saxon\SaxonProcessor::__construct' => ['void', 'license='=>'bool', 'cwd='=>'string'], 'Saxon\SaxonProcessor::createAtomicValue' => ['Saxon\XdmValue', 'primitive_type_val'=>'bool|float|int|string'], 'Saxon\SaxonProcessor::newSchemaValidator' => ['Saxon\SchemaValidator'], @@ -12064,8 +12063,8 @@ 'ServerResponse::setStatus' => ['void', 'status'=>'int'], 'ServerResponse::setVersion' => ['void', 'version'=>'string'], 'session_abort' => ['bool'], -'session_cache_expire' => ['int', 'value='=>'int'], -'session_cache_limiter' => ['string', 'value='=>'string'], +'session_cache_expire' => ['int', 'value='=>'?int'], +'session_cache_limiter' => ['string', 'value='=>'?string'], 'session_commit' => ['bool'], 'session_create_id' => ['string', 'prefix='=>'string'], 'session_decode' => ['bool', 'data'=>'string'], @@ -12073,10 +12072,10 @@ 'session_encode' => ['string'], 'session_gc' => ['int|false'], 'session_get_cookie_params' => ['array'], -'session_id' => ['string|false', 'id='=>'string'], +'session_id' => ['string|false', 'id='=>'?string'], 'session_is_registered' => ['bool', 'name'=>'string'], -'session_module_name' => ['string', 'module='=>'string'], -'session_name' => ['string|false', 'name='=>'string'], +'session_module_name' => ['string', 'module='=>'?string'], +'session_name' => ['string|false', 'name='=>'?string'], 'session_pgsql_add_error' => ['bool', 'error_level'=>'int', 'error_message='=>'string'], 'session_pgsql_get_error' => ['array', 'with_error_message='=>'bool'], 'session_pgsql_get_field' => ['string'], @@ -12087,7 +12086,7 @@ 'session_register' => ['bool', 'name'=>'mixed', '...args='=>'mixed'], 'session_register_shutdown' => ['void'], 'session_reset' => ['bool'], -'session_save_path' => ['string', 'path='=>'string'], +'session_save_path' => ['string', 'path='=>'?string'], 'session_set_cookie_params' => ['bool', 'lifetime'=>'int', 'path='=>'?string', 'domain='=>'?string', 'secure='=>'?bool', 'httponly='=>'?bool'], 'session_set_cookie_params\'1' => ['bool', 'options'=>'array{lifetime?:?int,path?:?string,domain?:?string,secure?:?bool,httponly?:?bool,samesite?:?string}'], 'session_set_save_handler' => ['bool', 'open'=>'callable(string,string):bool', 'close'=>'callable():bool', 'read'=>'callable(string):string', 'write'=>'callable(string,string):bool', 'destroy'=>'callable(string):bool', 'gc'=>'callable(string):bool', 'create_sid='=>'callable():string', 'validate_sid='=>'callable(string):bool', 'update_timestamp='=>'callable(string):bool'], @@ -12180,7 +12179,7 @@ 'shapeObj::union' => ['shapeObj', 'shape'=>'shapeObj'], 'shapeObj::within' => ['int', 'shape2'=>'shapeObj'], 'shell_exec' => ['string|false|null', 'command'=>'string'], -'shm_attach' => ['resource', 'key'=>'int', 'size='=>'int', 'permissions='=>'int'], +'shm_attach' => ['SysvSharedMemory|false', 'key'=>'int', 'size='=>'?int', 'permissions='=>'int'], 'shm_detach' => ['bool', 'shm'=>'resource'], 'shm_get_var' => ['mixed', 'shm'=>'resource', 'key'=>'int'], 'shm_has_var' => ['bool', 'shm'=>'resource', 'key'=>'int'], @@ -12197,15 +12196,15 @@ 'shuffle' => ['bool', '&rw_array'=>'array'], 'signeurlpaiement' => ['string', 'clent'=>'string', 'data'=>'string'], 'similar_text' => ['int', 'string1'=>'string', 'string2'=>'string', '&w_percent='=>'float'], -'simplexml_import_dom' => ['SimpleXMLElement|false', 'node'=>'DOMNode', 'class_name='=>'string'], -'simplexml_load_file' => ['SimpleXMLElement|false', 'filename'=>'string', 'class_name='=>'string', 'options='=>'int', 'namespace_or_prefix='=>'string', 'is_prefix='=>'bool'], -'simplexml_load_string' => ['SimpleXMLElement|false', 'data'=>'string', 'class_name='=>'string', 'options='=>'int', 'namespace_or_prefix='=>'string', 'is_prefix='=>'bool'], +'simplexml_import_dom' => ['SimpleXMLElement|false', 'node'=>'DOMNode', 'class_name='=>'?string'], +'simplexml_load_file' => ['SimpleXMLElement|false', 'filename'=>'string', 'class_name='=>'?string', 'options='=>'int', 'namespace_or_prefix='=>'string', 'is_prefix='=>'bool'], +'simplexml_load_string' => ['SimpleXMLElement|false', 'data'=>'string', 'class_name='=>'?string', 'options='=>'int', 'namespace_or_prefix='=>'string', 'is_prefix='=>'bool'], 'SimpleXMLElement::__construct' => ['void', 'data'=>'string', 'options='=>'int', 'data_is_url='=>'bool', 'ns='=>'string', 'is_prefix='=>'bool'], 'SimpleXMLElement::__get' => ['SimpleXMLElement', 'name'=>'string'], 'SimpleXMLElement::__toString' => ['string'], 'SimpleXMLElement::addAttribute' => ['void', 'name'=>'string', 'value='=>'string', 'ns='=>'string'], 'SimpleXMLElement::addChild' => ['SimpleXMLElement', 'name'=>'string', 'value='=>'string', 'ns='=>'string'], -'SimpleXMLElement::asXML' => ['bool', 'filename'=>'string'], +'SimpleXMLElement::asXML' => ['string|bool', 'filename='=>'?string'], 'SimpleXMLElement::asXML\'1' => ['string|false'], 'SimpleXMLElement::attributes' => ['?SimpleXMLElement', 'ns='=>'string', 'is_prefix='=>'bool'], 'SimpleXMLElement::children' => ['SimpleXMLElement', 'ns='=>'string', 'is_prefix='=>'bool'], @@ -12218,7 +12217,7 @@ 'SimpleXMLElement::offsetSet' => ['void', 'offset'=>'int|string', 'value'=>'mixed'], 'SimpleXMLElement::offsetUnset' => ['void', 'offset'=>'int|string'], 'SimpleXMLElement::registerXPathNamespace' => ['bool', 'prefix'=>'string', 'ns'=>'string'], -'SimpleXMLElement::saveXML' => ['mixed', 'filename='=>'string'], +'SimpleXMLElement::saveXML' => ['string|bool', 'filename='=>'?string'], 'SimpleXMLElement::xpath' => ['SimpleXMLElement[]|false', 'path'=>'string'], 'sin' => ['float', 'num'=>'float'], 'sinh' => ['float', 'num'=>'float'], @@ -12306,7 +12305,7 @@ 'socket_addrinfo_explain' => ['array', 'address'=>'AddressInfo'], 'socket_addrinfo_lookup' => ['false|AddressInfo[]', 'host='=>'string|null', 'service='=>'mixed', 'hints='=>'array'], 'socket_bind' => ['bool', 'socket'=>'Socket', 'addr'=>'string', 'port='=>'int'], -'socket_clear_error' => ['void', 'socket='=>'Socket'], +'socket_clear_error' => ['void', 'socket='=>'?Socket'], 'socket_close' => ['void', 'socket'=>'Socket'], 'socket_cmsg_space' => ['int', 'level'=>'int', 'type'=>'int'], 'socket_connect' => ['bool', 'socket'=>'Socket', 'addr'=>'string', 'port='=>'int'], @@ -12320,7 +12319,7 @@ 'socket_getpeername' => ['bool', 'socket'=>'Socket', '&w_addr'=>'string', '&w_port='=>'int'], 'socket_getsockname' => ['bool', 'socket'=>'Socket', '&w_addr'=>'string', '&w_port='=>'int'], 'socket_import_stream' => ['Socket|false|null', 'stream'=>'resource'], -'socket_last_error' => ['int', 'socket='=>'Socket'], +'socket_last_error' => ['int', 'socket='=>'?Socket'], 'socket_listen' => ['bool', 'socket'=>'Socket', 'backlog='=>'int'], 'socket_read' => ['string|false', 'socket'=>'Socket', 'length'=>'int', 'type='=>'int'], 'socket_recv' => ['int|false', 'socket'=>'Socket', '&w_buf'=>'string', 'length'=>'int', 'flags'=>'int'], @@ -13158,11 +13157,11 @@ 'SphinxClient::setSortMode' => ['bool', 'mode'=>'int', 'sortby='=>'string'], 'SphinxClient::status' => ['array'], 'SphinxClient::updateAttributes' => ['int', 'index'=>'string', 'attributes'=>'array', 'values'=>'array', 'mva='=>'bool'], -'spl_autoload' => ['void', 'class'=>'string', 'file_extensions='=>'string'], +'spl_autoload' => ['void', 'class'=>'string', 'file_extensions='=>'?string'], 'spl_autoload_call' => ['void', 'class'=>'string'], -'spl_autoload_extensions' => ['string', 'file_extensions='=>'string'], +'spl_autoload_extensions' => ['string', 'file_extensions='=>'?string'], 'spl_autoload_functions' => ['false|list'], -'spl_autoload_register' => ['bool', 'callback='=>'callable(string):void', 'throw='=>'bool', 'prepend='=>'bool'], +'spl_autoload_register' => ['bool', 'callback='=>'callable(string):void|null', 'throw='=>'bool', 'prepend='=>'bool'], 'spl_autoload_unregister' => ['bool', 'callback'=>'callable(string):void'], 'spl_classes' => ['array'], 'spl_object_hash' => ['string', 'object'=>'object'], @@ -13752,40 +13751,39 @@ 'stats_stat_percentile' => ['float', 'arr'=>'array', 'perc'=>'float'], 'stats_stat_powersum' => ['float', 'arr'=>'array', 'power'=>'float'], 'stats_variance' => ['float', 'a'=>'array', 'sample='=>'bool'], -'Stomp::__construct' => ['void', 'broker='=>'string', 'username='=>'string', 'password='=>'string', 'headers='=>'array'], -'Stomp::__destruct' => ['bool', 'link'=>''], -'Stomp::abort' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], -'Stomp::ack' => ['bool', 'msg'=>'', 'headers='=>'array', 'link='=>''], -'Stomp::begin' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], -'Stomp::commit' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], -'Stomp::error' => ['string', 'link'=>''], -'Stomp::getReadTimeout' => ['array', 'link'=>''], -'Stomp::getSessionId' => ['string', 'link'=>''], -'Stomp::hasFrame' => ['bool', 'link'=>''], -'Stomp::readFrame' => ['array', 'class_name='=>'string', 'link='=>''], -'Stomp::send' => ['bool', 'destination'=>'string', 'msg'=>'', 'headers='=>'array', 'link='=>''], -'Stomp::setReadTimeout' => ['', 'seconds'=>'int', 'microseconds='=>'int', 'link='=>''], -'Stomp::subscribe' => ['bool', 'destination'=>'string', 'headers='=>'array', 'link='=>''], -'Stomp::unsubscribe' => ['bool', 'destination'=>'string', 'headers='=>'array', 'link='=>''], -'stomp_abort' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], -'stomp_ack' => ['bool', 'msg'=>'', 'headers='=>'array', 'link='=>''], -'stomp_begin' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], -'stomp_close' => ['bool', 'link'=>''], -'stomp_commit' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], -'stomp_connect' => ['resource', 'broker='=>'string', 'username='=>'string', 'password='=>'string', 'headers='=>'array'], +'Stomp::__construct' => ['void', 'broker='=>'string', 'username='=>'string', 'password='=>'string', 'headers='=>'?array'], +'Stomp::abort' => ['bool', 'transaction_id'=>'string', 'headers='=>'?array'], +'Stomp::ack' => ['bool', 'msg'=>'', 'headers='=>'?array'], +'Stomp::begin' => ['bool', 'transaction_id'=>'string', 'headers='=>'?array'], +'Stomp::commit' => ['bool', 'transaction_id'=>'string', 'headers='=>'?array'], +'Stomp::error' => ['string'], +'Stomp::getReadTimeout' => ['array'], +'Stomp::getSessionId' => ['string'], +'Stomp::hasFrame' => ['bool'], +'Stomp::readFrame' => ['array', 'class_name='=>'string'], +'Stomp::send' => ['bool', 'destination'=>'string', 'msg'=>'', 'headers='=>'?array'], +'Stomp::setReadTimeout' => ['void', 'seconds'=>'int', 'microseconds='=>'?int'], +'Stomp::subscribe' => ['bool', 'destination'=>'string', 'headers='=>'?array'], +'Stomp::unsubscribe' => ['bool', 'destination'=>'string', 'headers='=>'?array'], +'stomp_abort' => ['bool', 'link'=>'resource', 'transaction_id'=>'string', 'headers='=>'?array'], +'stomp_ack' => ['bool', 'link'=>'resource', 'msg'=>'', 'headers='=>'?array'], +'stomp_begin' => ['bool', 'link'=>'resource', 'transaction_id'=>'string', 'headers='=>'?array'], +'stomp_close' => ['bool', 'link'=>'resource'], +'stomp_commit' => ['bool', 'link'=>'resource', 'transaction_id'=>'string', 'headers='=>'?array'], +'stomp_connect' => ['resource', 'link'=>'resource', 'broker='=>'string', 'username='=>'string', 'password='=>'string', 'headers='=>'?array'], 'stomp_connect_error' => ['string'], -'stomp_error' => ['string', 'link'=>''], -'stomp_get_read_timeout' => ['array', 'link'=>''], -'stomp_get_session_id' => ['string', 'link'=>''], -'stomp_has_frame' => ['bool', 'link'=>''], -'stomp_read_frame' => ['array', 'class_name='=>'string', 'link='=>''], -'stomp_send' => ['bool', 'destination'=>'string', 'msg'=>'', 'headers='=>'array', 'link='=>''], -'stomp_set_read_timeout' => ['', 'seconds'=>'int', 'microseconds='=>'int', 'link='=>''], -'stomp_subscribe' => ['bool', 'destination'=>'string', 'headers='=>'array', 'link='=>''], -'stomp_unsubscribe' => ['bool', 'destination'=>'string', 'headers='=>'array', 'link='=>''], +'stomp_error' => ['string', 'link'=>'resource'], +'stomp_get_read_timeout' => ['array', 'link'=>'resource'], +'stomp_get_session_id' => ['string', 'link'=>'resource'], +'stomp_has_frame' => ['bool', 'link'=>'resource'], +'stomp_read_frame' => ['array', 'link'=>'resource', 'class_name='=>'string'], +'stomp_send' => ['bool', 'link'=>'resource', 'destination'=>'string', 'msg'=>'', 'headers='=>'?array'], +'stomp_set_read_timeout' => ['void', 'link'=>'resource', 'seconds'=>'int', 'microseconds='=>'?int'], +'stomp_subscribe' => ['bool', 'link'=>'resource', 'destination'=>'string', 'headers='=>'?array'], +'stomp_unsubscribe' => ['bool', 'link'=>'resource', 'destination'=>'string', 'headers='=>'?array'], 'stomp_version' => ['string'], 'StompException::getDetails' => ['string'], -'StompFrame::__construct' => ['void', 'command='=>'string', 'headers='=>'array', 'body='=>'string'], +'StompFrame::__construct' => ['void', 'command='=>'string', 'headers='=>'?array', 'body='=>'string'], 'str_contains' => ['bool', 'haystack'=>'string', 'needle'=>'string'], 'str_ends_with' => ['bool', 'haystack'=>'string', 'needle'=>'string'], 'str_getcsv' => ['non-empty-list', 'string'=>'string', 'separator='=>'string', 'enclosure='=>'string', 'escape='=>'string'], @@ -13797,31 +13795,31 @@ 'str_shuffle' => ['string', 'string'=>'string'], 'str_split' => ['list', 'string'=>'string', 'length='=>'positive-int'], 'str_starts_with' => ['bool', 'haystack'=>'string', 'needle'=>'string'], -'str_word_count' => ['array|int', 'string'=>'string', 'format='=>'int', 'characters='=>'string'], +'str_word_count' => ['array|int', 'string'=>'string', 'format='=>'int', 'characters='=>'?string'], 'strcasecmp' => ['int', 'string1'=>'string', 'string2'=>'string'], 'strchr' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'before_needle='=>'bool'], 'strcmp' => ['int', 'string1'=>'string', 'string2'=>'string'], 'strcoll' => ['int', 'string1'=>'string', 'string2'=>'string'], -'strcspn' => ['int', 'string'=>'string', 'characters'=>'string', 'offset='=>'int', 'length='=>'int'], +'strcspn' => ['int', 'string'=>'string', 'characters'=>'string', 'offset='=>'int', 'length='=>'?int'], 'stream_bucket_append' => ['void', 'brigade'=>'resource', 'bucket'=>'object'], 'stream_bucket_make_writeable' => ['?object', 'brigade'=>'resource'], 'stream_bucket_new' => ['object|false', 'stream'=>'resource', 'buffer'=>'string'], 'stream_bucket_prepend' => ['void', 'brigade'=>'resource', 'bucket'=>'object'], -'stream_context_create' => ['resource', 'options='=>'array', 'params='=>'array'], -'stream_context_get_default' => ['resource', 'options='=>'array'], +'stream_context_create' => ['resource', 'options='=>'?array', 'params='=>'?array'], +'stream_context_get_default' => ['resource', 'options='=>'?array'], 'stream_context_get_options' => ['array', 'stream_or_context'=>'resource'], 'stream_context_get_params' => ['array', 'context'=>'resource'], 'stream_context_set_default' => ['resource', 'options'=>'array'], 'stream_context_set_option' => ['bool', 'context'=>'', 'wrapper_or_options'=>'string', 'option_name'=>'string', 'value'=>''], 'stream_context_set_option\'1' => ['bool', 'context'=>'', 'wrapper_or_options'=>'array'], 'stream_context_set_params' => ['bool', 'context'=>'resource', 'params'=>'array'], -'stream_copy_to_stream' => ['int|false', 'from'=>'resource', 'to'=>'resource', 'length='=>'int', 'offset='=>'int'], +'stream_copy_to_stream' => ['int|false', 'from'=>'resource', 'to'=>'resource', 'length='=>'?int', 'offset='=>'int'], 'stream_encoding' => ['bool', 'stream'=>'resource', 'encoding='=>'string'], 'stream_filter_append' => ['resource|false', 'stream'=>'resource', 'filter_name'=>'string', 'mode='=>'int', 'params='=>'mixed'], 'stream_filter_prepend' => ['resource|false', 'stream'=>'resource', 'filter_name'=>'string', 'mode='=>'int', 'params='=>'mixed'], 'stream_filter_register' => ['bool', 'filter_name'=>'string', 'class'=>'string'], 'stream_filter_remove' => ['bool', 'stream_filter'=>'resource'], -'stream_get_contents' => ['string|false', 'stream'=>'resource', 'length='=>'int', 'offset='=>'int'], +'stream_get_contents' => ['string|false', 'stream'=>'resource', 'length='=>'?int', 'offset='=>'int'], 'stream_get_filters' => ['array'], 'stream_get_line' => ['string|false', 'stream'=>'resource', 'length'=>'int', 'ending='=>'string'], 'stream_get_meta_data' => ['array{timed_out:bool,blocked:bool,eof:bool,unread_bytes:int,stream_type:string,wrapper_type:string,wrapper_data:mixed,mode:string,seekable:bool,uri:string,mediatype:string,crypto?:array{protocol:string,cipher_name:string,cipher_bits:int,cipher_version:string}}', 'stream'=>'resource'], @@ -13832,15 +13830,15 @@ 'stream_notification_callback' => ['callback', 'notification_code'=>'int', 'severity'=>'int', 'message'=>'string', 'message_code'=>'int', 'bytes_transferred'=>'int', 'bytes_max'=>'int'], 'stream_register_wrapper' => ['bool', 'protocol'=>'string', 'class'=>'string', 'flags='=>'int'], 'stream_resolve_include_path' => ['string|false', 'filename'=>'string'], -'stream_select' => ['int|false', '&rw_read'=>'resource[]', '&rw_write'=>'?resource[]', '&rw_except'=>'?resource[]', 'seconds'=>'?int', 'microseconds='=>'?int'], +'stream_select' => ['int|false', '&rw_read'=>'?resource[]', '&rw_write'=>'?resource[]', '&rw_except'=>'?resource[]', 'seconds'=>'?int', 'microseconds='=>'?int'], 'stream_set_blocking' => ['bool', 'stream'=>'resource', 'enable'=>'bool'], 'stream_set_chunk_size' => ['int|false', 'stream'=>'resource', 'size'=>'int'], 'stream_set_read_buffer' => ['int', 'stream'=>'resource', 'size'=>'int'], 'stream_set_timeout' => ['bool', 'stream'=>'resource', 'seconds'=>'int', 'microseconds='=>'int'], 'stream_set_write_buffer' => ['int', 'stream'=>'resource', 'size'=>'int'], -'stream_socket_accept' => ['resource|false', 'socket'=>'resource', 'timeout='=>'float', '&w_peer_name='=>'string'], -'stream_socket_client' => ['resource|false', 'address'=>'string', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'float', 'flags='=>'int', 'context='=>'resource'], -'stream_socket_enable_crypto' => ['int|bool', 'stream'=>'resource', 'enable'=>'bool', 'crypto_method='=>'int', 'session_stream='=>'resource'], +'stream_socket_accept' => ['resource|false', 'socket'=>'resource', 'timeout='=>'?float', '&w_peer_name='=>'string'], +'stream_socket_client' => ['resource|false', 'address'=>'string', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'?float', 'flags='=>'int', 'context='=>'?resource'], +'stream_socket_enable_crypto' => ['int|bool', 'stream'=>'resource', 'enable'=>'bool', 'crypto_method='=>'?int', 'session_stream='=>'?resource'], 'stream_socket_get_name' => ['string', 'socket'=>'resource', 'remote'=>'bool'], 'stream_socket_pair' => ['resource[]|false', 'domain'=>'int', 'type'=>'int', 'protocol'=>'int'], 'stream_socket_recvfrom' => ['string', 'socket'=>'resource', 'length'=>'int', 'flags='=>'int', '&w_address='=>'string'], @@ -13894,12 +13892,12 @@ 'strrev' => ['string', 'string'=>'string'], 'strripos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'], 'strrpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'], -'strspn' => ['int', 'string'=>'string', 'characters'=>'string', 'offset='=>'int', 'length='=>'int'], +'strspn' => ['int', 'string'=>'string', 'characters'=>'string', 'offset='=>'int', 'length='=>'?int'], 'strstr' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'before_needle='=>'bool'], 'strtok' => ['string|false', 'string'=>'string', 'token'=>'string'], 'strtok\'1' => ['string|false', 'string'=>'string'], 'strtolower' => ['lowercase-string', 'string'=>'string'], -'strtotime' => ['int|false', 'datetime'=>'string', 'baseTimestamp='=>'int'], +'strtotime' => ['int|false', 'datetime'=>'string', 'baseTimestamp='=>'?int'], 'strtoupper' => ['string', 'string'=>'string'], 'strtr' => ['string', 'string'=>'string', 'from'=>'string', 'to'=>'string'], 'strtr\'1' => ['string', 'string'=>'string', 'from'=>'array'], @@ -13915,9 +13913,9 @@ 'styleObj::setBinding' => ['int', 'stylebinding'=>'mixed', 'value'=>'string'], 'styleObj::setGeomTransform' => ['int', 'value'=>'string'], 'styleObj::updateFromString' => ['int', 'snippet'=>'string'], -'substr' => ['string|false', 'string'=>'string', 'offset'=>'int', 'length='=>'int'], -'substr_compare' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset'=>'int', 'length='=>'int', 'case_insensitive='=>'bool'], -'substr_count' => ['int', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int', 'length='=>'int'], +'substr' => ['string', 'string'=>'string', 'offset'=>'int', 'length='=>'?int'], +'substr_compare' => ['int', 'haystack'=>'string', 'needle'=>'string', 'offset'=>'int', 'length='=>'?int', 'case_insensitive='=>'bool'], +'substr_count' => ['int', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int', 'length='=>'?int'], 'substr_replace' => ['string|string[]', 'string'=>'string|string[]', 'replace'=>'mixed', 'offset'=>'mixed', 'length='=>'mixed'], 'suhosin_encrypt_cookie' => ['string|false', 'name'=>'string', 'value'=>'string'], 'suhosin_get_raw_cookies' => ['array'], @@ -14508,7 +14506,7 @@ 'tanh' => ['float', 'num'=>'float'], 'tcpwrap_check' => ['bool', 'daemon'=>'string', 'address'=>'string', 'user='=>'string', 'nodns='=>'bool'], 'tempnam' => ['string|false', 'directory'=>'string', 'prefix'=>'string'], -'textdomain' => ['string', 'domain'=>'string'], +'textdomain' => ['string', 'domain'=>'?string'], 'Thread::__construct' => ['void'], 'Thread::addRef' => ['void'], 'Thread::chunk' => ['array', 'size'=>'int', 'preserve'=>'bool'], @@ -14583,7 +14581,7 @@ 'Throwable::getPrevious' => ['?Throwable'], 'Throwable::getTrace' => ['list\',args?:array}>'], 'Throwable::getTraceAsString' => ['string'], -'tidy::__construct' => ['void', 'filename='=>'string', 'config='=>'', 'encoding='=>'string', 'useIncludePath='=>'bool'], +'tidy::__construct' => ['void', 'filename='=>'?string', 'config='=>'array|string|null', 'encoding='=>'?string', 'useIncludePath='=>'bool'], 'tidy::body' => ['tidyNode'], 'tidy::cleanRepair' => ['bool'], 'tidy::diagnose' => ['bool'], @@ -14597,10 +14595,10 @@ 'tidy::html' => ['tidyNode'], 'tidy::isXhtml' => ['bool'], 'tidy::isXml' => ['bool'], -'tidy::parseFile' => ['bool', 'filename'=>'string', 'config='=>'', 'encoding='=>'string', 'useIncludePath='=>'bool'], -'tidy::parseString' => ['bool', 'string'=>'string', 'config='=>'', 'encoding='=>'string'], -'tidy::repairFile' => ['string', 'filename'=>'string', 'config='=>'', 'encoding='=>'string', 'useIncludePath='=>'bool'], -'tidy::repairString' => ['string', 'string'=>'string', 'config='=>'', 'encoding='=>'string'], +'tidy::parseFile' => ['bool', 'filename'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string', 'useIncludePath='=>'bool'], +'tidy::parseString' => ['bool', 'string'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string'], +'tidy::repairFile' => ['string', 'filename'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string', 'useIncludePath='=>'bool'], +'tidy::repairString' => ['string', 'string'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string'], 'tidy::root' => ['tidyNode'], 'tidy_access_count' => ['int', 'tidy'=>'tidy'], 'tidy_clean_repair' => ['bool', 'tidy'=>'tidy'], @@ -14622,10 +14620,10 @@ 'tidy_is_xhtml' => ['bool', 'tidy'=>'tidy'], 'tidy_is_xml' => ['bool', 'tidy'=>'tidy'], 'tidy_load_config' => ['void', 'filename'=>'string', 'encoding'=>'string'], -'tidy_parse_file' => ['tidy', 'filename'=>'string', 'config='=>'', 'encoding='=>'string', 'useIncludePath='=>'bool'], -'tidy_parse_string' => ['tidy', 'string'=>'string', 'config='=>'', 'encoding='=>'string'], -'tidy_repair_file' => ['string', 'filename'=>'string', 'config='=>'', 'encoding='=>'string', 'useIncludePath='=>'bool'], -'tidy_repair_string' => ['string', 'string'=>'string', 'config='=>'', 'encoding='=>'string'], +'tidy_parse_file' => ['tidy', 'filename'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string', 'useIncludePath='=>'bool'], +'tidy_parse_string' => ['tidy', 'string'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string'], +'tidy_repair_file' => ['string', 'filename'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string', 'useIncludePath='=>'bool'], +'tidy_repair_string' => ['string', 'string'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string'], 'tidy_reset_config' => ['bool'], 'tidy_save_config' => ['bool', 'filename'=>'string'], 'tidy_set_encoding' => ['bool', 'encoding'=>'string'], @@ -14711,7 +14709,7 @@ 'TokyoTyrantTable::putNr' => ['void', 'keys'=>'mixed', 'value='=>'string'], 'TokyoTyrantTable::putShl' => ['void', 'key'=>'string', 'value'=>'string', 'width'=>'int'], 'TokyoTyrantTable::setIndex' => ['mixed', 'column'=>'string', 'type'=>'int'], -'touch' => ['bool', 'filename'=>'string', 'mtime='=>'int', 'atime='=>'int'], +'touch' => ['bool', 'filename'=>'string', 'mtime='=>'?int', 'atime='=>'?int'], 'trader_acos' => ['array', 'real'=>'array'], 'trader_ad' => ['array', 'high'=>'array', 'low'=>'array', 'close'=>'array', 'volume'=>'array'], 'trader_add' => ['array', 'real0'=>'array', 'real1'=>'array'], @@ -14904,7 +14902,7 @@ 'TypeError::getTraceAsString' => ['string'], 'uasort' => ['bool', '&rw_array'=>'array', 'callback'=>'callable(mixed,mixed):int'], 'ucfirst' => ['string', 'string'=>'string'], -'UConverter::__construct' => ['void', 'destination_encoding='=>'string', 'source_encoding='=>'string'], +'UConverter::__construct' => ['void', 'destination_encoding='=>'?string', 'source_encoding='=>'?string'], 'UConverter::convert' => ['string', 'string'=>'string', 'reverse='=>'bool'], 'UConverter::fromUCallback' => ['mixed', 'reason'=>'int', 'source'=>'string', 'codePoint'=>'string', '&w_error'=>'int'], 'UConverter::getAliases' => ['array', 'name'=>'string'], @@ -15114,7 +15112,7 @@ 'ui\window::setSize' => ['', 'size'=>'UI\Size'], 'ui\window::setTitle' => ['', 'title'=>'string'], 'uksort' => ['bool', '&rw_array'=>'array', 'callback'=>'callable(mixed,mixed):int'], -'umask' => ['int', 'mask='=>'int'], +'umask' => ['int', 'mask='=>'?int'], 'UnderflowException::__clone' => ['void'], 'UnderflowException::__construct' => ['void', 'message='=>'string', 'code='=>'int', 'previous='=>'?Throwable|?UnderflowException'], 'UnderflowException::__toString' => ['string'], @@ -15136,7 +15134,7 @@ 'UnexpectedValueException::getTrace' => ['list\',args?:array}>'], 'UnexpectedValueException::getTraceAsString' => ['string'], 'uniqid' => ['non-empty-string', 'prefix='=>'string', 'more_entropy='=>'bool'], -'unixtojd' => ['int', 'timestamp='=>'int'], +'unixtojd' => ['int', 'timestamp='=>'?int'], 'unlink' => ['bool', 'filename'=>'string', 'context='=>'resource'], 'unpack' => ['array|false', 'format'=>'string', 'string'=>'string', 'offset='=>'int'], 'unregister_tick_function' => ['void', 'callback'=>'callable'], @@ -15621,8 +15619,8 @@ 'xml_get_error_code' => ['int|false', 'parser'=>'XMLParser'], 'xml_parse' => ['int', 'parser'=>'XMLParser', 'data'=>'string', 'is_final='=>'bool'], 'xml_parse_into_struct' => ['int', 'parser'=>'XMLParser', 'data'=>'string', '&w_values'=>'array', '&w_index='=>'array'], -'xml_parser_create' => ['XMLParser', 'encoding='=>'string'], -'xml_parser_create_ns' => ['XMLParser', 'encoding='=>'string', 'separator='=>'string'], +'xml_parser_create' => ['XMLParser', 'encoding='=>'?string'], +'xml_parser_create_ns' => ['XMLParser', 'encoding='=>'?string', 'separator='=>'string'], 'xml_parser_free' => ['bool', 'parser'=>'XMLParser'], 'xml_parser_get_option' => ['mixed|false', 'parser'=>'XMLParser', 'option'=>'int'], 'xml_parser_set_option' => ['bool', 'parser'=>'XMLParser', 'option'=>'int', 'value'=>'mixed'], @@ -15666,9 +15664,9 @@ 'XMLReader::readOuterXML' => ['string'], 'XMLReader::readString' => ['string'], 'XMLReader::setParserProperty' => ['bool', 'property'=>'int', 'value'=>'bool'], -'XMLReader::setRelaxNGSchema' => ['bool', 'filename'=>'string'], -'XMLReader::setRelaxNGSchemaSource' => ['bool', 'source'=>'string'], -'XMLReader::setSchema' => ['bool', 'filename'=>'string'], +'XMLReader::setRelaxNGSchema' => ['bool', 'filename'=>'?string'], +'XMLReader::setRelaxNGSchemaSource' => ['bool', 'source'=>'?string'], +'XMLReader::setSchema' => ['bool', 'filename'=>'?string'], 'XMLReader::XML' => ['bool', 'source'=>'string', 'encoding='=>'?string', 'options='=>'int'], 'xmlrpc_decode' => ['mixed', 'xml'=>'string', 'encoding='=>'string'], 'xmlrpc_decode_request' => ['?array', 'xml'=>'string', '&w_method'=>'string', 'encoding='=>'string'], @@ -15809,7 +15807,7 @@ 'XSLTProcessor::removeParameter' => ['bool', 'namespace'=>'string', 'name'=>'string'], 'XSLTProcessor::setParameter' => ['bool', 'namespace'=>'string', 'name'=>'string', 'value'=>'string'], 'XSLTProcessor::setParameter\'1' => ['bool', 'namespace'=>'string', 'options'=>'array'], -'XSLTProcessor::setProfiling' => ['bool', 'filename'=>'string'], +'XSLTProcessor::setProfiling' => ['bool', 'filename'=>'?string'], 'XsltProcessor::setSecurityPrefs' => ['int', 'preferences'=>'int'], 'XSLTProcessor::transformToDoc' => ['DOMDocument|false', 'document'=>'DOMNode'], 'XSLTProcessor::transformToURI' => ['int', 'document'=>'DOMDocument', 'uri'=>'string'], @@ -16732,7 +16730,7 @@ 'ZipArchive::count' => ['int'], 'ZipArchive::deleteIndex' => ['bool', 'index'=>'int'], 'ZipArchive::deleteName' => ['bool', 'name'=>'string'], -'ZipArchive::extractTo' => ['bool', 'pathto'=>'string', 'files='=>'string[]|string'], +'ZipArchive::extractTo' => ['bool', 'pathto'=>'string', 'files='=>'string[]|string|null'], 'ZipArchive::getArchiveComment' => ['string|false', 'flags='=>'int'], 'ZipArchive::getCommentIndex' => ['string|false', 'index'=>'int', 'flags='=>'int'], 'ZipArchive::getCommentName' => ['string|false', 'name'=>'string', 'flags='=>'int'], @@ -16759,8 +16757,8 @@ 'ZipArchive::setCommentName' => ['bool', 'name'=>'string', 'comment'=>'string'], 'ZipArchive::setCompressionIndex' => ['bool', 'index'=>'int', 'comp_method'=>'int', 'comp_flags='=>'int'], 'ZipArchive::setCompressionName' => ['bool', 'name'=>'string', 'comp_method'=>'int', 'comp_flags='=>'int'], -'ZipArchive::setEncryptionIndex' => ['bool', 'index'=>'int', 'method'=>'string', 'password='=>'string'], -'ZipArchive::setEncryptionName' => ['bool', 'name'=>'string', 'method'=>'int', 'password='=>'string'], +'ZipArchive::setEncryptionIndex' => ['bool', 'index'=>'int', 'method'=>'string', 'password='=>'?string'], +'ZipArchive::setEncryptionName' => ['bool', 'name'=>'string', 'method'=>'int', 'password='=>'?string'], 'ZipArchive::setExternalAttributesIndex' => ['bool', 'index'=>'int', 'opsys'=>'int', 'attr'=>'int', 'flags='=>'int'], 'ZipArchive::setExternalAttributesName' => ['bool', 'name'=>'string', 'opsys'=>'int', 'attr'=>'int', 'flags='=>'int'], 'ZipArchive::setMtimeIndex' => ['bool', 'index'=>'int', 'timestamp'=>'int', 'flags='=>'int'], diff --git a/dictionaries/CallMap_71_delta.php b/dictionaries/CallMap_71_delta.php index e9714e41714..84a9e675c3e 100644 --- a/dictionaries/CallMap_71_delta.php +++ b/dictionaries/CallMap_71_delta.php @@ -58,10 +58,6 @@ 'old' => ['array', 'result'=>'resource'], 'new' => ['array', 'result'=>'resource', 'result_type='=>'int'], ], - 'pg_last_error' => [ - 'old' => ['string', 'connection='=>'resource'], - 'new' => ['string', 'connection='=>'resource', 'operation='=>'int'], - ], 'pg_select' => [ 'old' => ['string|array|false', 'connection'=>'resource', 'table_name'=>'string', 'assoc_array'=>'array', 'options='=>'int'], 'new' => ['string|array|false', 'connection'=>'resource', 'table_name'=>'string', 'assoc_array'=>'array', 'options='=>'int', 'result_type='=>'int'], diff --git a/dictionaries/CallMap_72_delta.php b/dictionaries/CallMap_72_delta.php index c283ed8ce94..99ecbd9feca 100644 --- a/dictionaries/CallMap_72_delta.php +++ b/dictionaries/CallMap_72_delta.php @@ -28,7 +28,7 @@ 'imageopenpolygon' => ['bool', 'image'=>'resource', 'points'=>'array', 'num_points'=>'int', 'color'=>'int'], 'imageresolution' => ['array|bool', 'image'=>'resource', 'resolution_x='=>'int', 'resolution_y='=>'int'], 'imagesetclip' => ['bool', 'image'=>'resource', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int'], - 'ldap_exop' => ['mixed', 'ldap'=>'resource', 'reqoid'=>'string', 'reqdata='=>'string', 'serverctrls='=>'array|null', '&w_response_data='=>'string', '&w_response_oid='=>'string'], + 'ldap_exop' => ['resource|bool', 'ldap'=>'resource', 'request_oid'=>'string', 'request_data='=>'?string', 'controls='=>'array|null', '&w_response_data='=>'string', '&w_response_oid='=>'string'], 'ldap_exop_passwd' => ['bool|string', 'ldap'=>'resource', 'user='=>'string', 'old_password='=>'string', 'new_password='=>'string'], 'ldap_exop_refresh' => ['int|false', 'ldap'=>'resource', 'dn'=>'string', 'ttl'=>'int'], 'ldap_exop_whoami' => ['string|false', 'ldap'=>'resource'], @@ -132,6 +132,22 @@ 'stream_isatty' => ['bool', 'stream'=>'resource'], ], 'changed' => [ + 'ReflectionClass::getMethods' => [ + 'old' => ['list', 'filter='=>'int'], + 'new' => ['list', 'filter='=>'?int'], + ], + 'ReflectionClass::getProperties' => [ + 'old' => ['list', 'filter='=>'int'], + 'new' => ['list', 'filter='=>'?int'], + ], + 'ReflectionObject::getMethods' => [ + 'old' => ['ReflectionMethod[]', 'filter='=>'int'], + 'new' => ['ReflectionMethod[]', 'filter='=>'?int'], + ], + 'ReflectionObject::getProperties' => [ + 'old' => ['ReflectionProperty[]', 'filter='=>'int'], + 'new' => ['ReflectionProperty[]', 'filter='=>'?int'], + ], 'SQLite3::openBlob' => [ 'old' => ['resource|false', 'table'=>'string', 'column'=>'string', 'rowid'=>'int', 'dbname='=>'string'], 'new' => ['resource|false', 'table'=>'string', 'column'=>'string', 'rowid'=>'int', 'database='=>'string', 'flags='=>'int'], @@ -160,10 +176,18 @@ 'old' => ['int', 'context'=>'resource', 'handle'=>'resource', 'length='=>'int'], 'new' => ['int', 'context'=>'HashContext', 'stream'=>'resource', 'length='=>'int'], ], + 'json_decode' => [ + 'old' => ['mixed', 'json'=>'string', 'associative='=>'bool', 'depth='=>'int', 'flags='=>'int'], + 'new' => ['mixed', 'json'=>'string', 'associative='=>'?bool', 'depth='=>'int', 'flags='=>'int'], + ], 'mb_check_encoding' => [ 'old' => ['bool', 'value='=>'string', 'encoding='=>'string'], 'new' => ['bool', 'value='=>'array|string', 'encoding='=>'string'], ], + 'preg_quote' => [ + 'old' => ['string', 'str'=>'string', 'delimiter='=>'string'], + 'new' => ['string', 'str'=>'string', 'delimiter='=>'?string'], + ], ], 'removed' => [ 'Sodium\add' => ['void', '&left'=>'string', 'right'=>'string'], diff --git a/dictionaries/CallMap_74_delta.php b/dictionaries/CallMap_74_delta.php index 73f5a1ecaa6..317205aa711 100644 --- a/dictionaries/CallMap_74_delta.php +++ b/dictionaries/CallMap_74_delta.php @@ -21,6 +21,10 @@ 'openssl_x509_verify' => ['int', 'certificate'=>'string|resource', 'public_key'=>'string|array|resource'], ], 'changed' => [ + 'Locale::lookup' => [ + 'old' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'string'], + 'new' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'?string'], + ], 'array_merge' => [ 'old' => ['array', '...arrays'=>'array'], 'new' => ['array', '...arrays='=>'array'], @@ -33,6 +37,10 @@ 'old' => ['string|0', 'stream'=>'resource', 'length'=>'int'], 'new' => ['string|false', 'stream'=>'resource', 'length'=>'int'], ], + 'locale_lookup' => [ + 'old' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'string'], + 'new' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'?string'], + ], 'password_hash' => [ 'old' => ['string|false', 'password'=>'string', 'algo'=>'int', 'options='=>'array'], 'new' => ['string|false', 'password'=>'string', 'algo'=>'int|string|null', 'options='=>'array'], diff --git a/dictionaries/CallMap_80_delta.php b/dictionaries/CallMap_80_delta.php index 227f936917f..7009320e31a 100644 --- a/dictionaries/CallMap_80_delta.php +++ b/dictionaries/CallMap_80_delta.php @@ -69,70 +69,90 @@ 'old' => ['list|false', 'timezoneGroup='=>'int', 'countryCode='=>'string|null'], 'new' => ['list', 'timezoneGroup='=>'int', 'countryCode='=>'string|null'], ], + 'Directory::close' => [ + 'old' => ['void', 'dir_handle='=>'resource'], + 'new' => ['void'], + ], + 'Directory::read' => [ + 'old' => ['string|false', 'dir_handle='=>'resource'], + 'new' => ['string|false'], + ], + 'Directory::rewind' => [ + 'old' => ['void', 'dir_handle='=>'resource'], + 'new' => ['void'], + ], 'IntlDateFormatter::__construct' => [ - 'old' => ['void', 'locale'=>'?string', 'datetype'=>'null|int', 'timetype'=>'null|int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], - 'new' => ['void', 'locale'=>'?string', 'dateType'=>'int', 'timeType'=>'int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], + 'old' => ['void', 'locale'=>'?string', 'datetype'=>'null|int', 'timetype'=>'null|int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], + 'new' => ['void', 'locale'=>'?string', 'dateType'=>'int', 'timeType'=>'int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], ], 'IntlDateFormatter::create' => [ - 'old' => ['?IntlDateFormatter', 'locale'=>'?string', 'datetype'=>'null|int', 'timetype'=>'null|int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], - 'new' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType'=>'int', 'timeType'=>'int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], + 'old' => ['?IntlDateFormatter', 'locale'=>'?string', 'datetype'=>'null|int', 'timetype'=>'null|int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], + 'new' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType'=>'int', 'timeType'=>'int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], ], 'IntlDateFormatter::format' => [ - 'old' => ['string|false', 'value'=>'IntlCalendar|DateTimeInterface|array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int}|array{tm_sec: int, tm_min: int, tm_hour: int, tm_mday: int, tm_mon: int, tm_year: int, tm_wday: int, tm_yday: int, tm_isdst: int}|string|int|float'], - 'new' => ['string|false', 'datetime'=>'IntlCalendar|DateTimeInterface|array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int}|array{tm_sec: int, tm_min: int, tm_hour: int, tm_mday: int, tm_mon: int, tm_year: int, tm_wday: int, tm_yday: int, tm_isdst: int}|string|int|float'], + 'old' => ['string|false', 'value'=>'IntlCalendar|DateTimeInterface|array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int}|array{tm_sec: int, tm_min: int, tm_hour: int, tm_mday: int, tm_mon: int, tm_year: int, tm_wday: int, tm_yday: int, tm_isdst: int}|string|int|float'], + 'new' => ['string|false', 'datetime'=>'IntlCalendar|DateTimeInterface|array{0: int, 1: int, 2: int, 3: int, 4: int, 5: int, 6: int, 7: int, 8: int}|array{tm_sec: int, tm_min: int, tm_hour: int, tm_mday: int, tm_mon: int, tm_year: int, tm_wday: int, tm_yday: int, tm_isdst: int}|string|int|float'], ], 'IntlDateFormatter::formatObject' => [ - 'old' => ['string|false', 'object'=>'IntlCalendar|DateTime', 'format='=>'array{0: int, 1: int}|int|string|null', 'locale='=>'?string'], - 'new' => ['string|false', 'datetime'=>'IntlCalendar|DateTimeInterface', 'format='=>'array{0: int, 1: int}|int|string|null', 'locale='=>'?string'], + 'old' => ['string|false', 'object'=>'IntlCalendar|DateTime', 'format='=>'array{0: int, 1: int}|int|string|null', 'locale='=>'?string'], + 'new' => ['string|false', 'datetime'=>'IntlCalendar|DateTimeInterface', 'format='=>'array{0: int, 1: int}|int|string|null', 'locale='=>'?string'], ], 'IntlDateFormatter::getCalendar' => [ - 'old' => ['int'], - 'new' => ['int|false'], + 'old' => ['int'], + 'new' => ['int|false'], ], 'IntlDateFormatter::getCalendarObject' => [ - 'old' => ['IntlCalendar'], - 'new' => ['IntlCalendar|false|null'], + 'old' => ['IntlCalendar'], + 'new' => ['IntlCalendar|false|null'], ], 'IntlDateFormatter::getDateType' => [ - 'old' => ['int'], - 'new' => ['int|false'], + 'old' => ['int'], + 'new' => ['int|false'], ], 'IntlDateFormatter::getLocale' => [ - 'old' => ['string', 'which='=>'int'], - 'new' => ['string|false', 'type='=>'int'], + 'old' => ['string', 'which='=>'int'], + 'new' => ['string|false', 'type='=>'int'], ], 'IntlDateFormatter::getPattern' => [ - 'old' => ['string'], - 'new' => ['string|false'], + 'old' => ['string'], + 'new' => ['string|false'], ], 'IntlDateFormatter::getTimeType' => [ - 'old' => ['int'], - 'new' => ['int|false'], + 'old' => ['int'], + 'new' => ['int|false'], ], 'IntlDateFormatter::getTimeZoneId' => [ - 'old' => ['string'], - 'new' => ['string|false'], + 'old' => ['string'], + 'new' => ['string|false'], ], 'IntlDateFormatter::localtime' => [ - 'old' => ['array', 'value'=>'string', '&rw_position='=>'int'], - 'new' => ['array|false', 'string'=>'string', '&rw_offset='=>'int'], + 'old' => ['array', 'value'=>'string', '&rw_position='=>'int'], + 'new' => ['array|false', 'string'=>'string', '&rw_offset='=>'int'], ], 'IntlDateFormatter::parse' => [ - 'old' => ['int|float', 'value'=>'string', '&rw_position='=>'int'], - 'new' => ['int|float|false', 'string'=>'string', '&rw_offset='=>'int'], + 'old' => ['int|float', 'value'=>'string', '&rw_position='=>'int'], + 'new' => ['int|float|false', 'string'=>'string', '&rw_offset='=>'int'], ], 'IntlDateFormatter::setCalendar' => [ - 'old' => ['bool', 'which'=>'IntlCalendar|int|null'], - 'new' => ['bool', 'calendar'=>'IntlCalendar|int|null'], + 'old' => ['bool', 'which'=>'IntlCalendar|int|null'], + 'new' => ['bool', 'calendar'=>'IntlCalendar|int|null'], ], 'IntlDateFormatter::setLenient' => [ - 'old' => ['bool', 'lenient'=>'bool'], - 'new' => ['void', 'lenient'=>'bool'], + 'old' => ['bool', 'lenient'=>'bool'], + 'new' => ['void', 'lenient'=>'bool'], ], 'IntlDateFormatter::setTimeZone' => [ 'old' => ['null|false', 'zone'=>'IntlTimeZone|DateTimeZone|string|null'], 'new' => ['null|false', 'timezone'=>'IntlTimeZone|DateTimeZone|string|null'], ], + 'NumberFormatter::__construct' => [ + 'old' => ['void', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], + 'new' => ['void', 'locale'=>'string', 'style'=>'int', 'pattern='=>'?string'], + ], + 'NumberFormatter::create' => [ + 'old' => ['NumberFormatter|null', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], + 'new' => ['NumberFormatter|null', 'locale'=>'string', 'style'=>'int', 'pattern='=>'?string'], + ], 'PDOStatement::bindColumn' => [ 'old' => ['bool', 'column'=>'mixed', '&rw_param'=>'mixed', 'type='=>'int', 'maxlen='=>'int', 'driverdata='=>'mixed'], 'new' => ['bool', 'column'=>'mixed', '&rw_var'=>'mixed', 'type='=>'int', 'maxLength='=>'int', 'driverOptions='=>'mixed'], @@ -177,6 +197,38 @@ 'old' => ['bool', 'mode'=>'int'], 'new' => ['bool', 'mode'=>'int', '...args='=>'mixed'], ], + 'PharData::compress' => [ + 'old' => ['?PharData', 'compression'=>'int', 'extension='=>'string'], + 'new' => ['?PharData', 'compression'=>'int', 'extension='=>'?string'], + ], + 'PharData::convertToData' => [ + 'old' => ['?PharData', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], + 'new' => ['?PharData', 'format='=>'?int', 'compression='=>'?int', 'extension='=>'?string'], + ], + 'PharData::convertToExecutable' => [ + 'old' => ['?Phar', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], + 'new' => ['?Phar', 'format='=>'?int', 'compression='=>'?int', 'extension='=>'?string'], + ], + 'PharData::decompress' => [ + 'old' => ['PharData', 'extension='=>'string'], + 'new' => ['PharData', 'extension='=>'?string'], + ], + 'Phar::compress' => [ + 'old' => ['?Phar', 'compression'=>'int', 'extension='=>'string'], + 'new' => ['?Phar', 'compression'=>'int', 'extension='=>'?string'], + ], + 'Phar::convertToData' => [ + 'old' => ['?PharData', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], + 'new' => ['?PharData', 'format='=>'?int', 'compression='=>'?int', 'extension='=>'?string'], + ], + 'Phar::convertToExecutable' => [ + 'old' => ['?Phar', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], + 'new' => ['?Phar', 'format='=>'?int', 'compression='=>'?int', 'extension='=>'?string'], + ], + 'Phar::decompress' => [ + 'old' => ['?Phar', 'extension='=>'string'], + 'new' => ['?Phar', 'extension='=>'?string'], + ], 'Phar::getMetadata' => [ 'old' => ['mixed'], 'new' => ['mixed', 'unserializeOptions='=>'array'], @@ -185,26 +237,66 @@ 'old' => ['mixed'], 'new' => ['mixed', 'unserializeOptions='=>'array'], ], + 'RecursiveIteratorIterator::getSubIterator' => [ + 'old' => ['?RecursiveIterator', 'level='=>'int'], + 'new' => ['?RecursiveIterator', 'level='=>'?int'], + ], + 'RecursiveTreeIterator::getSubIterator' => [ + 'old' => ['?RecursiveIterator', 'level='=>'int'], + 'new' => ['?RecursiveIterator', 'level='=>'?int'], + ], 'ReflectionClass::getConstants' => [ 'old' => ['array'], 'new' => ['array', 'filter='=>'?int'], ], 'ReflectionClass::getReflectionConstants' => [ - 'old' => ['list'], - 'new' => ['list', 'filter='=>'?int'], + 'old' => ['list'], + 'new' => ['list', 'filter='=>'?int'], ], 'ReflectionClass::newInstanceArgs' => [ - 'old' => ['object', 'args='=>'list'], - 'new' => ['object', 'args='=>'array'], + 'old' => ['object', 'args='=>'list'], + 'new' => ['object', 'args='=>'array'], + ], + 'ReflectionMethod::getClosure' => [ + 'old' => ['?Closure', 'object='=>'object'], + 'new' => ['Closure', 'object='=>'?object'], ], 'ReflectionProperty::getValue' => [ - 'old' => ['mixed', 'object='=>'object'], - 'new' => ['mixed', 'object='=>'null|object'], + 'old' => ['mixed', 'object='=>'object'], + 'new' => ['mixed', 'object='=>'null|object'], + ], + 'tidy::__construct' => [ + 'old' => ['void', 'filename='=>'string', 'config='=>'array|string', 'encoding='=>'string', 'useIncludePath='=>'bool'], + 'new' => ['void', 'filename='=>'?string', 'config='=>'array|string|null', 'encoding='=>'?string', 'useIncludePath='=>'bool'], + ], + 'tidy::parseFile' => [ + 'old' => ['bool', 'filename'=>'string', 'config='=>'array|string', 'encoding='=>'string', 'useIncludePath='=>'bool'], + 'new' => ['bool', 'filename'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string', 'useIncludePath='=>'bool'], + ], + 'tidy::parseString' => [ + 'old' => ['bool', 'string'=>'string', 'config='=>'array|string', 'encoding='=>'string'], + 'new' => ['bool', 'string'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string'], + ], + 'tidy::repairFile' => [ + 'old' => ['string', 'filename'=>'string', 'config='=>'array|string', 'encoding='=>'string', 'useIncludePath='=>'bool'], + 'new' => ['string', 'filename'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string', 'useIncludePath='=>'bool'], + ], + 'tidy::repairString' => [ + 'old' => ['string', 'string'=>'string', 'config='=>'array|string', 'encoding='=>'string'], + 'new' => ['string', 'string'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string'], ], 'XMLWriter::flush' => [ 'old' => ['string|int|false', 'empty='=>'bool'], 'new' => ['string|int', 'empty='=>'bool'], ], + 'SimpleXMLElement::asXML' => [ + 'old' => ['string|bool', 'filename'=>'string'], + 'new' => ['string|bool', 'filename='=>'?string'], + ], + 'SimpleXMLElement::saveXML' => [ + 'old' => ['string|bool', 'filename='=>'string'], + 'new' => ['string|bool', 'filename='=>'?string'], + ], 'SoapClient::__doRequest' => [ 'old' => ['?string', 'request'=>'string', 'location'=>'string', 'action'=>'string', 'version'=>'int', 'one_way='=>'int'], 'new' => ['?string', 'request'=>'string', 'location'=>'string', 'action'=>'string', 'version'=>'int', 'one_way='=>'bool'], @@ -221,41 +313,57 @@ 'old' => ['bool', 'name'=>'string', 'content'=>'string', 'isParam'=>'bool', 'publicId'=>'string', 'systemId'=>'string', 'notationData'=>'string'], 'new' => ['bool', 'name'=>'string', 'content'=>'string', 'isParam='=>'bool', 'publicId='=>'?string', 'systemId='=>'?string', 'notationData='=>'?string'], ], + 'ZipArchive::setEncryptionIndex' => [ + 'old' => ['bool', 'index'=>'int', 'method'=>'string', 'password='=>'string'], + 'new' => ['bool', 'index'=>'int', 'method'=>'string', 'password='=>'?string'], + ], + 'ZipArchive::setEncryptionName' => [ + 'old' => ['bool', 'name'=>'string', 'method'=>'int', 'password='=>'string'], + 'new' => ['bool', 'name'=>'string', 'method'=>'int', 'password='=>'?string'], + ], 'array_column' => [ - 'old' => ['array', 'array'=>'array', 'column_key'=>'mixed', 'index_key='=>'mixed'], - 'new' => ['array', 'array'=>'array', 'column_key'=>'int|string|null', 'index_key='=>'int|string|null'], + 'old' => ['array', 'array'=>'array', 'column_key'=>'mixed', 'index_key='=>'mixed'], + 'new' => ['array', 'array'=>'array', 'column_key'=>'int|string|null', 'index_key='=>'int|string|null'], ], 'array_combine' => [ 'old' => ['associative-array|false', 'keys'=>'string[]|int[]', 'values'=>'array'], 'new' => ['associative-array', 'keys'=>'string[]|int[]', 'values'=>'array'], ], 'array_diff' => [ - 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], - 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], + 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], + 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], ], 'array_diff_assoc' => [ - 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], - 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], + 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], + 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], ], 'array_diff_key' => [ - 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], - 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], + 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], + 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], + ], + 'array_filter' => [ + 'old' => ['associative-array', 'array'=>'array', 'callback='=>'callable(mixed,mixed=):scalar', 'mode='=>'int'], + 'new' => ['associative-array', 'array'=>'array', 'callback='=>'callable(mixed,mixed=):scalar|null', 'mode='=>'int'], ], 'array_key_exists' => [ - 'old' => ['bool', 'key'=>'string|int', 'array'=>'array|object'], - 'new' => ['bool', 'key'=>'string|int', 'array'=>'array'], + 'old' => ['bool', 'key'=>'string|int', 'array'=>'array|object'], + 'new' => ['bool', 'key'=>'string|int', 'array'=>'array'], ], 'array_intersect' => [ - 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], - 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], + 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], + 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], ], 'array_intersect_assoc' => [ - 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], - 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], + 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], + 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], ], 'array_intersect_key' => [ - 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], - 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], + 'old' => ['associative-array', 'array'=>'array', '...arrays'=>'array'], + 'new' => ['associative-array', 'array'=>'array', '...arrays='=>'array'], + ], + 'array_splice' => [ + 'old' => ['array', '&rw_array'=>'array', 'offset'=>'int', 'length='=>'int', 'replacement='=>'array|string'], + 'new' => ['array', '&rw_array'=>'array', 'offset'=>'int', 'length='=>'?int', 'replacement='=>'array|string'], ], 'bcadd' => [ 'old' => ['numeric-string', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int'], @@ -297,6 +405,18 @@ 'old' => ['numeric-string', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int'], 'new' => ['numeric-string', 'num1'=>'numeric-string', 'num2'=>'numeric-string', 'scale='=>'int|null'], ], + 'bind_textdomain_codeset' => [ + 'old' => ['string', 'domain'=>'string', 'codeset'=>'string'], + 'new' => ['string', 'domain'=>'string', 'codeset'=>'?string'], + ], + 'bindtextdomain' => [ + 'old' => ['string', 'domain'=>'string', 'directory'=>'string'], + 'new' => ['string', 'domain'=>'string', 'directory'=>'?string'], + ], + 'bzwrite' => [ + 'old' => ['int|false', 'bz'=>'resource', 'data'=>'string', 'length='=>'int'], + 'new' => ['int|false', 'bz'=>'resource', 'data'=>'string', 'length='=>'?int'], + ], 'collator_get_strength' => [ 'old' => ['int|false', 'object'=>'collator'], 'new' => ['int', 'object'=>'collator'], @@ -306,8 +426,8 @@ 'new' => ['bool', 'typelib_name'=>'string', 'case_insensitive='=>'true'], ], 'count' => [ - 'old' => ['int<0, max>', 'value'=>'Countable|array|SimpleXMLElement', 'mode='=>'int'], - 'new' => ['int<0, max>', 'value'=>'Countable|array', 'mode='=>'int'], + 'old' => ['int<0, max>', 'value'=>'Countable|array|SimpleXMLElement', 'mode='=>'int'], + 'new' => ['int<0, max>', 'value'=>'Countable|array', 'mode='=>'int'], ], 'count_chars' => [ 'old' => ['array|false', 'input'=>'string', 'mode='=>'0|1|2'], @@ -347,11 +467,11 @@ ], 'curl_getinfo' => [ 'old' => ['mixed', 'ch'=>'resource', 'option='=>'int'], - 'new' => ['mixed', 'handle'=>'CurlHandle', 'option='=>'int'], + 'new' => ['mixed', 'handle'=>'CurlHandle', 'option='=>'?int'], ], 'curl_init' => [ 'old' => ['resource|false', 'url='=>'string'], - 'new' => ['CurlHandle|false', 'url='=>'string'], + 'new' => ['CurlHandle|false', 'url='=>'?string'], ], 'curl_multi_add_handle' => [ 'old' => ['int', 'mh'=>'resource', 'ch'=>'resource'], @@ -466,12 +586,12 @@ 'new' => ['array', 'timestamp'=>'int', 'latitude'=>'float', 'longitude'=>'float'], ], 'date_sunrise' => [ - 'old' => ['mixed', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], - 'new' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], + 'old' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], + 'new' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'?float', 'longitude='=>'?float', 'zenith='=>'?float', 'utcOffset='=>'?float'], ], 'date_sunset' => [ - 'old' => ['mixed', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], - 'new' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], + 'old' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], + 'new' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'?float', 'longitude='=>'?float', 'zenith='=>'?float', 'utcOffset='=>'?float'], ], 'date_time_set' => [ 'old' => ['DateTime|false', 'object'=>'', 'hour'=>'', 'minute'=>'', 'second='=>'', 'microsecond='=>''], @@ -486,24 +606,80 @@ 'new' => ['DateTime', 'object'=>'DateTime', 'timezone'=>'DateTimeZone'], ], 'datefmt_create' => [ - 'old' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType'=>'int', 'timeType'=>'int', 'timezone='=>'DateTimeZone|IntlTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'string'], - 'new' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType='=>'int', 'timeType='=>'int', 'timezone='=>'DateTimeZone|IntlTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], + 'old' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType'=>'int', 'timeType'=>'int', 'timezone='=>'DateTimeZone|IntlTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'string'], + 'new' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType='=>'int', 'timeType='=>'int', 'timezone='=>'DateTimeZone|IntlTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], ], 'dom_import_simplexml' => [ - 'old' => ['DOMElement|null', 'node'=>'SimpleXMLElement'], - 'new' => ['DOMElement', 'node'=>'SimpleXMLElement'], + 'old' => ['DOMElement|null', 'node'=>'SimpleXMLElement'], + 'new' => ['DOMElement', 'node'=>'SimpleXMLElement'], + ], + 'easter_date' => [ + 'old' => ['int', 'year='=>'int'], + 'new' => ['int', 'year='=>'?int'], + ], + 'easter_days' => [ + 'old' => ['int', 'year='=>'int', 'mode='=>'int'], + 'new' => ['int', 'year='=>'?int', 'mode='=>'int'], + ], + 'error_log' => [ + 'old' => ['bool', 'message'=>'string', 'message_type='=>'int', 'destination='=>'string', 'additional_headers='=>'string'], + 'new' => ['bool', 'message'=>'string', 'message_type='=>'int', 'destination='=>'?string', 'additional_headers='=>'?string'], + ], + 'error_reporting' => [ + 'old' => ['int', 'error_level='=>'int'], + 'new' => ['int', 'error_level='=>'?int'], + ], + 'exif_read_data' => [ + 'old' => ['array|false', 'file'=>'string|resource', 'required_sections='=>'string', 'as_arrays='=>'bool', 'read_thumbnail='=>'bool'], + 'new' => ['array|false', 'file'=>'string|resource', 'required_sections='=>'?string', 'as_arrays='=>'bool', 'read_thumbnail='=>'bool'], ], 'explode' => [ 'old' => ['list|false', 'separator'=>'string', 'string'=>'string', 'limit='=>'int'], 'new' => ['list', 'separator'=>'string', 'string'=>'string', 'limit='=>'int'], ], + 'fgetcsv' => [ + 'old' => ['list|array{0: null}|false|null', 'stream'=>'resource', 'length='=>'int', 'separator='=>'string', 'enclosure='=>'string', 'escape='=>'string'], + 'new' => ['list|array{0: null}|false|null', 'stream'=>'resource', 'length='=>'?int', 'separator='=>'string', 'enclosure='=>'string', 'escape='=>'string'], + ], + 'fgets' => [ + 'old' => ['string|false', 'stream'=>'resource', 'length='=>'int'], + 'new' => ['string|false', 'stream'=>'resource', 'length='=>'?int'], + ], + 'file_get_contents' => [ + 'old' => ['string|false', 'filename'=>'string', 'use_include_path='=>'bool', 'context='=>'?resource', 'offset='=>'int', 'length='=>'int'], + 'new' => ['string|false', 'filename'=>'string', 'use_include_path='=>'bool', 'context='=>'?resource', 'offset='=>'int', 'length='=>'?int'], + ], + 'finfo_open' => [ + 'old' => ['resource|false', 'flags='=>'int', 'magic_database='=>'string'], + 'new' => ['resource|false', 'flags='=>'int', 'magic_database='=>'?string'], + ], + 'fputs' => [ + 'old' => ['int|false', 'stream'=>'resource', 'data'=>'string', 'length='=>'int'], + 'new' => ['int|false', 'stream'=>'resource', 'data'=>'string', 'length='=>'?int'], + ], + 'fsockopen' => [ + 'old' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'float'], + 'new' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'?float'], + ], + 'fwrite' => [ + 'old' => ['int|false', 'stream'=>'resource', 'data'=>'string', 'length='=>'int'], + 'new' => ['int|false', 'stream'=>'resource', 'data'=>'string', 'length='=>'?int'], + ], 'get_class_methods' => [ - 'old' => ['list|null', 'object_or_class'=>'mixed'], - 'new' => ['list', 'object_or_class'=>'object|class-string'], + 'old' => ['list|null', 'object_or_class'=>'mixed'], + 'new' => ['list', 'object_or_class'=>'object|class-string'], ], 'get_parent_class' => [ - 'old' => ['class-string|false', 'object_or_class='=>'mixed'], - 'new' => ['class-string|false', 'object_or_class='=>'object|class-string'], + 'old' => ['class-string|false', 'object_or_class='=>'mixed'], + 'new' => ['class-string|false', 'object_or_class='=>'object|class-string'], + ], + 'get_resources' => [ + 'old' => ['array', 'type='=>'string'], + 'new' => ['array', 'type='=>'?string'], + ], + 'getdate' => [ + 'old' => ['array{seconds: int<0, 59>, minutes: int<0, 59>, hours: int<0, 23>, mday: int<1, 31>, wday: int<0, 6>, mon: int<1, 12>, year: int, yday: int<0, 365>, weekday: "Monday"|"Tuesday"|"Wednesday"|"Thursday"|"Friday"|"Saturday"|"Sunday", month: "January"|"February"|"March"|"April"|"May"|"June"|"July"|"August"|"September"|"October"|"November"|"December", 0: int}', 'timestamp='=>'int'], + 'new' => ['array{seconds: int<0, 59>, minutes: int<0, 59>, hours: int<0, 23>, mday: int<1, 31>, wday: int<0, 6>, mon: int<1, 12>, year: int, yday: int<0, 365>, weekday: "Monday"|"Tuesday"|"Wednesday"|"Thursday"|"Friday"|"Saturday"|"Sunday", month: "January"|"February"|"March"|"April"|"May"|"June"|"July"|"August"|"September"|"October"|"November"|"December", 0: int}', 'timestamp='=>'?int'], ], 'gmdate' => [ 'old' => ['string', 'format'=>'string', 'timestamp='=>'int'], @@ -521,6 +697,18 @@ 'old' => ['string|false', 'format'=>'string', 'timestamp='=>'int'], 'new' => ['string|false', 'format'=>'string', 'timestamp='=>'?int'], ], + 'gzgets' => [ + 'old' => ['string|false', 'stream'=>'resource', 'length='=>'int'], + 'new' => ['string|false', 'stream'=>'resource', 'length='=>'?int'], + ], + 'gzputs' => [ + 'old' => ['int', 'stream'=>'resource', 'data'=>'string', 'length='=>'int'], + 'new' => ['int', 'stream'=>'resource', 'data'=>'string', 'length='=>'?int'], + ], + 'gzwrite' => [ + 'old' => ['int', 'stream'=>'resource', 'data'=>'string', 'length='=>'int'], + 'new' => ['int', 'stream'=>'resource', 'data'=>'string', 'length='=>'?int'], + ], 'hash' => [ 'old' => ['string|false', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool'], 'new' => ['non-empty-string', 'algo'=>'string', 'data'=>'string', 'binary='=>'bool'], @@ -541,6 +729,50 @@ 'old' => ['bool', 'context'=>'HashContext', 'filename'=>'string', 'stream_context='=>'resource'], 'new' => ['bool', 'context'=>'HashContext', 'filename'=>'string', 'stream_context='=>'?resource'], ], + 'header_remove' => [ + 'old' => ['void', 'name='=>'string'], + 'new' => ['void', 'name='=>'?string'], + ], + 'html_entity_decode' => [ + 'old' => ['string', 'string'=>'string', 'flags='=>'int', 'encoding='=>'string'], + 'new' => ['string', 'string'=>'string', 'flags='=>'int', 'encoding='=>'?string'], + ], + 'htmlentities' => [ + 'old' => ['string', 'string'=>'string', 'flags='=>'int', 'encoding='=>'string', 'double_encode='=>'bool'], + 'new' => ['string', 'string'=>'string', 'flags='=>'int', 'encoding='=>'?string', 'double_encode='=>'bool'], + ], + 'iconv_mime_decode' => [ + 'old' => ['string|false', 'string'=>'string', 'mode='=>'int', 'encoding='=>'string'], + 'new' => ['string|false', 'string'=>'string', 'mode='=>'int', 'encoding='=>'?string'], + ], + 'iconv_mime_decode_headers' => [ + 'old' => ['array|false', 'headers'=>'string', 'mode='=>'int', 'encoding='=>'string'], + 'new' => ['array|false', 'headers'=>'string', 'mode='=>'int', 'encoding='=>'?string'], + ], + 'iconv_strlen' => [ + 'old' => ['0|positive-int|false', 'string'=>'string', 'encoding='=>'string'], + 'new' => ['0|positive-int|false', 'string'=>'string', 'encoding='=>'?string'], + ], + 'iconv_strpos' => [ + 'old' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int', 'encoding='=>'string'], + 'new' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int', 'encoding='=>'?string'], + ], + 'iconv_strrpos' => [ + 'old' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'encoding='=>'string'], + 'new' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'encoding='=>'?string'], + ], + 'iconv_substr' => [ + 'old' => ['string|false', 'string'=>'string', 'offset'=>'int', 'length='=>'int', 'encoding='=>'string'], + 'new' => ['string|false', 'string'=>'string', 'offset'=>'int', 'length='=>'?int', 'encoding='=>'?string'], + ], + 'idate' => [ + 'old' => ['int', 'format'=>'string', 'timestamp='=>'int'], + 'new' => ['int', 'format'=>'string', 'timestamp='=>'?int'], + ], + 'ignore_user_abort' => [ + 'old' => ['int', 'enable='=>'bool'], + 'new' => ['int', 'enable='=>'?bool'], + ], 'imageaffine' => [ 'old' => ['resource|false', 'src'=>'resource', 'affine'=>'array', 'clip='=>'array'], 'new' => ['false|GdImage', 'image'=>'GdImage', 'affine'=>'array', 'clip='=>'?array'], @@ -631,7 +863,7 @@ ], 'imagecolortransparent' => [ 'old' => ['int|false', 'image'=>'resource', 'color='=>'int'], - 'new' => ['int|false', 'image'=>'GdImage', 'color='=>'int'], + 'new' => ['int|false', 'image'=>'GdImage', 'color='=>'?int'], ], 'imageconvolution' => [ 'old' => ['bool', 'image'=>'resource', 'matrix'=>'array', 'divisor'=>'float', 'offset'=>'float'], @@ -843,7 +1075,7 @@ ], 'imageresolution' => [ 'old' => ['array|bool', 'image'=>'resource', 'resolution_x='=>'int', 'resolution_y='=>'int'], - 'new' => ['array|bool', 'image'=>'GdImage', 'resolution_x='=>'int', 'resolution_y='=>'int'], + 'new' => ['array|bool', 'image'=>'GdImage', 'resolution_x='=>'?int', 'resolution_y='=>'?int'], ], 'imagerotate' => [ 'old' => ['resource|false', 'src_im'=>'resource', 'angle'=>'float', 'bgdcolor'=>'int', 'ignoretransparent='=>'int'], @@ -911,7 +1143,7 @@ ], 'imagewbmp' => [ 'old' => ['bool', 'image'=>'resource', 'file='=>'string|resource|null', 'foreground_color='=>'int'], - 'new' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'foreground_color='=>'int'], + 'new' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'foreground_color='=>'?int'], ], 'imagewebp' => [ 'old' => ['bool', 'image'=>'resource', 'file='=>'string|resource|null', 'quality='=>'int'], @@ -921,14 +1153,90 @@ 'old' => ['bool', 'image'=>'resource', 'filename='=>'?string', 'foreground_color='=>'int'], 'new' => ['bool', 'image'=>'GdImage', 'filename='=>'?string', 'foreground_color='=>'int'], ], + 'imap_append' => [ + 'old' => ['bool', 'imap'=>'resource', 'folder'=>'string', 'message'=>'string', 'options='=>'string', 'internal_date='=>'string'], + 'new' => ['bool', 'imap'=>'resource', 'folder'=>'string', 'message'=>'string', 'options='=>'?string', 'internal_date='=>'?string'], + ], + 'imap_headerinfo' => [ + 'old' => ['stdClass|false', 'imap'=>'resource', 'message_num'=>'int', 'from_length='=>'int', 'subject_length='=>'int', 'default_host='=>'string|null'], + 'new' => ['stdClass|false', 'imap'=>'resource', 'message_num'=>'int', 'from_length='=>'int', 'subject_length='=>'int'], + ], + 'imap_mail' => [ + 'old' => ['bool', 'to'=>'string', 'subject'=>'string', 'message'=>'string', 'additional_headers='=>'string', 'cc='=>'string', 'bcc='=>'string', 'return_path='=>'string'], + 'new' => ['bool', 'to'=>'string', 'subject'=>'string', 'message'=>'string', 'additional_headers='=>'?string', 'cc='=>'?string', 'bcc='=>'?string', 'return_path='=>'?string'], + ], + 'ldap_add' => [ + 'old' => ['bool', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], + 'new' => ['bool', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], + ], + 'ldap_add_ext' => [ + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], + 'new' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], + ], + 'ldap_bind_ext' => [ + 'old' => ['resource|false', 'ldap'=>'resource', 'dn='=>'string|null', 'password='=>'string|null', 'controls='=>'array'], + 'new' => ['resource|false', 'ldap'=>'resource', 'dn='=>'string|null', 'password='=>'string|null', 'controls='=>'?array'], + ], + 'ldap_delete_ext' => [ + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'controls='=>'array'], + 'new' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'controls='=>'?array'], + ], 'ldap_exop_passwd' => [ 'old' => ['bool|string', 'ldap'=>'resource', 'user='=>'string', 'old_password='=>'string', 'new_password='=>'string', '&w_controls='=>'array'], 'new' => ['bool|string', 'ldap'=>'resource', 'user='=>'string', 'old_password='=>'string', 'new_password='=>'string', '&w_controls='=>'array|null'], ], + 'ldap_rename_ext' => [ + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'new_rdn'=>'string', 'new_parent'=>'string', 'delete_old_rdn'=>'bool', 'controls='=>'array'], + 'new' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'new_rdn'=>'string', 'new_parent'=>'string', 'delete_old_rdn'=>'bool', 'controls='=>'?array'], + ], + 'ldap_mod_add_ext' => [ + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], + 'new' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], + ], + 'ldap_mod_del_ext' => [ + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], + 'new' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], + ], + 'ldap_mod_replace_ext' => [ + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], + 'new' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], + ], 'ldap_set_rebind_proc' => [ 'old' => ['bool', 'ldap'=>'resource', 'callback'=>'callable'], 'new' => ['bool', 'ldap'=>'resource', 'callback'=>'?callable'], ], + 'ldap_sasl_bind' => [ + 'old' => ['bool', 'ldap'=>'resource', 'dn='=>'string', 'password='=>'string', 'mech='=>'string', 'realm='=>'string', 'authc_id='=>'string', 'authz_id='=>'string', 'props='=>'string'], + 'new' => ['bool', 'ldap'=>'resource', 'dn='=>'?string', 'password='=>'?string', 'mech='=>'?string', 'realm='=>'?string', 'authc_id='=>'?string', 'authz_id='=>'?string', 'props='=>'?string'], + ], + 'libxml_use_internal_errors' => [ + 'old' => ['bool', 'use_errors='=>'bool'], + 'new' => ['bool', 'use_errors='=>'?bool'], + ], + 'locale_get_display_language' => [ + 'old' => ['string', 'locale'=>'string', 'displayLocale='=>'string'], + 'new' => ['string', 'locale'=>'string', 'displayLocale='=>'?string'], + ], + 'locale_get_display_name' => [ + 'old' => ['string', 'locale'=>'string', 'displayLocale='=>'string'], + 'new' => ['string', 'locale'=>'string', 'displayLocale='=>'?string'], + ], + 'locale_get_display_region' => [ + 'old' => ['string', 'locale'=>'string', 'displayLocale='=>'string'], + 'new' => ['string', 'locale'=>'string', 'displayLocale='=>'?string'], + ], + 'locale_get_display_script' => [ + 'old' => ['string', 'locale'=>'string', 'displayLocale='=>'string'], + 'new' => ['string', 'locale'=>'string', 'displayLocale='=>'?string'], + ], + 'locale_get_display_variant' => [ + 'old' => ['string', 'locale'=>'string', 'displayLocale='=>'string'], + 'new' => ['string', 'locale'=>'string', 'displayLocale='=>'?string'], + ], + 'localtime' => [ + 'old' => ['array', 'timestamp='=>'int', 'associative='=>'bool'], + 'new' => ['array', 'timestamp='=>'?int', 'associative='=>'bool'], + ], 'mb_check_encoding' => [ 'old' => ['bool', 'value='=>'array|string', 'encoding='=>'string'], 'new' => ['bool', 'value='=>'array|string|null', 'encoding='=>'string|null'], @@ -1125,6 +1433,10 @@ 'old' => ['int', 'haystack'=>'string', 'needle'=>'string', 'encoding='=>'string'], 'new' => ['int', 'haystack'=>'string', 'needle'=>'string', 'encoding='=>'string|null'], ], + 'mhash' => [ + 'old' => ['string', 'algo'=>'int', 'data'=>'string', 'key='=>'string'], + 'new' => ['string', 'algo'=>'int', 'data'=>'string', 'key='=>'?string'], + ], 'mktime' => [ 'old' => ['int|false', 'hour='=>'int', 'minute='=>'int', 'second='=>'int', 'month='=>'int', 'day='=>'int', 'year='=>'int'], 'new' => ['int|false', 'hour'=>'int', 'minute='=>'int|null', 'second='=>'int|null', 'month='=>'int|null', 'day='=>'int|null', 'year='=>'int|null'], @@ -1169,10 +1481,30 @@ 'old' => ['string', 'num'=>'float|int', 'decimals='=>'int'], 'new' => ['string', 'num'=>'float|int', 'decimals='=>'int', 'decimal_separator='=>'?string', 'thousands_separator='=>'?string'], ], + 'numfmt_create' => [ + 'old' => ['NumberFormatter|null', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], + 'new' => ['NumberFormatter|null', 'locale'=>'string', 'style'=>'int', 'pattern='=>'?string'], + ], 'ob_implicit_flush' => [ 'old' => ['void', 'enable='=>'int'], 'new' => ['void', 'enable='=>'bool'], ], + 'odbc_exec' => [ + 'old' => ['resource', 'odbc'=>'resource', 'query'=>'string', 'flags='=>'int'], + 'new' => ['resource', 'odbc'=>'resource', 'query'=>'string'], + ], + 'odbc_fetch_row' => [ + 'old' => ['bool', 'statement'=>'resource', 'row='=>'int'], + 'new' => ['bool', 'statement'=>'resource', 'row='=>'?int'], + ], + 'odbc_do' => [ + 'old' => ['resource', 'odbc'=>'resource', 'query'=>'string', 'flags='=>'int'], + 'new' => ['resource', 'odbc'=>'resource', 'query'=>'string'], + ], + 'odbc_tables' => [ + 'old' => ['resource|false', 'odbc'=>'resource', 'catalog='=>'?string', 'schema='=>'string', 'table='=>'string', 'types='=>'string'], + 'new' => ['resource|false', 'odbc'=>'resource', 'catalog='=>'?string', 'schema='=>'?string', 'table='=>'?string', 'types='=>'?string'], + ], 'openssl_csr_export' => [ 'old' => ['bool', 'csr'=>'string|resource', '&w_output'=>'string', 'no_text='=>'bool'], 'new' => ['bool', 'csr'=>'OpenSSLCertificateSigningRequest|string', '&w_output'=>'string', 'no_text='=>'bool'], @@ -1237,6 +1569,10 @@ 'old' => ['bool', 'input_filename'=>'string', 'output_filename'=>'string', 'certificate'=>'string|resource', 'private_key'=>'string|resource|array', 'headers'=>'array', 'flags='=>'int', 'untrusted_certificates_filename='=>'string'], 'new' => ['bool', 'input_filename'=>'string', 'output_filename'=>'string', 'certificate'=>'OpenSSLCertificate|string', 'private_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'headers'=>'array|null', 'flags='=>'int', 'untrusted_certificates_filename='=>'string|null'], ], + 'openssl_pkcs7_verify' => [ + 'old' => ['bool|int', 'input_filename'=>'string', 'flags'=>'int', 'signers_certificates_filename='=>'string', 'ca_info='=>'array', 'untrusted_certificates_filename='=>'string', 'content='=>'string', 'output_filename='=>'string'], + 'new' => ['bool|int', 'input_filename'=>'string', 'flags'=>'int', 'signers_certificates_filename='=>'?string', 'ca_info='=>'array', 'untrusted_certificates_filename='=>'?string', 'content='=>'?string', 'output_filename='=>'?string'], + ], 'openssl_pkey_derive' => [ 'old' => ['string|false', 'public_key'=>'mixed', 'private_key'=>'mixed', 'key_length='=>'?int'], 'new' => ['string|false', 'public_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'private_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'key_length='=>'int'], @@ -1345,14 +1681,130 @@ 'old' => ['string|false', 'password'=>'string', 'algo'=>'int|string|null', 'options='=>'array'], 'new' => ['string', 'password'=>'string', 'algo'=>'int|string|null', 'options='=>'array'], ], + 'pcntl_async_signals' => [ + 'old' => ['bool', 'enable='=>'bool'], + 'new' => ['bool', 'enable='=>'?bool'], + ], + 'pcntl_getpriority' => [ + 'old' => ['int', 'process_id='=>'int', 'mode='=>'int'], + 'new' => ['int', 'process_id='=>'?int', 'mode='=>'int'], + ], + 'pcntl_setpriority' => [ + 'old' => ['bool', 'priority'=>'int', 'process_id='=>'int', 'mode='=>'int'], + 'new' => ['bool', 'priority'=>'int', 'process_id='=>'?int', 'mode='=>'int'], + ], + 'pfsockopen' => [ + 'old' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'float'], + 'new' => ['resource|false', 'hostname'=>'string', 'port='=>'int', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'?float'], + ], + 'pg_client_encoding' => [ + 'old' => ['string', 'connection='=>'resource'], + 'new' => ['string', 'connection='=>'?resource'], + ], + 'pg_close' => [ + 'old' => ['bool', 'connection='=>'resource'], + 'new' => ['bool', 'connection='=>'?resource'], + ], + 'pg_dbname' => [ + 'old' => ['string', 'connection='=>'resource'], + 'new' => ['string', 'connection='=>'?resource'], + ], + 'pg_end_copy' => [ + 'old' => ['bool', 'connection='=>'resource'], + 'new' => ['bool', 'connection='=>'?resource'], + ], + 'pg_last_error' => [ + 'old' => ['string', 'connection='=>'resource'], + 'new' => ['string', 'connection='=>'?resource'], + ], + 'pg_lo_write' => [ + 'old' => ['int|false', 'lob'=>'resource', 'data'=>'string', 'length='=>'int'], + 'new' => ['int|false', 'lob'=>'resource', 'data'=>'string', 'length='=>'?int'], + ], + 'pg_options' => [ + 'old' => ['string', 'connection='=>'resource'], + 'new' => ['string', 'connection='=>'?resource'], + ], + 'pg_ping' => [ + 'old' => ['bool', 'connection='=>'resource'], + 'new' => ['bool', 'connection='=>'?resource'], + ], + 'pg_port' => [ + 'old' => ['string', 'connection='=>'resource'], + 'new' => ['string', 'connection='=>'?resource'], + ], + 'pg_trace' => [ + 'old' => ['bool', 'filename'=>'string', 'mode='=>'string', 'connection='=>'resource'], + 'new' => ['bool', 'filename'=>'string', 'mode='=>'string', 'connection='=>'?resource'], + ], + 'pg_tty' => [ + 'old' => ['string', 'connection='=>'resource'], + 'new' => ['string', 'connection='=>'?resource'], + ], + 'pg_untrace' => [ + 'old' => ['bool', 'connection='=>'resource'], + 'new' => ['bool', 'connection='=>'?resource'], + ], + 'pg_version' => [ + 'old' => ['array', 'connection='=>'resource'], + 'new' => ['array', 'connection='=>'?resource'], + ], + 'phpversion' => [ + 'old' => ['string|false', 'extension='=>'string'], + 'new' => ['string|false', 'extension='=>'?string'], + ], 'proc_get_status' => [ 'old' => ['array{command: string, pid: int, running: bool, signaled: bool, stopped: bool, exitcode: int, termsig: int, stopsig: int}|false', 'process'=>'resource'], 'new' => ['array{command: string, pid: int, running: bool, signaled: bool, stopped: bool, exitcode: int, termsig: int, stopsig: int}', 'process'=>'resource'], ], + 'readline_info' => [ + 'old' => ['mixed', 'var_name='=>'string', 'value='=>'string|int|bool'], + 'new' => ['mixed', 'var_name='=>'?string', 'value='=>'string|int|bool|null'], + ], + 'readline_read_history' => [ + 'old'=> ['bool', 'filename='=>'string'], + 'new'=> ['bool', 'filename='=>'?string'], + ], + 'readline_write_history' => [ + 'old' => ['bool', 'filename='=>'string'], + 'new' => ['bool', 'filename='=>'?string'], + ], + 'sapi_windows_vt100_support' => [ + 'old' => ['bool', 'stream'=>'resource', 'enable='=>'bool'], + 'new' => ['bool', 'stream'=>'resource', 'enable='=>'?bool'], + ], + 'session_cache_expire' => [ + 'old' => ['int', 'value='=>'int'], + 'new' => ['int', 'value='=>'?int'], + ], + 'session_cache_limiter' => [ + 'old' => ['string', 'value='=>'string'], + 'new' => ['string', 'value='=>'?string'], + ], + 'session_id' => [ + 'old' => ['string|false', 'id='=>'string'], + 'new' => ['string|false', 'id='=>'?string'], + ], + 'session_module_name' => [ + 'old' => ['string', 'module='=>'string'], + 'new' => ['string', 'module='=>'?string'], + ], + 'session_name' => [ + 'old' => ['string|false', 'name='=>'string'], + 'new' => ['string|false', 'name='=>'?string'], + ], + 'session_save_path' => [ + 'old' => ['string', 'path='=>'string'], + 'new' => ['string', 'path='=>'?string'], + ], 'session_set_cookie_params' => [ 'old' => ['bool', 'lifetime'=>'int', 'path='=>'string', 'domain='=>'string', 'secure='=>'bool', 'httponly='=>'bool'], 'new' => ['bool', 'lifetime'=>'int', 'path='=>'?string', 'domain='=>'?string', 'secure='=>'?bool', 'httponly='=>'?bool'], ], + 'shm_attach' => [ + 'old' => ['resource|false', 'key'=>'int', 'size='=>'int', 'permissions='=>'int'], + 'new' => ['SysvSharedMemory|false', 'key'=>'int', 'size='=>'?int', 'permissions='=>'int'], + ], 'socket_accept' => [ 'old' => ['resource|false', 'socket'=>'resource'], 'new' => ['Socket|false', 'socket'=>'Socket'], @@ -1379,7 +1831,7 @@ ], 'socket_clear_error' => [ 'old' => ['void', 'socket='=>'resource'], - 'new' => ['void', 'socket='=>'Socket'], + 'new' => ['void', 'socket='=>'?Socket'], ], 'socket_close' => [ 'old' => ['void', 'socket'=>'resource'], @@ -1431,7 +1883,7 @@ ], 'socket_last_error' => [ 'old' => ['int', 'socket='=>'resource'], - 'new' => ['int', 'socket='=>'Socket'], + 'new' => ['int', 'socket='=>'?Socket'], ], 'socket_listen' => [ 'old' => ['bool', 'socket'=>'resource', 'backlog='=>'int'], @@ -1513,10 +1965,58 @@ 'old' => ['resource|false', 'info_id'=>'string'], 'new' => ['Socket|false', 'info_id'=>'string'], ], + 'spl_autoload' => [ + 'old' => ['void', 'class'=>'string', 'file_extensions='=>'string'], + 'new' => ['void', 'class'=>'string', 'file_extensions='=>'?string'], + ], + 'spl_autoload_extensions' => [ + 'old' => ['string', 'file_extensions='=>'string'], + 'new' => ['string', 'file_extensions='=>'?string'], + ], + 'spl_autoload_register' => [ + 'old' => ['bool', 'callback='=>'callable(string):void', 'throw='=>'bool', 'prepend='=>'bool'], + 'new' => ['bool', 'callback='=>'callable(string):void|null', 'throw='=>'bool', 'prepend='=>'bool'], + ], + 'str_word_count' => [ + 'old' => ['array|int', 'string'=>'string', 'format='=>'int', 'characters='=>'string'], + 'new' => ['array|int', 'string'=>'string', 'format='=>'int', 'characters='=>'?string'], + ], 'strchr' => [ 'old' => ['string|false', 'haystack'=>'string', 'needle'=>'string|int', 'before_needle='=>'bool'], 'new' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'before_needle='=>'bool'], ], + 'strcspn' => [ + 'old' => ['int', 'string'=>'string', 'characters'=>'string', 'offset='=>'int', 'length='=>'int'], + 'new' => ['int', 'string'=>'string', 'characters'=>'string', 'offset='=>'int', 'length='=>'?int'], + ], + 'stream_context_create' => [ + 'old' => ['resource', 'options='=>'array', 'params='=>'array'], + 'new' => ['resource', 'options='=>'?array', 'params='=>'?array'], + ], + 'stream_context_get_default' => [ + 'old' => ['resource', 'options='=>'array'], + 'new' => ['resource', 'options='=>'?array'], + ], + 'stream_copy_to_stream' => [ + 'old' => ['int|false', 'from'=>'resource', 'to'=>'resource', 'length='=>'int', 'offset='=>'int'], + 'new' => ['int|false', 'from'=>'resource', 'to'=>'resource', 'length='=>'?int', 'offset='=>'int'], + ], + 'stream_get_contents' => [ + 'old' => ['string|false', 'stream'=>'resource', 'length='=>'int', 'offset='=>'int'], + 'new' => ['string|false', 'stream'=>'resource', 'length='=>'?int', 'offset='=>'int'], + ], + 'stream_socket_accept' => [ + 'old' => ['resource|false', 'socket'=>'resource', 'timeout='=>'float', '&w_peer_name='=>'string'], + 'new' => ['resource|false', 'socket'=>'resource', 'timeout='=>'?float', '&w_peer_name='=>'string'], + ], + 'stream_socket_client' => [ + 'old' => ['resource|false', 'address'=>'string', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'float', 'flags='=>'int', 'context='=>'resource'], + 'new' => ['resource|false', 'address'=>'string', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'?float', 'flags='=>'int', 'context='=>'?resource'], + ], + 'stream_socket_enable_crypto' => [ + 'old' => ['int|bool', 'stream'=>'resource', 'enable'=>'bool', 'crypto_method='=>'?int', 'session_stream='=>'resource'], + 'new' => ['int|bool', 'stream'=>'resource', 'enable'=>'bool', 'crypto_method='=>'?int', 'session_stream='=>'?resource'], + ], 'strftime' => [ 'old' => ['string|false', 'format'=>'string', 'timestamp='=>'int'], 'new' => ['string|false', 'format'=>'string', 'timestamp='=>'?int'], @@ -1549,10 +2049,46 @@ 'old' => ['int|false', 'haystack'=>'string', 'needle'=>'string|int', 'offset='=>'int'], 'new' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'], ], + 'strspn' => [ + 'old' => ['int', 'string'=>'string', 'characters'=>'string', 'offset='=>'int', 'length='=>'int'], + 'new' => ['int', 'string'=>'string', 'characters'=>'string', 'offset='=>'int', 'length='=>'?int'], + ], 'strstr' => [ 'old' => ['string|false', 'haystack'=>'string', 'needle'=>'string|int', 'before_needle='=>'bool'], 'new' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'before_needle='=>'bool'], ], + 'strtotime' => [ + 'old' => ['int|false', 'datetime'=>'string', 'baseTimestamp='=>'int'], + 'new' => ['int|false', 'datetime'=>'string', 'baseTimestamp='=>'?int'], + ], + 'substr_compare' => [ + 'old' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset'=>'int', 'length='=>'int', 'case_insensitive='=>'bool'], + 'new' => ['int', 'haystack'=>'string', 'needle'=>'string', 'offset'=>'int', 'length='=>'?int', 'case_insensitive='=>'bool'], + ], + 'substr_count' => [ + 'old' => ['int', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int', 'length='=>'int'], + 'new' => ['int', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int', 'length='=>'?int'], + ], + 'substr' => [ + 'old' => ['string|false', 'string'=>'string', 'offset'=>'int', 'length='=>'int'], + 'new' => ['string', 'string'=>'string', 'offset'=>'int', 'length='=>'?int'], + ], + 'tidy_parse_file' => [ + 'old' => ['tidy', 'filename'=>'string', 'config='=>'array|string', 'encoding='=>'string', 'useIncludePath='=>'bool'], + 'new' => ['tidy', 'filename'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string', 'useIncludePath='=>'bool'], + ], + 'tidy_parse_string' => [ + 'old' => ['tidy', 'string'=>'string', 'config='=>'array|string', 'encoding='=>'string'], + 'new' => ['tidy', 'string'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string'], + ], + 'tidy_repair_file' => [ + 'old' => ['string', 'filename'=>'string', 'config='=>'array|string', 'encoding='=>'string', 'useIncludePath='=>'bool'], + 'new' => ['string', 'filename'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string', 'useIncludePath='=>'bool'], + ], + 'tidy_repair_string' => [ + 'old' => ['string', 'string'=>'string', 'config='=>'array|string', 'encoding='=>'string'], + 'new' => ['string', 'string'=>'string', 'config='=>'array|string|null', 'encoding='=>'?string'], + ], 'timezone_identifiers_list' => [ 'old' => ['list|false', 'timezoneGroup='=>'int', 'countryCode='=>'?string'], 'new' => ['list', 'timezoneGroup='=>'int', 'countryCode='=>'?string'], @@ -1561,6 +2097,18 @@ 'old' => ['int|false', 'object'=>'DateTimeZone', 'datetime'=>'DateTimeInterface'], 'new' => ['int', 'object'=>'DateTimeZone', 'datetime'=>'DateTimeInterface'], ], + 'touch' => [ + 'old' => ['bool', 'filename'=>'string', 'mtime='=>'int', 'atime='=>'int'], + 'new' => ['bool', 'filename'=>'string', 'mtime='=>'?int', 'atime='=>'?int'], + ], + 'umask' => [ + 'old' => ['int', 'mask='=>'int'], + 'new' => ['int', 'mask='=>'?int'], + ], + 'unixtojd' => [ + 'old' => ['int', 'timestamp='=>'int'], + 'new' => ['int', 'timestamp='=>'?int'], + ], 'xml_get_current_byte_index' => [ 'old' => ['int|false', 'parser'=>'resource'], 'new' => ['int|false', 'parser'=>'XMLParser'], @@ -1587,11 +2135,11 @@ ], 'xml_parser_create' => [ 'old' => ['resource', 'encoding='=>'string'], - 'new' => ['XMLParser', 'encoding='=>'string'], + 'new' => ['XMLParser', 'encoding='=>'?string'], ], 'xml_parser_create_ns' => [ 'old' => ['resource', 'encoding='=>'string', 'separator='=>'string'], - 'new' => ['XMLParser', 'encoding='=>'string', 'separator='=>'string'], + 'new' => ['XMLParser', 'encoding='=>'?string', 'separator='=>'string'], ], 'xml_parser_free' => [ 'old' => ['bool', 'parser'=>'resource'], @@ -1834,6 +2382,7 @@ 'SplFileObject::fgetss' => ['string|false', 'allowable_tags='=>'string'], 'create_function' => ['string', 'args'=>'string', 'code'=>'string'], 'each' => ['array{0:int|string,key:int|string,1:mixed,value:mixed}', '&r_arr'=>'array'], + 'fgetss' => ['string|false', 'fp'=>'resource', 'length='=>'int', 'allowable_tags='=>'string'], 'gmp_random' => ['GMP', 'limiter='=>'int'], 'gzgetss' => ['string|false', 'zp'=>'resource', 'length'=>'int', 'allowable_tags='=>'string'], 'image2wbmp' => ['bool', 'im'=>'resource', 'filename='=>'?string', 'threshold='=>'int'], diff --git a/dictionaries/CallMap_81_delta.php b/dictionaries/CallMap_81_delta.php index f22c57fe679..e3986526020 100644 --- a/dictionaries/CallMap_81_delta.php +++ b/dictionaries/CallMap_81_delta.php @@ -71,8 +71,8 @@ 'new' => ['string|false', 'finfo'=>'finfo', 'filename'=>'string', 'flags='=>'int', 'context='=>'resource'], ], 'finfo_open' => [ - 'old' => ['resource|false', 'flags='=>'int', 'magic_database='=>'string'], - 'new' => ['finfo|false', 'flags='=>'int', 'magic_database='=>'string'], + 'old' => ['resource|false', 'flags='=>'int', 'magic_database='=>'?string'], + 'new' => ['finfo|false', 'flags='=>'int', 'magic_database='=>'?string'], ], 'finfo_set_flags' => [ 'old' => ['bool', 'finfo'=>'resource', 'flags'=>'int'], @@ -243,8 +243,8 @@ 'new' => ['bool', 'image'=>'GdImage', 'enable='=>'bool|null'], ], 'imap_append' => [ - 'old' => ['bool', 'imap'=>'resource', 'folder'=>'string', 'message'=>'string', 'options='=>'string', 'internal_date='=>'string'], - 'new' => ['bool', 'imap'=>'IMAP\Connection', 'folder'=>'string', 'message'=>'string', 'options='=>'string', 'internal_date='=>'string'], + 'old' => ['bool', 'imap'=>'resource', 'folder'=>'string', 'message'=>'string', 'options='=>'?string', 'internal_date='=>'?string'], + 'new' => ['bool', 'imap'=>'IMAP\Connection', 'folder'=>'string', 'message'=>'string', 'options='=>'?string', 'internal_date='=>'?string'], ], 'imap_body' => [ 'old' => ['string|false', 'imap'=>'resource', 'message_num'=>'int', 'flags='=>'int'], @@ -335,8 +335,8 @@ 'new' => ['array|false', 'imap'=>'IMAP\Connection', 'reference'=>'string', 'pattern'=>'string'], ], 'imap_headerinfo' => [ - 'old' => ['stdClass|false', 'imap'=>'resource', 'message_num'=>'int', 'from_length='=>'int', 'subject_length='=>'int', 'default_host='=>'string|null'], - 'new' => ['stdClass|false', 'imap'=>'IMAP\Connection', 'message_num'=>'int', 'from_length='=>'int', 'subject_length='=>'int', 'default_host='=>'string|null'], + 'old' => ['stdClass|false', 'imap'=>'resource', 'message_num'=>'int', 'from_length='=>'int', 'subject_length='=>'int'], + 'new' => ['stdClass|false', 'imap'=>'IMAP\Connection', 'message_num'=>'int', 'from_length='=>'int', 'subject_length='=>'int'], ], 'imap_headers' => [ 'old' => ['array|false', 'imap'=>'resource'], @@ -462,6 +462,10 @@ 'old' => ['bool', 'imap'=>'resource', 'mailbox'=>'string'], 'new' => ['bool', 'imap'=>'IMAP\Connection', 'mailbox'=>'string'], ], + 'ini_alter' => [ + 'old' => ['string|false', 'option'=>'string', 'value'=>'string'], + 'new' => ['string|false', 'option'=>'string', 'value'=>'string|int|float|bool|null'], + ], 'ini_set' => [ 'old' => ['string|false', 'option'=>'string', 'value'=>'string'], 'new' => ['string|false', 'option'=>'string', 'value'=>'string|int|float|bool|null'], @@ -475,11 +479,11 @@ 'new' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType='=>'int', 'timeType='=>'int', 'timezone='=>'IntlTimeZone|DateTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'?string'], ], 'ldap_add' => [ - 'old' => ['bool', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], + 'old' => ['bool', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], 'new' => ['bool', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], ], 'ldap_add_ext' => [ - 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], 'new' => ['LDAP\Result|false', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], ], 'ldap_bind' => [ @@ -487,7 +491,7 @@ 'new' => ['bool', 'ldap'=>'LDAP\Connection', 'dn='=>'string|null', 'password='=>'string|null'], ], 'ldap_bind_ext' => [ - 'old' => ['resource|false', 'ldap'=>'resource', 'dn='=>'string|null', 'password='=>'string|null', 'controls='=>'array'], + 'old' => ['resource|false', 'ldap'=>'resource', 'dn='=>'string|null', 'password='=>'string|null', 'controls='=>'?array'], 'new' => ['LDAP\Result|false', 'ldap'=>'LDAP\Connection', 'dn='=>'string|null', 'password='=>'string|null', 'controls='=>'?array'], ], 'ldap_close' => [ @@ -499,8 +503,8 @@ 'new' => ['bool|int', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'attribute'=>'string', 'value'=>'string', 'controls='=>'?array'], ], 'ldap_connect' => [ - 'old' => ['resource|false', 'uri='=>'string', 'port='=>'int', 'wallet='=>'string', 'password='=>'string', 'auth_mode='=>'int'], - 'new' => ['LDAP\Connection|false', 'uri='=>'string', 'port='=>'int', 'wallet='=>'string', 'password='=>'string', 'auth_mode='=>'int'], + 'old' => ['resource|false', 'uri='=>'?string', 'port='=>'int', 'wallet='=>'string', 'password='=>'string', 'auth_mode='=>'int'], + 'new' => ['LDAP\Connection|false', 'uri='=>'?string', 'port='=>'int', 'wallet='=>'string', 'password='=>'string', 'auth_mode='=>'int'], ], 'ldap_count_entries' => [ 'old' => ['int|false', 'ldap'=>'resource', 'result'=>'resource'], @@ -511,7 +515,7 @@ 'new' => ['bool', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'controls='=>'?array'], ], 'ldap_delete_ext' => [ - 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'controls='=>'array'], + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'controls='=>'?array'], 'new' => ['LDAP\Result|false', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'controls='=>'?array'], ], 'ldap_errno' => [ @@ -523,8 +527,8 @@ 'new' => ['string', 'ldap'=>'LDAP\Connection'], ], 'ldap_exop' => [ - 'old' => ['mixed', 'ldap'=>'resource', 'reqoid'=>'string', 'reqdata='=>'string', 'serverctrls='=>'array|null', '&w_response_data='=>'string', '&w_response_oid='=>'string'], - 'new' => ['mixed', 'ldap'=>'LDAP\Connection', 'request_oid'=>'string', 'request_data='=>'string', 'controls='=>'?array', '&w_response_data='=>'string', '&w_response_oid='=>'string'], + 'old' => ['resource|bool', 'ldap'=>'resource', 'request_oid'=>'string', 'request_data='=>'?string', 'controls='=>'array|null', '&w_response_data='=>'string', '&w_response_oid='=>'string'], + 'new' => ['LDAP\Result|bool', 'ldap'=>'LDAP\Connection', 'request_oid'=>'string', 'request_data='=>'?string', 'controls='=>'?array', '&w_response_data='=>'string', '&w_response_oid='=>'string'], ], 'ldap_exop_passwd' => [ 'old' => ['bool|string', 'ldap'=>'resource', 'user='=>'string', 'old_password='=>'string', 'new_password='=>'string', '&w_controls='=>'array|null'], @@ -587,7 +591,7 @@ 'new' => ['bool', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], ], 'ldap_mod_add_ext' => [ - 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], 'new' => ['LDAP\Result|false', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], ], 'ldap_mod_del' => [ @@ -595,7 +599,7 @@ 'new' => ['bool', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], ], 'ldap_mod_del_ext' => [ - 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], 'new' => ['LDAP\Result|false', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], ], 'ldap_mod_replace' => [ @@ -603,7 +607,7 @@ 'new' => ['bool', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], ], 'ldap_mod_replace_ext' => [ - 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], 'new' => ['LDAP\Result|false', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], ], 'ldap_modify' => [ @@ -647,12 +651,12 @@ 'new' => ['bool', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'new_rdn'=>'string', 'new_parent'=>'string', 'delete_old_rdn'=>'bool', 'controls='=>'?array'], ], 'ldap_rename_ext' => [ - 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'new_rdn'=>'string', 'new_parent'=>'string', 'delete_old_rdn'=>'bool', 'controls='=>'array'], + 'old' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'new_rdn'=>'string', 'new_parent'=>'string', 'delete_old_rdn'=>'bool', 'controls='=>'?array'], 'new' => ['LDAP\Result|false', 'ldap'=>'LDAP\Connection', 'dn'=>'string', 'new_rdn'=>'string', 'new_parent'=>'string', 'delete_old_rdn'=>'bool', 'controls='=>'?array'], ], 'ldap_sasl_bind' => [ - 'old' => ['bool', 'ldap'=>'resource', 'dn='=>'string', 'password='=>'string', 'mech='=>'string', 'realm='=>'string', 'authc_id='=>'string', 'authz_id='=>'string', 'props='=>'string'], - 'new' => ['bool', 'ldap'=>'LDAP\Connection', 'dn='=>'string', 'password='=>'string', 'mech='=>'string', 'realm='=>'string', 'authc_id='=>'string', 'authz_id='=>'string', 'props='=>'string'], + 'old' => ['bool', 'ldap'=>'resource', 'dn='=>'?string', 'password='=>'?string', 'mech='=>'?string', 'realm='=>'?string', 'authc_id='=>'?string', 'authz_id='=>'?string', 'props='=>'?string'], + 'new' => ['bool', 'ldap'=>'LDAP\Connection', 'dn='=>'?string', 'password='=>'?string', 'mech='=>'?string', 'realm='=>'?string', 'authc_id='=>'?string', 'authz_id='=>'?string', 'props='=>'?string'], ], 'ldap_search' => [ 'old' => ['resource|false', 'ldap'=>'resource|resource[]', 'base'=>'string', 'filter'=>'string', 'attributes='=>'array', 'attributes_only='=>'int', 'sizelimit='=>'int', 'timelimit='=>'int', 'deref='=>'int'], @@ -667,8 +671,8 @@ 'new' => ['bool', 'ldap'=>'LDAP\Connection', 'callback'=>'?callable'], ], 'ldap_start_tls' => [ - 'old' => ['bool', 'ldap'=>'resource'], - 'new' => ['bool', 'ldap'=>'LDAP\Connection'], + 'old' => ['bool', 'ldap'=>'resource'], + 'new' => ['bool', 'ldap'=>'LDAP\Connection'], ], 'ldap_unbind' => [ 'old' => ['bool', 'ldap'=>'resource'], @@ -690,6 +694,10 @@ 'old' => ['bool'], 'new' => ['bool', 'params=' => 'list|null'], ], + 'openssl_decrypt' => [ + 'old' => ['string|false', 'data'=>'string', 'cipher_algo'=>'string', 'passphrase'=>'string', 'options='=>'int', 'iv='=>'string', 'tag='=>'string', 'aad='=>'string'], + 'new' => ['string|false', 'data'=>'string', 'cipher_algo'=>'string', 'passphrase'=>'string', 'options='=>'int', 'iv='=>'string', 'tag='=>'?string', 'aad='=>'string'], + ], 'pg_affected_rows' => [ 'old' => ['int', 'result' => 'resource'], 'new' => ['int', 'result' => '\PgSql\Result'], @@ -699,12 +707,12 @@ 'new' => ['bool', 'connection' => '\PgSql\Connection'], ], 'pg_client_encoding' => [ - 'old' => ['string', 'connection=' => 'resource'], - 'new' => ['string', 'connection=' => '\PgSql\Connection'], + 'old' => ['string', 'connection=' => '?resource'], + 'new' => ['string', 'connection=' => '?\PgSql\Connection'], ], 'pg_close' => [ - 'old' => ['bool', 'connection=' => 'resource'], - 'new' => ['bool', 'connection=' => '\PgSql\Connection'], + 'old' => ['bool', 'connection=' => '?resource'], + 'new' => ['bool', 'connection=' => '?\PgSql\Connection'], ], 'pg_connect' => [ 'old' => ['resource|false', 'connection_string' => 'string', 'flags=' => 'int'], @@ -743,16 +751,16 @@ 'new' => ['array|false', 'connection' => '\PgSql\Connection', 'table_name' => 'string', 'separator=' => 'string', 'null_as=' => 'string'], ], 'pg_dbname' => [ - 'old' => ['string', 'connection=' => 'resource'], - 'new' => ['string', 'connection=' => '\PgSql\Connection'], + 'old' => ['string', 'connection=' => '?resource'], + 'new' => ['string', 'connection=' => '?\PgSql\Connection'], ], 'pg_delete' => [ 'old' => ['string|bool', 'connection' => 'resource', 'table_name' => 'string', 'conditions' => 'array', 'flags=' => 'int'], 'new' => ['string|bool', 'connection' => '\PgSql\Connection', 'table_name' => 'string', 'conditions' => 'array', 'flags=' => 'int'], ], 'pg_end_copy' => [ - 'old' => ['bool', 'connection=' => 'resource'], - 'new' => ['bool', 'connection=' => '\PgSql\Connection'], + 'old' => ['bool', 'connection=' => '?resource'], + 'new' => ['bool', 'connection=' => '?\PgSql\Connection'], ], 'pg_escape_bytea' => [ 'old' => ['string', 'connection' => 'resource', 'string' => 'string'], @@ -876,15 +884,15 @@ ], 'pg_host' => [ 'old' => ['string', 'connection=' => 'resource'], - 'new' => ['string', 'connection=' => '\PgSql\Connection'], + 'new' => ['string', 'connection=' => '?\PgSql\Connection'], ], 'pg_insert' => [ 'old' => ['resource|string|false', 'connection' => 'resource', 'table_name' => 'string', 'values' => 'array', 'flags=' => 'int'], 'new' => ['\PgSql\Result|string|false', 'connection' => '\PgSql\Connection', 'table_name' => 'string', 'values' => 'array', 'flags=' => 'int'], ], 'pg_last_error' => [ - 'old' => ['string', 'connection=' => 'resource', 'operation=' => 'int'], - 'new' => ['string', 'connection=' => '\PgSql\Connection', 'operation=' => 'int'], + 'old' => ['string', 'connection=' => '?resource'], + 'new' => ['string', 'connection=' => '?\PgSql\Connection'], ], 'pg_last_notice' => [ 'old' => ['string|array|bool', 'connection' => 'resource', 'mode=' => 'int'], @@ -943,8 +951,8 @@ 'new' => ['bool', 'connection' => '\PgSql\Connection', 'oid' => 'int|string'], ], 'pg_lo_write' => [ - 'old' => ['int|false', 'lob' => 'resource', 'data' => 'string', 'length=' => 'int'], - 'new' => ['int|false', 'lob' => '\PgSql\Lob', 'data' => 'string', 'length=' => 'int'], + 'old' => ['int|false', 'lob' => 'resource', 'data' => 'string', 'length=' => '?int'], + 'new' => ['int|false', 'lob' => '\PgSql\Lob', 'data' => 'string', 'length=' => '?int'], ], 'pg_meta_data' => [ 'old' => ['array|false', 'connection' => 'resource', 'table_name' => 'string', 'extended=' => 'bool'], @@ -959,8 +967,8 @@ 'new' => ['int', 'result' => '\PgSql\Result'], ], 'pg_options' => [ - 'old' => ['string', 'connection=' => 'resource'], - 'new' => ['string', 'connection=' => '\PgSql\Connection'], + 'old' => ['string', 'connection=' => '?resource'], + 'new' => ['string', 'connection=' => '?\PgSql\Connection'], ], 'pg_parameter_status' => [ 'old' => ['string|false', 'connection' => 'resource', 'name' => 'string'], @@ -971,12 +979,12 @@ 'new' => ['\PgSql\Connection|false', 'connection_string' => 'string', 'flags=' => 'string', 'port=' => 'string|int', 'options=' => 'string', 'tty=' => 'string', 'database=' => 'string'], ], 'pg_ping' => [ - 'old' => ['bool', 'connection=' => 'resource'], - 'new' => ['bool', 'connection=' => '\PgSql\Connection'], + 'old' => ['bool', 'connection=' => '?resource'], + 'new' => ['bool', 'connection=' => '?\PgSql\Connection'], ], 'pg_port' => [ - 'old' => ['int', 'connection=' => 'resource'], - 'new' => ['int', 'connection=' => '\PgSql\Connection'], + 'old' => ['string', 'connection=' => '?resource'], + 'new' => ['string', 'connection=' => '?\PgSql\Connection'], ], 'pg_prepare' => [ 'old' => ['resource|false', 'connection' => 'resource', 'statement_name' => 'string', 'query' => 'string'], @@ -1055,28 +1063,28 @@ 'new' => ['resource|false', 'connection' => '\PgSql\Connection'], ], 'pg_trace' => [ - 'old' => ['bool', 'filename' => 'string', 'mode=' => 'string', 'connection=' => 'resource'], - 'new' => ['bool', 'filename' => 'string', 'mode=' => 'string', 'connection=' => '\PgSql\Connection'], + 'old' => ['bool', 'filename' => 'string', 'mode=' => 'string', 'connection=' => '?resource'], + 'new' => ['bool', 'filename' => 'string', 'mode=' => 'string', 'connection=' => '?\PgSql\Connection'], ], 'pg_transaction_status' => [ 'old' => ['int', 'connection' => 'resource'], 'new' => ['int', 'connection' => '\PgSql\Connection'], ], 'pg_tty' => [ - 'old' => ['string', 'connection=' => 'resource'], - 'new' => ['string', 'connection=' => '\PgSql\Connection'], + 'old' => ['string', 'connection=' => '?resource'], + 'new' => ['string', 'connection=' => '?\PgSql\Connection'], ], 'pg_untrace' => [ - 'old' => ['bool', 'connection=' => 'resource'], - 'new' => ['bool', 'connection=' => '\PgSql\Connection'], + 'old' => ['bool', 'connection=' => '?resource'], + 'new' => ['bool', 'connection=' => '?\PgSql\Connection'], ], 'pg_update' => [ 'old' => ['string|bool', 'connection' => 'resource', 'table_name' => 'string', 'values' => 'array', 'conditions' => 'array', 'flags=' => 'int'], 'new' => ['string|bool', 'connection' => '\PgSql\Connection', 'table_name' => 'string', 'values' => 'array', 'conditions' => 'array', 'flags=' => 'int'], ], 'pg_version' => [ - 'old' => ['array', 'connection=' => 'resource'], - 'new' => ['array', 'connection=' => '\PgSql\Connection'], + 'old' => ['array', 'connection=' => '?resource'], + 'new' => ['array', 'connection=' => '?\PgSql\Connection'], ], 'pspell_add_to_personal' => [ 'old' => ['bool', 'dictionary'=>'int', 'word'=>'string'], @@ -1142,6 +1150,10 @@ 'old' => ['array', 'dictionary'=>'int', 'word'=>'string'], 'new' => ['array', 'dictionary'=>'PSpell\Dictionary', 'word'=>'string'], ], + 'stream_select' => [ + 'old' => ['int|false', '&rw_read'=>'?resource[]', '&rw_write'=>'?resource[]', '&rw_except'=>'?resource[]', 'seconds'=>'?int', 'microseconds='=>'int'], + 'new' => ['int|false', '&rw_read'=>'?resource[]', '&rw_write'=>'?resource[]', '&rw_except'=>'?resource[]', 'seconds'=>'?int', 'microseconds='=>'?int'], + ], ], 'removed' => [ diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index d5b0c624385..994dbd585d5 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -3171,12 +3171,12 @@ 'InfiniteIterator::rewind' => ['void'], 'InfiniteIterator::valid' => ['bool'], 'IntlBreakIterator::__construct' => ['void'], - 'IntlBreakIterator::createCharacterInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], + 'IntlBreakIterator::createCharacterInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlBreakIterator::createCodePointInstance' => ['IntlCodePointBreakIterator'], - 'IntlBreakIterator::createLineInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], - 'IntlBreakIterator::createSentenceInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], - 'IntlBreakIterator::createTitleInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], - 'IntlBreakIterator::createWordInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], + 'IntlBreakIterator::createLineInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], + 'IntlBreakIterator::createSentenceInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], + 'IntlBreakIterator::createTitleInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], + 'IntlBreakIterator::createWordInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlBreakIterator::current' => ['int'], 'IntlBreakIterator::first' => ['int'], 'IntlBreakIterator::following' => ['int', 'offset'=>'int'], @@ -3187,7 +3187,7 @@ 'IntlBreakIterator::getText' => ['string'], 'IntlBreakIterator::isBoundary' => ['bool', 'offset'=>'int'], 'IntlBreakIterator::last' => ['int'], - 'IntlBreakIterator::next' => ['int', 'offset='=>'int'], + 'IntlBreakIterator::next' => ['int', 'offset='=>'?int'], 'IntlBreakIterator::preceding' => ['int', 'offset'=>'int'], 'IntlBreakIterator::previous' => ['int'], 'IntlBreakIterator::setText' => ['bool', 'text'=>'string'], @@ -3195,7 +3195,7 @@ 'IntlCalendar::add' => ['bool', 'field'=>'int', 'amount'=>'int'], 'IntlCalendar::after' => ['bool', 'other'=>'IntlCalendar'], 'IntlCalendar::before' => ['bool', 'other'=>'IntlCalendar'], - 'IntlCalendar::clear' => ['bool', 'field='=>'int'], + 'IntlCalendar::clear' => ['bool', 'field='=>'?int'], 'IntlCalendar::createInstance' => ['IntlCalendar', 'timeZone='=>'mixed', 'locale='=>'string'], 'IntlCalendar::equals' => ['bool', 'other'=>'IntlCalendar'], 'IntlCalendar::fieldDifference' => ['int', 'when'=>'float', 'field'=>'int'], @@ -3226,7 +3226,7 @@ 'IntlCalendar::isEquivalentTo' => ['bool', 'other'=>'IntlCalendar'], 'IntlCalendar::isLenient' => ['bool'], 'IntlCalendar::isSet' => ['bool', 'field'=>'int'], - 'IntlCalendar::isWeekend' => ['bool', 'date='=>'float'], + 'IntlCalendar::isWeekend' => ['bool', 'date='=>'?float'], 'IntlCalendar::roll' => ['bool', 'field'=>'int', 'amountOrUpOrDown'=>'mixed'], 'IntlCalendar::set' => ['bool', 'field'=>'int', 'value'=>'int'], 'IntlCalendar::set\'1' => ['bool', 'year'=>'int', 'month'=>'int', 'dayOfMonth='=>'int', 'hour='=>'int', 'minute='=>'int', 'second='=>'int'], @@ -3298,12 +3298,12 @@ 'IntlChar::totitle' => ['mixed', 'codepoint'=>'mixed'], 'IntlChar::toupper' => ['mixed', 'codepoint'=>'mixed'], 'IntlCodePointBreakIterator::__construct' => ['void'], - 'IntlCodePointBreakIterator::createCharacterInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], + 'IntlCodePointBreakIterator::createCharacterInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlCodePointBreakIterator::createCodePointInstance' => ['IntlCodePointBreakIterator'], - 'IntlCodePointBreakIterator::createLineInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], - 'IntlCodePointBreakIterator::createSentenceInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], - 'IntlCodePointBreakIterator::createTitleInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], - 'IntlCodePointBreakIterator::createWordInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], + 'IntlCodePointBreakIterator::createLineInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], + 'IntlCodePointBreakIterator::createSentenceInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], + 'IntlCodePointBreakIterator::createTitleInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], + 'IntlCodePointBreakIterator::createWordInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlCodePointBreakIterator::current' => ['int'], 'IntlCodePointBreakIterator::first' => ['int'], 'IntlCodePointBreakIterator::following' => ['int', 'offset'=>'string'], @@ -3355,7 +3355,7 @@ 'IntlGregorianCalendar::add' => ['bool', 'field'=>'int', 'amount'=>'int'], 'IntlGregorianCalendar::after' => ['bool', 'other'=>'IntlCalendar'], 'IntlGregorianCalendar::before' => ['bool', 'other'=>'IntlCalendar'], - 'IntlGregorianCalendar::clear' => ['bool', 'field='=>'int'], + 'IntlGregorianCalendar::clear' => ['bool', 'field='=>'?int'], 'IntlGregorianCalendar::createInstance' => ['IntlGregorianCalendar', 'timeZone='=>'mixed', 'locale='=>'string'], 'IntlGregorianCalendar::equals' => ['bool', 'other'=>'IntlCalendar'], 'IntlGregorianCalendar::fieldDifference' => ['int', 'when'=>'float', 'field'=>'int'], @@ -3409,12 +3409,12 @@ 'IntlIterator::valid' => ['bool'], 'IntlPartsIterator::getBreakIterator' => ['IntlBreakIterator'], 'IntlRuleBasedBreakIterator::__construct' => ['void', 'rules'=>'string', 'areCompiled='=>'string'], - 'IntlRuleBasedBreakIterator::createCharacterInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], + 'IntlRuleBasedBreakIterator::createCharacterInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlRuleBasedBreakIterator::createCodePointInstance' => ['IntlCodePointBreakIterator'], - 'IntlRuleBasedBreakIterator::createLineInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], - 'IntlRuleBasedBreakIterator::createSentenceInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], - 'IntlRuleBasedBreakIterator::createTitleInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], - 'IntlRuleBasedBreakIterator::createWordInstance' => ['IntlRuleBasedBreakIterator', 'locale='=>'string'], + 'IntlRuleBasedBreakIterator::createLineInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], + 'IntlRuleBasedBreakIterator::createSentenceInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], + 'IntlRuleBasedBreakIterator::createTitleInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], + 'IntlRuleBasedBreakIterator::createWordInstance' => ['?IntlRuleBasedBreakIterator', 'locale='=>'?string'], 'IntlRuleBasedBreakIterator::current' => ['int'], 'IntlRuleBasedBreakIterator::first' => ['int'], 'IntlRuleBasedBreakIterator::following' => ['int', 'offset'=>'int'], @@ -3429,7 +3429,7 @@ 'IntlRuleBasedBreakIterator::getText' => ['string'], 'IntlRuleBasedBreakIterator::isBoundary' => ['bool', 'offset'=>'int'], 'IntlRuleBasedBreakIterator::last' => ['int'], - 'IntlRuleBasedBreakIterator::next' => ['int', 'offset='=>'int'], + 'IntlRuleBasedBreakIterator::next' => ['int', 'offset='=>'?int'], 'IntlRuleBasedBreakIterator::preceding' => ['int', 'offset'=>'int'], 'IntlRuleBasedBreakIterator::previous' => ['int'], 'IntlRuleBasedBreakIterator::setText' => ['bool', 'text'=>'string'], @@ -3619,7 +3619,7 @@ 'Locale::getPrimaryLanguage' => ['string', 'locale'=>'string'], 'Locale::getRegion' => ['string', 'locale'=>'string'], 'Locale::getScript' => ['string', 'locale'=>'string'], - 'Locale::lookup' => ['string', 'langtag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'default='=>'string'], + 'Locale::lookup' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'string'], 'Locale::parseLocale' => ['array', 'locale'=>'string'], 'Locale::setDefault' => ['bool', 'locale'=>'string'], 'LogicException::__clone' => ['void'], @@ -4480,7 +4480,7 @@ 'Normalizer::isNormalized' => ['bool', 'input'=>'string', 'form='=>'int'], 'Normalizer::normalize' => ['string', 'input'=>'string', 'form='=>'int'], 'NumberFormatter::__construct' => ['void', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], - 'NumberFormatter::create' => ['NumberFormatter|false', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], + 'NumberFormatter::create' => ['NumberFormatter|null', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], 'NumberFormatter::format' => ['string|false', 'num'=>'', 'type='=>'int'], 'NumberFormatter::formatCurrency' => ['string|false', 'num'=>'float', 'currency'=>'string'], 'NumberFormatter::getAttribute' => ['int|false', 'attr'=>'int'], @@ -5060,16 +5060,16 @@ 'Phar::buildFromIterator' => ['array', 'iter'=>'Iterator', 'base_directory='=>'string'], 'Phar::canCompress' => ['bool', 'method='=>'int'], 'Phar::canWrite' => ['bool'], - 'Phar::compress' => ['Phar', 'compression'=>'int', 'extension='=>'string'], + 'Phar::compress' => ['?Phar', 'compression'=>'int', 'extension='=>'string'], 'Phar::compressAllFilesBZIP2' => ['bool'], 'Phar::compressAllFilesGZ' => ['bool'], 'Phar::compressFiles' => ['void', 'compression'=>'int'], - 'Phar::convertToData' => ['PharData', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], - 'Phar::convertToExecutable' => ['Phar', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], + 'Phar::convertToData' => ['?PharData', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], + 'Phar::convertToExecutable' => ['?Phar', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], 'Phar::copy' => ['bool', 'oldfile'=>'string', 'newfile'=>'string'], 'Phar::count' => ['int'], 'Phar::createDefaultStub' => ['string', 'indexfile='=>'string', 'webindexfile='=>'string'], - 'Phar::decompress' => ['Phar', 'extension='=>'string'], + 'Phar::decompress' => ['?Phar', 'extension='=>'string'], 'Phar::decompressFiles' => ['bool'], 'Phar::delMetadata' => ['bool'], 'Phar::delete' => ['bool', 'entry'=>'string'], @@ -5090,7 +5090,7 @@ 'Phar::isFileFormat' => ['bool', 'format'=>'int'], 'Phar::isValidPharFilename' => ['bool', 'filename'=>'string', 'executable='=>'bool'], 'Phar::isWritable' => ['bool'], - 'Phar::loadPhar' => ['bool', 'filename'=>'string', 'alias='=>'string'], + 'Phar::loadPhar' => ['bool', 'filename'=>'string', 'alias='=>'?string'], 'Phar::mapPhar' => ['bool', 'alias='=>'string', 'dataoffset='=>'int'], 'Phar::mount' => ['void', 'pharpath'=>'string', 'externalpath'=>'string'], 'Phar::mungServer' => ['void', 'munglist'=>'array'], @@ -5115,10 +5115,10 @@ 'PharData::addFromString' => ['bool', 'localname'=>'string', 'contents'=>'string'], 'PharData::buildFromDirectory' => ['array', 'base_dir'=>'string', 'regex='=>'string'], 'PharData::buildFromIterator' => ['array', 'iter'=>'Iterator', 'base_directory='=>'string'], - 'PharData::compress' => ['PharData', 'compression'=>'int', 'extension='=>'string'], + 'PharData::compress' => ['?PharData', 'compression'=>'int', 'extension='=>'string'], 'PharData::compressFiles' => ['bool', 'compression'=>'int'], - 'PharData::convertToData' => ['PharData', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], - 'PharData::convertToExecutable' => ['Phar', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], + 'PharData::convertToData' => ['?PharData', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], + 'PharData::convertToExecutable' => ['?Phar', 'format='=>'int', 'compression='=>'int', 'extension='=>'string'], 'PharData::copy' => ['bool', 'oldfile'=>'string', 'newfile'=>'string'], 'PharData::decompress' => ['PharData', 'extension='=>'string'], 'PharData::decompressFiles' => ['bool'], @@ -5471,7 +5471,7 @@ 'RecursiveIteratorIterator::getDepth' => ['int'], 'RecursiveIteratorIterator::getInnerIterator' => ['RecursiveIterator'], 'RecursiveIteratorIterator::getMaxDepth' => ['int|false'], - 'RecursiveIteratorIterator::getSubIterator' => ['RecursiveIterator', 'level='=>'int'], + 'RecursiveIteratorIterator::getSubIterator' => ['?RecursiveIterator', 'level='=>'int'], 'RecursiveIteratorIterator::key' => ['mixed'], 'RecursiveIteratorIterator::next' => ['void'], 'RecursiveIteratorIterator::nextElement' => ['void'], @@ -5509,7 +5509,7 @@ 'RecursiveTreeIterator::getMaxDepth' => ['false|int'], 'RecursiveTreeIterator::getPostfix' => ['string'], 'RecursiveTreeIterator::getPrefix' => ['string'], - 'RecursiveTreeIterator::getSubIterator' => ['RecursiveIterator', 'level='=>'int'], + 'RecursiveTreeIterator::getSubIterator' => ['?RecursiveIterator', 'level='=>'int'], 'RecursiveTreeIterator::key' => ['string'], 'RecursiveTreeIterator::next' => ['void'], 'RecursiveTreeIterator::nextElement' => ['void'], @@ -6855,7 +6855,7 @@ 'SimpleXMLElement::__toString' => ['string'], 'SimpleXMLElement::addAttribute' => ['void', 'name'=>'string', 'value='=>'string', 'ns='=>'string'], 'SimpleXMLElement::addChild' => ['SimpleXMLElement', 'name'=>'string', 'value='=>'string', 'ns='=>'string'], - 'SimpleXMLElement::asXML' => ['bool', 'filename'=>'string'], + 'SimpleXMLElement::asXML' => ['string|bool', 'filename'=>'string'], 'SimpleXMLElement::asXML\'1' => ['string|false'], 'SimpleXMLElement::attributes' => ['?SimpleXMLElement', 'ns='=>'string', 'is_prefix='=>'bool'], 'SimpleXMLElement::children' => ['SimpleXMLElement', 'ns='=>'string', 'is_prefix='=>'bool'], @@ -6868,7 +6868,7 @@ 'SimpleXMLElement::offsetSet' => ['void', 'offset'=>'int|string', 'value'=>'mixed'], 'SimpleXMLElement::offsetUnset' => ['void', 'offset'=>'int|string'], 'SimpleXMLElement::registerXPathNamespace' => ['bool', 'prefix'=>'string', 'ns'=>'string'], - 'SimpleXMLElement::saveXML' => ['mixed', 'filename='=>'string'], + 'SimpleXMLElement::saveXML' => ['string|bool', 'filename='=>'string'], 'SimpleXMLElement::xpath' => ['SimpleXMLElement[]|false', 'path'=>'string'], 'SimpleXMLIterator::current' => ['?SimpleXMLIterator'], 'SimpleXMLIterator::getChildren' => ['SimpleXMLIterator'], @@ -8018,23 +8018,22 @@ 'Spoofchecker::setAllowedLocales' => ['void', 'locale_list'=>'string'], 'Spoofchecker::setChecks' => ['void', 'checks'=>'long'], 'Spoofchecker::setRestrictionLevel' => ['void', 'restriction_level'=>'int'], - 'Stomp::__construct' => ['void', 'broker='=>'string', 'username='=>'string', 'password='=>'string', 'headers='=>'array'], - 'Stomp::__destruct' => ['bool', 'link'=>''], - 'Stomp::abort' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], - 'Stomp::ack' => ['bool', 'msg'=>'', 'headers='=>'array', 'link='=>''], - 'Stomp::begin' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], - 'Stomp::commit' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], - 'Stomp::error' => ['string', 'link'=>''], - 'Stomp::getReadTimeout' => ['array', 'link'=>''], - 'Stomp::getSessionId' => ['string', 'link'=>''], - 'Stomp::hasFrame' => ['bool', 'link'=>''], - 'Stomp::readFrame' => ['array', 'class_name='=>'string', 'link='=>''], - 'Stomp::send' => ['bool', 'destination'=>'string', 'msg'=>'', 'headers='=>'array', 'link='=>''], - 'Stomp::setReadTimeout' => ['', 'seconds'=>'int', 'microseconds='=>'int', 'link='=>''], - 'Stomp::subscribe' => ['bool', 'destination'=>'string', 'headers='=>'array', 'link='=>''], - 'Stomp::unsubscribe' => ['bool', 'destination'=>'string', 'headers='=>'array', 'link='=>''], + 'Stomp::__construct' => ['void', 'broker='=>'string', 'username='=>'string', 'password='=>'string', 'headers='=>'?array'], + 'Stomp::abort' => ['bool', 'transaction_id'=>'string', 'headers='=>'?array'], + 'Stomp::ack' => ['bool', 'msg'=>'', 'headers='=>'?array'], + 'Stomp::begin' => ['bool', 'transaction_id'=>'string', 'headers='=>'?array'], + 'Stomp::commit' => ['bool', 'transaction_id'=>'string', 'headers='=>'?array'], + 'Stomp::error' => ['string'], + 'Stomp::getReadTimeout' => ['array'], + 'Stomp::getSessionId' => ['string'], + 'Stomp::hasFrame' => ['bool'], + 'Stomp::readFrame' => ['array', 'class_name='=>'string'], + 'Stomp::send' => ['bool', 'destination'=>'string', 'msg'=>'', 'headers='=>'?array'], + 'Stomp::setReadTimeout' => ['void', 'seconds'=>'int', 'microseconds='=>'?int'], + 'Stomp::subscribe' => ['bool', 'destination'=>'string', 'headers='=>'?array'], + 'Stomp::unsubscribe' => ['bool', 'destination'=>'string', 'headers='=>'?array'], 'StompException::getDetails' => ['string'], - 'StompFrame::__construct' => ['void', 'command='=>'string', 'headers='=>'array', 'body='=>'string'], + 'StompFrame::__construct' => ['void', 'command='=>'string', 'headers='=>'?array', 'body='=>'string'], 'Swish::__construct' => ['void', 'index_names'=>'string'], 'Swish::getMetaList' => ['array', 'index_name'=>'string'], 'Swish::getPropertyList' => ['array', 'index_name'=>'string'], @@ -8218,7 +8217,7 @@ 'TypeError::getPrevious' => ['Throwable|TypeError|null'], 'TypeError::getTrace' => ['list\',args?:array}>'], 'TypeError::getTraceAsString' => ['string'], - 'UConverter::__construct' => ['void', 'destination_encoding='=>'string', 'source_encoding='=>'string'], + 'UConverter::__construct' => ['void', 'destination_encoding='=>'?string', 'source_encoding='=>'?string'], 'UConverter::convert' => ['string', 'string'=>'string', 'reverse='=>'bool'], 'UConverter::fromUCallback' => ['mixed', 'reason'=>'int', 'source'=>'string', 'codePoint'=>'string', '&w_error'=>'int'], 'UConverter::getAliases' => ['array', 'name'=>'string'], @@ -8492,9 +8491,9 @@ 'XMLReader::readOuterXML' => ['string'], 'XMLReader::readString' => ['string'], 'XMLReader::setParserProperty' => ['bool', 'property'=>'int', 'value'=>'bool'], - 'XMLReader::setRelaxNGSchema' => ['bool', 'filename'=>'string'], - 'XMLReader::setRelaxNGSchemaSource' => ['bool', 'source'=>'string'], - 'XMLReader::setSchema' => ['bool', 'filename'=>'string'], + 'XMLReader::setRelaxNGSchema' => ['bool', 'filename'=>'?string'], + 'XMLReader::setRelaxNGSchemaSource' => ['bool', 'source'=>'?string'], + 'XMLReader::setSchema' => ['bool', 'filename'=>'?string'], 'XMLWriter::endAttribute' => ['bool'], 'XMLWriter::endCdata' => ['bool'], 'XMLWriter::endComment' => ['bool'], @@ -8544,7 +8543,7 @@ 'XSLTProcessor::removeParameter' => ['bool', 'namespace'=>'string', 'name'=>'string'], 'XSLTProcessor::setParameter' => ['bool', 'namespace'=>'string', 'name'=>'string', 'value'=>'string'], 'XSLTProcessor::setParameter\'1' => ['bool', 'namespace'=>'string', 'options'=>'array'], - 'XSLTProcessor::setProfiling' => ['bool', 'filename'=>'string'], + 'XSLTProcessor::setProfiling' => ['bool', 'filename'=>'?string'], 'XSLTProcessor::transformToDoc' => ['DOMDocument|false', 'document'=>'DOMNode'], 'XSLTProcessor::transformToURI' => ['int', 'document'=>'DOMDocument', 'uri'=>'string'], 'XSLTProcessor::transformToXML' => ['string|false', 'document'=>'DOMDocument'], @@ -9423,7 +9422,7 @@ 'ZipArchive::close' => ['bool'], 'ZipArchive::deleteIndex' => ['bool', 'index'=>'int'], 'ZipArchive::deleteName' => ['bool', 'name'=>'string'], - 'ZipArchive::extractTo' => ['bool', 'pathto'=>'string', 'files='=>'string[]|string'], + 'ZipArchive::extractTo' => ['bool', 'pathto'=>'string', 'files='=>'string[]|string|null'], 'ZipArchive::getArchiveComment' => ['string|false', 'flags='=>'int'], 'ZipArchive::getCommentIndex' => ['string|false', 'index'=>'int', 'flags='=>'int'], 'ZipArchive::getCommentName' => ['string|false', 'name'=>'string', 'flags='=>'int'], @@ -10238,8 +10237,8 @@ 'date_parse_from_format' => ['array', 'format'=>'string', 'datetime'=>'string'], 'date_sub' => ['DateTime|false', 'object'=>'DateTime', 'interval'=>'DateInterval'], 'date_sun_info' => ['array|false', 'timestamp'=>'int', 'latitude'=>'float', 'longitude'=>'float'], - 'date_sunrise' => ['mixed', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], - 'date_sunset' => ['mixed', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], + 'date_sunrise' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], + 'date_sunset' => ['string|int|float|false', 'timestamp'=>'int', 'returnFormat='=>'int', 'latitude='=>'float', 'longitude='=>'float', 'zenith='=>'float', 'utcOffset='=>'float'], 'date_time_set' => ['DateTime|false', 'object'=>'', 'hour'=>'', 'minute'=>'', 'second='=>'', 'microsecond='=>''], 'date_timestamp_get' => ['int', 'object'=>'DateTimeInterface'], 'date_timestamp_set' => ['DateTime|false', 'object'=>'DateTime', 'timestamp'=>'int'], @@ -10247,7 +10246,7 @@ 'date_timezone_set' => ['DateTime|false', 'object'=>'DateTime', 'timezone'=>'DateTimeZone'], 'datefmt_create' => ['?IntlDateFormatter', 'locale'=>'?string', 'dateType'=>'int', 'timeType'=>'int', 'timezone='=>'DateTimeZone|IntlTimeZone|string|null', 'calendar='=>'IntlCalendar|int|null', 'pattern='=>'string'], 'datefmt_format' => ['string|false', 'formatter'=>'IntlDateFormatter', 'datetime'=>'DateTime|IntlCalendar|array|int'], - 'datefmt_format_object' => ['string|false', 'datetime'=>'object', 'format='=>'mixed', 'locale='=>'string'], + 'datefmt_format_object' => ['string|false', 'datetime'=>'object', 'format='=>'mixed', 'locale='=>'?string'], 'datefmt_get_calendar' => ['int', 'formatter'=>'IntlDateFormatter'], 'datefmt_get_calendar_object' => ['IntlCalendar|false|null', 'formatter'=>'IntlDateFormatter'], 'datefmt_get_datetype' => ['int', 'formatter'=>'IntlDateFormatter'], @@ -10261,7 +10260,7 @@ 'datefmt_is_lenient' => ['bool', 'formatter'=>'IntlDateFormatter'], 'datefmt_localtime' => ['array|false', 'formatter'=>'IntlDateFormatter', 'string'=>'string', '&rw_offset='=>'int'], 'datefmt_parse' => ['int|false', 'formatter'=>'IntlDateFormatter', 'string'=>'string', '&rw_offset='=>'int'], - 'datefmt_set_calendar' => ['bool', 'formatter'=>'IntlDateFormatter', 'calendar'=>'int'], + 'datefmt_set_calendar' => ['bool', 'formatter'=>'IntlDateFormatter', 'calendar'=>'IntlCalendar|int|null'], 'datefmt_set_lenient' => ['?bool', 'formatter'=>'IntlDateFormatter', 'lenient'=>'bool'], 'datefmt_set_pattern' => ['bool', 'formatter'=>'IntlDateFormatter', 'pattern'=>'string'], 'datefmt_set_timezone' => ['false|null', 'formatter'=>'IntlDateFormatter', 'timezone'=>'IntlTimeZone|DateTimeZone|string|null'], @@ -10329,7 +10328,7 @@ 'dba_firstkey' => ['string', 'dba'=>'resource'], 'dba_handlers' => ['array', 'full_info='=>'bool'], 'dba_insert' => ['bool', 'key'=>'string', 'value'=>'string', 'dba'=>'resource'], - 'dba_key_split' => ['array|false', 'key'=>'string'], + 'dba_key_split' => ['array|false', 'key'=>'string|false|null'], 'dba_list' => ['array'], 'dba_nextkey' => ['string', 'dba'=>'resource'], 'dba_open' => ['resource', 'path'=>'string', 'mode'=>'string', 'handler='=>'string', '...handler_params='=>'string'], @@ -11270,7 +11269,7 @@ 'grapheme_strripos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'], 'grapheme_strrpos' => ['int|false', 'haystack'=>'string', 'needle'=>'string', 'offset='=>'int'], 'grapheme_strstr' => ['string|false', 'haystack'=>'string', 'needle'=>'string', 'beforeNeedle='=>'bool'], - 'grapheme_substr' => ['string|false', 'string'=>'string', 'offset'=>'int', 'length='=>'int'], + 'grapheme_substr' => ['string|false', 'string'=>'string', 'offset'=>'int', 'length='=>'?int'], 'gregoriantojd' => ['int', 'month'=>'int', 'day'=>'int', 'year'=>'int'], 'gridObj::set' => ['int', 'property_name'=>'string', 'new_value'=>''], 'gupnp_context_get_host_ip' => ['string', 'context'=>'resource'], @@ -11781,7 +11780,7 @@ 'http\Url::toArray' => ['string[]'], 'http\Url::toString' => ['string'], 'http_build_cookie' => ['string', 'cookie'=>'array'], - 'http_build_query' => ['string', 'data'=>'array|object', 'numeric_prefix='=>'string', 'arg_separator='=>'string', 'encoding_type='=>'int'], + 'http_build_query' => ['string', 'data'=>'array|object', 'numeric_prefix='=>'string', 'arg_separator='=>'?string', 'encoding_type='=>'int'], 'http_build_str' => ['string', 'query'=>'array', 'prefix='=>'?string', 'arg_separator='=>'string'], 'http_build_url' => ['string', 'url='=>'string|array', 'parts='=>'string|array', 'flags='=>'int', 'new_url='=>'array'], 'http_cache_etag' => ['bool', 'etag='=>'string'], @@ -12327,8 +12326,8 @@ 'intlcal_add' => ['bool', 'calendar'=>'IntlCalendar', 'field'=>'int', 'value'=>'int'], 'intlcal_after' => ['bool', 'calendar'=>'IntlCalendar', 'other'=>'IntlCalendar'], 'intlcal_before' => ['bool', 'calendar'=>'IntlCalendar', 'other'=>'IntlCalendar'], - 'intlcal_clear' => ['bool', 'calendar'=>'IntlCalendar', 'field='=>'int'], - 'intlcal_create_instance' => ['?IntlCalendar', 'timezone='=>'mixed', 'locale='=>'string'], + 'intlcal_clear' => ['bool', 'calendar'=>'IntlCalendar', 'field='=>'?int'], + 'intlcal_create_instance' => ['?IntlCalendar', 'timezone='=>'mixed', 'locale='=>'?string'], 'intlcal_equals' => ['bool', 'calendar'=>'IntlCalendar', 'other'=>'IntlCalendar'], 'intlcal_field_difference' => ['int', 'calendar'=>'IntlCalendar', 'timestamp'=>'float', 'field'=>'int'], 'intlcal_from_date_time' => ['IntlCalendar', 'datetime'=>'DateTime|string'], @@ -12356,7 +12355,7 @@ 'intlcal_is_equivalent_to' => ['bool', 'calendar'=>'IntlCalendar', 'other'=>'IntlCalendar'], 'intlcal_is_lenient' => ['bool', 'calendar'=>'IntlCalendar'], 'intlcal_is_set' => ['bool', 'calendar'=>'IntlCalendar', 'field'=>'int'], - 'intlcal_is_weekend' => ['bool', 'calendar'=>'IntlCalendar', 'timestamp='=>'float'], + 'intlcal_is_weekend' => ['bool', 'calendar'=>'IntlCalendar', 'timestamp='=>'?float'], 'intlcal_roll' => ['bool', 'calendar'=>'IntlCalendar', 'field'=>'int', 'value'=>'mixed'], 'intlcal_set' => ['bool', 'calendar'=>'IntlCalendar', 'year'=>'int', 'month'=>'int'], 'intlcal_set\'1' => ['bool', 'calendar'=>'IntlCalendar', 'year'=>'int', 'month'=>'int', 'dayOfMonth='=>'int', 'hour='=>'int', 'minute='=>'int', 'second='=>'int'], @@ -12425,7 +12424,7 @@ 'is_writable' => ['bool', 'filename'=>'string'], 'is_writeable' => ['bool', 'filename'=>'string'], 'isset' => ['bool', 'value'=>'mixed', '...rest='=>'mixed'], - 'iterator_apply' => ['0|positive-int', 'iterator'=>'Traversable', 'callback'=>'callable(mixed):bool', 'args='=>'array'], + 'iterator_apply' => ['0|positive-int', 'iterator'=>'Traversable', 'callback'=>'callable(mixed):bool', 'args='=>'?array'], 'iterator_count' => ['0|positive-int', 'iterator'=>'Traversable'], 'iterator_to_array' => ['array', 'iterator'=>'Traversable', 'preserve_keys='=>'bool'], 'java_last_exception_clear' => ['void'], @@ -12540,7 +12539,7 @@ 'ldap_bind_ext' => ['resource|false', 'ldap'=>'resource', 'dn='=>'string|null', 'password='=>'string|null', 'controls='=>'array'], 'ldap_close' => ['bool', 'ldap'=>'resource'], 'ldap_compare' => ['bool|int', 'ldap'=>'resource', 'dn'=>'string', 'attribute'=>'string', 'value'=>'string'], - 'ldap_connect' => ['resource|false', 'uri='=>'string', 'port='=>'int', 'wallet='=>'string', 'password='=>'string', 'auth_mode='=>'int'], + 'ldap_connect' => ['resource|false', 'uri='=>'?string', 'port='=>'int', 'wallet='=>'string', 'password='=>'string', 'auth_mode='=>'int'], 'ldap_control_paged_result' => ['bool', 'link_identifier'=>'resource', 'pagesize'=>'int', 'iscritical='=>'bool', 'cookie='=>'string'], 'ldap_control_paged_result_response' => ['bool', 'link_identifier'=>'resource', 'result_identifier'=>'resource', '&w_cookie'=>'string', '&w_estimated'=>'int'], 'ldap_count_entries' => ['int|false', 'ldap'=>'resource', 'result'=>'resource'], @@ -13910,7 +13909,7 @@ 'nthmac' => ['string', 'clent'=>'string', 'data'=>'string'], 'number_format' => ['string', 'num'=>'float|int', 'decimals='=>'int'], 'number_format\'1' => ['string', 'num'=>'float|int', 'decimals'=>'int', 'decimal_separator'=>'?string', 'thousands_separator'=>'?string'], - 'numfmt_create' => ['NumberFormatter|false', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], + 'numfmt_create' => ['NumberFormatter|null', 'locale'=>'string', 'style'=>'int', 'pattern='=>'string'], 'numfmt_format' => ['string|false', 'formatter'=>'NumberFormatter', 'num'=>'int|float', 'type='=>'int'], 'numfmt_format_currency' => ['string|false', 'formatter'=>'NumberFormatter', 'amount'=>'float', 'currency'=>'string'], 'numfmt_get_attribute' => ['int|false', 'formatter'=>'NumberFormatter', 'attribute'=>'int'], @@ -14032,8 +14031,8 @@ 'odbc_binmode' => ['bool', 'statement'=>'resource', 'mode'=>'int'], 'odbc_close' => ['void', 'odbc'=>'resource'], 'odbc_close_all' => ['void'], - 'odbc_columnprivileges' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'table'=>'string', 'column'=>'string'], - 'odbc_columns' => ['resource|false', 'odbc'=>'resource', 'catalog='=>'string', 'schema='=>'string', 'table='=>'string', 'column='=>'string'], + 'odbc_columnprivileges' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'?string', 'schema'=>'string', 'table'=>'string', 'column'=>'string'], + 'odbc_columns' => ['resource|false', 'odbc'=>'resource', 'catalog='=>'?string', 'schema='=>'?string', 'table='=>'?string', 'column='=>'?string'], 'odbc_commit' => ['bool', 'odbc'=>'resource'], 'odbc_connect' => ['resource|false', 'dsn'=>'string', 'user'=>'string', 'password'=>'string', 'cursor_option='=>'int'], 'odbc_cursor' => ['string', 'statement'=>'resource'], @@ -14053,7 +14052,7 @@ 'odbc_field_precision' => ['int', 'statement'=>'resource', 'field'=>'int'], 'odbc_field_scale' => ['int|false', 'statement'=>'resource', 'field'=>'int'], 'odbc_field_type' => ['string|false', 'statement'=>'resource', 'field'=>'int'], - 'odbc_foreignkeys' => ['resource|false', 'odbc'=>'resource', 'pk_catalog'=>'string', 'pk_schema'=>'string', 'pk_table'=>'string', 'fk_catalog'=>'string', 'fk_schema'=>'string', 'fk_table'=>'string'], + 'odbc_foreignkeys' => ['resource|false', 'odbc'=>'resource', 'pk_catalog'=>'?string', 'pk_schema'=>'string', 'pk_table'=>'string', 'fk_catalog'=>'string', 'fk_schema'=>'string', 'fk_table'=>'string'], 'odbc_free_result' => ['bool', 'statement'=>'resource'], 'odbc_gettypeinfo' => ['resource', 'odbc'=>'resource', 'data_type='=>'int'], 'odbc_longreadlen' => ['bool', 'statement'=>'resource', 'length'=>'int'], @@ -14062,17 +14061,17 @@ 'odbc_num_rows' => ['int', 'statement'=>'resource'], 'odbc_pconnect' => ['resource|false', 'dsn'=>'string', 'user'=>'string', 'password'=>'string', 'cursor_option='=>'int'], 'odbc_prepare' => ['resource|false', 'odbc'=>'resource', 'query'=>'string'], - 'odbc_primarykeys' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'table'=>'string'], + 'odbc_primarykeys' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'?string', 'schema'=>'string', 'table'=>'string'], 'odbc_procedurecolumns' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'procedure'=>'string', 'column'=>'string'], 'odbc_procedures' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'procedure'=>'string'], 'odbc_result' => ['mixed|false', 'statement'=>'resource', 'field'=>'mixed'], 'odbc_result_all' => ['int|false', 'statement'=>'resource', 'format='=>'string'], 'odbc_rollback' => ['bool', 'odbc'=>'resource'], 'odbc_setoption' => ['bool', 'odbc'=>'resource', 'which'=>'int', 'option'=>'int', 'value'=>'int'], - 'odbc_specialcolumns' => ['resource|false', 'odbc'=>'resource', 'type'=>'int', 'catalog'=>'string', 'schema'=>'string', 'table'=>'string', 'scope'=>'int', 'nullable'=>'int'], - 'odbc_statistics' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'table'=>'string', 'unique'=>'int', 'accuracy'=>'int'], - 'odbc_tableprivileges' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'string', 'schema'=>'string', 'table'=>'string'], - 'odbc_tables' => ['resource|false', 'odbc'=>'resource', 'catalog='=>'string', 'schema='=>'string', 'table='=>'string', 'types='=>'string'], + 'odbc_specialcolumns' => ['resource|false', 'odbc'=>'resource', 'type'=>'int', 'catalog'=>'?string', 'schema'=>'string', 'table'=>'string', 'scope'=>'int', 'nullable'=>'int'], + 'odbc_statistics' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'?string', 'schema'=>'string', 'table'=>'string', 'unique'=>'int', 'accuracy'=>'int'], + 'odbc_tableprivileges' => ['resource|false', 'odbc'=>'resource', 'catalog'=>'?string', 'schema'=>'string', 'table'=>'string'], + 'odbc_tables' => ['resource|false', 'odbc'=>'resource', 'catalog='=>'?string', 'schema='=>'string', 'table='=>'string', 'types='=>'string'], 'opcache_compile_file' => ['bool', 'filename'=>'string'], 'opcache_get_configuration' => ['array'], 'opcache_get_status' => ['array|false', 'include_scripts='=>'bool'], @@ -14308,7 +14307,7 @@ 'pg_parameter_status\'1' => ['string|false', 'connection'=>'string'], 'pg_pconnect' => ['resource|false', 'connection_string'=>'string', 'flags='=>'string', 'port='=>'string|int', 'options='=>'string', 'tty='=>'string', 'database='=>'string'], 'pg_ping' => ['bool', 'connection='=>'resource'], - 'pg_port' => ['int', 'connection='=>'resource'], + 'pg_port' => ['string', 'connection='=>'resource'], 'pg_prepare' => ['resource|false', 'connection'=>'resource', 'statement_name'=>'string', 'query'=>'string'], 'pg_prepare\'1' => ['resource|false', 'connection'=>'string', 'statement_name'=>'string'], 'pg_put_line' => ['bool', 'connection'=>'resource', 'data'=>'string'], @@ -14712,7 +14711,7 @@ 'rename_function' => ['bool', 'original_name'=>'string', 'new_name'=>'string'], 'reset' => ['mixed|false', '&r_array'=>'array|object'], 'resourcebundle_count' => ['int', 'bundle'=>'ResourceBundle'], - 'resourcebundle_create' => ['?ResourceBundle', 'locale'=>'string', 'bundle'=>'string', 'fallback='=>'bool'], + 'resourcebundle_create' => ['?ResourceBundle', 'locale'=>'?string', 'bundle'=>'?string', 'fallback='=>'bool'], 'resourcebundle_get' => ['mixed|null', 'bundle'=>'ResourceBundle', 'index'=>'string|int', 'fallback='=>'bool'], 'resourcebundle_get_error_code' => ['int', 'bundle'=>'ResourceBundle'], 'resourcebundle_get_error_message' => ['string', 'bundle'=>'ResourceBundle'], @@ -14900,7 +14899,7 @@ 'shapefileObj::getTransformed' => ['shapeObj', 'map'=>'mapObj', 'i'=>'int'], 'shapefileObj::ms_newShapefileObj' => ['shapefileObj', 'filename'=>'string', 'type'=>'int'], 'shell_exec' => ['string|false|null', 'command'=>'string'], - 'shm_attach' => ['resource', 'key'=>'int', 'size='=>'int', 'permissions='=>'int'], + 'shm_attach' => ['resource|false', 'key'=>'int', 'size='=>'int', 'permissions='=>'int'], 'shm_detach' => ['bool', 'shm'=>'resource'], 'shm_get_var' => ['mixed', 'shm'=>'resource', 'key'=>'int'], 'shm_has_var' => ['bool', 'shm'=>'resource', 'key'=>'int'], @@ -14917,9 +14916,9 @@ 'shuffle' => ['bool', '&rw_array'=>'array'], 'signeurlpaiement' => ['string', 'clent'=>'string', 'data'=>'string'], 'similar_text' => ['int', 'string1'=>'string', 'string2'=>'string', '&w_percent='=>'float'], - 'simplexml_import_dom' => ['SimpleXMLElement|false', 'node'=>'DOMNode', 'class_name='=>'string'], - 'simplexml_load_file' => ['SimpleXMLElement|false', 'filename'=>'string', 'class_name='=>'string', 'options='=>'int', 'namespace_or_prefix='=>'string', 'is_prefix='=>'bool'], - 'simplexml_load_string' => ['SimpleXMLElement|false', 'data'=>'string', 'class_name='=>'string', 'options='=>'int', 'namespace_or_prefix='=>'string', 'is_prefix='=>'bool'], + 'simplexml_import_dom' => ['SimpleXMLElement|false', 'node'=>'DOMNode', 'class_name='=>'?string'], + 'simplexml_load_file' => ['SimpleXMLElement|false', 'filename'=>'string', 'class_name='=>'?string', 'options='=>'int', 'namespace_or_prefix='=>'string', 'is_prefix='=>'bool'], + 'simplexml_load_string' => ['SimpleXMLElement|false', 'data'=>'string', 'class_name='=>'?string', 'options='=>'int', 'namespace_or_prefix='=>'string', 'is_prefix='=>'bool'], 'sin' => ['float', 'num'=>'float'], 'sinh' => ['float', 'num'=>'float'], 'sizeof' => ['int', 'value'=>'Countable|array', 'mode='=>'int'], @@ -15177,22 +15176,22 @@ 'stats_stat_percentile' => ['float', 'arr'=>'array', 'perc'=>'float'], 'stats_stat_powersum' => ['float', 'arr'=>'array', 'power'=>'float'], 'stats_variance' => ['float', 'a'=>'array', 'sample='=>'bool'], - 'stomp_abort' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], - 'stomp_ack' => ['bool', 'msg'=>'', 'headers='=>'array', 'link='=>''], - 'stomp_begin' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], - 'stomp_close' => ['bool', 'link'=>''], - 'stomp_commit' => ['bool', 'transaction_id'=>'string', 'headers='=>'array', 'link='=>''], - 'stomp_connect' => ['resource', 'broker='=>'string', 'username='=>'string', 'password='=>'string', 'headers='=>'array'], + 'stomp_abort' => ['bool', 'link'=>'resource', 'transaction_id'=>'string', 'headers='=>'?array'], + 'stomp_ack' => ['bool', 'link'=>'resource', 'msg'=>'', 'headers='=>'?array'], + 'stomp_begin' => ['bool', 'link'=>'resource', 'transaction_id'=>'string', 'headers='=>'?array'], + 'stomp_close' => ['bool', 'link'=>'resource'], + 'stomp_commit' => ['bool', 'link'=>'resource', 'transaction_id'=>'string', 'headers='=>'?array'], + 'stomp_connect' => ['resource', 'link'=>'resource', 'broker='=>'string', 'username='=>'string', 'password='=>'string', 'headers='=>'?array'], 'stomp_connect_error' => ['string'], - 'stomp_error' => ['string', 'link'=>''], - 'stomp_get_read_timeout' => ['array', 'link'=>''], - 'stomp_get_session_id' => ['string', 'link'=>''], - 'stomp_has_frame' => ['bool', 'link'=>''], - 'stomp_read_frame' => ['array', 'class_name='=>'string', 'link='=>''], - 'stomp_send' => ['bool', 'destination'=>'string', 'msg'=>'', 'headers='=>'array', 'link='=>''], - 'stomp_set_read_timeout' => ['', 'seconds'=>'int', 'microseconds='=>'int', 'link='=>''], - 'stomp_subscribe' => ['bool', 'destination'=>'string', 'headers='=>'array', 'link='=>''], - 'stomp_unsubscribe' => ['bool', 'destination'=>'string', 'headers='=>'array', 'link='=>''], + 'stomp_error' => ['string', 'link'=>'resource'], + 'stomp_get_read_timeout' => ['array', 'link'=>'resource'], + 'stomp_get_session_id' => ['string', 'link'=>'resource'], + 'stomp_has_frame' => ['bool', 'link'=>'resource'], + 'stomp_read_frame' => ['array', 'link'=>'resource', 'class_name='=>'string'], + 'stomp_send' => ['bool', 'link'=>'resource', 'destination'=>'string', 'msg'=>'', 'headers='=>'?array'], + 'stomp_set_read_timeout' => ['void', 'link'=>'resource', 'seconds'=>'int', 'microseconds='=>'?int'], + 'stomp_subscribe' => ['bool', 'link'=>'resource', 'destination'=>'string', 'headers='=>'?array'], + 'stomp_unsubscribe' => ['bool', 'link'=>'resource', 'destination'=>'string', 'headers='=>'?array'], 'stomp_version' => ['string'], 'str_getcsv' => ['non-empty-list', 'string'=>'string', 'separator='=>'string', 'enclosure='=>'string', 'escape='=>'string'], 'str_ireplace' => ['string|string[]', 'search'=>'string|array', 'replace'=>'string|array', 'subject'=>'string|array', '&w_count='=>'int'], @@ -15261,7 +15260,7 @@ 'stream_notification_callback' => ['callback', 'notification_code'=>'int', 'severity'=>'int', 'message'=>'string', 'message_code'=>'int', 'bytes_transferred'=>'int', 'bytes_max'=>'int'], 'stream_register_wrapper' => ['bool', 'protocol'=>'string', 'class'=>'string', 'flags='=>'int'], 'stream_resolve_include_path' => ['string|false', 'filename'=>'string'], - 'stream_select' => ['int|false', '&rw_read'=>'resource[]', '&rw_write'=>'?resource[]', '&rw_except'=>'?resource[]', 'seconds'=>'?int', 'microseconds='=>'?int'], + 'stream_select' => ['int|false', '&rw_read'=>'?resource[]', '&rw_write'=>'?resource[]', '&rw_except'=>'?resource[]', 'seconds'=>'?int', 'microseconds='=>'int'], 'stream_set_blocking' => ['bool', 'stream'=>'resource', 'enable'=>'bool'], 'stream_set_chunk_size' => ['int|false', 'stream'=>'resource', 'size'=>'int'], 'stream_set_read_buffer' => ['int', 'stream'=>'resource', 'size'=>'int'], @@ -15269,7 +15268,7 @@ 'stream_set_write_buffer' => ['int', 'stream'=>'resource', 'size'=>'int'], 'stream_socket_accept' => ['resource|false', 'socket'=>'resource', 'timeout='=>'float', '&w_peer_name='=>'string'], 'stream_socket_client' => ['resource|false', 'address'=>'string', '&w_error_code='=>'int', '&w_error_message='=>'string', 'timeout='=>'float', 'flags='=>'int', 'context='=>'resource'], - 'stream_socket_enable_crypto' => ['int|bool', 'stream'=>'resource', 'enable'=>'bool', 'crypto_method='=>'int', 'session_stream='=>'resource'], + 'stream_socket_enable_crypto' => ['int|bool', 'stream'=>'resource', 'enable'=>'bool', 'crypto_method='=>'?int', 'session_stream='=>'resource'], 'stream_socket_get_name' => ['string', 'socket'=>'resource', 'remote'=>'bool'], 'stream_socket_pair' => ['resource[]|false', 'domain'=>'int', 'type'=>'int', 'protocol'=>'int'], 'stream_socket_recvfrom' => ['string', 'socket'=>'resource', 'length'=>'int', 'flags='=>'int', '&w_address='=>'string'], @@ -15716,8 +15715,8 @@ 'tanh' => ['float', 'num'=>'float'], 'tcpwrap_check' => ['bool', 'daemon'=>'string', 'address'=>'string', 'user='=>'string', 'nodns='=>'bool'], 'tempnam' => ['string|false', 'directory'=>'string', 'prefix'=>'string'], - 'textdomain' => ['string', 'domain'=>'string'], - 'tidy::__construct' => ['void', 'filename='=>'string', 'config='=>'', 'encoding='=>'string', 'useIncludePath='=>'bool'], + 'textdomain' => ['string', 'domain'=>'?string'], + 'tidy::__construct' => ['void', 'filename='=>'string', 'config='=>'array|string', 'encoding='=>'string', 'useIncludePath='=>'bool'], 'tidy::body' => ['tidyNode'], 'tidy::cleanRepair' => ['bool'], 'tidy::diagnose' => ['bool'], @@ -15731,10 +15730,10 @@ 'tidy::html' => ['tidyNode'], 'tidy::isXhtml' => ['bool'], 'tidy::isXml' => ['bool'], - 'tidy::parseFile' => ['bool', 'filename'=>'string', 'config='=>'', 'encoding='=>'string', 'useIncludePath='=>'bool'], - 'tidy::parseString' => ['bool', 'string'=>'string', 'config='=>'', 'encoding='=>'string'], - 'tidy::repairFile' => ['string', 'filename'=>'string', 'config='=>'', 'encoding='=>'string', 'useIncludePath='=>'bool'], - 'tidy::repairString' => ['string', 'string'=>'string', 'config='=>'', 'encoding='=>'string'], + 'tidy::parseFile' => ['bool', 'filename'=>'string', 'config='=>'array|string', 'encoding='=>'string', 'useIncludePath='=>'bool'], + 'tidy::parseString' => ['bool', 'string'=>'string', 'config='=>'array|string', 'encoding='=>'string'], + 'tidy::repairFile' => ['string', 'filename'=>'string', 'config='=>'array|string', 'encoding='=>'string', 'useIncludePath='=>'bool'], + 'tidy::repairString' => ['string', 'string'=>'string', 'config='=>'array|string', 'encoding='=>'string'], 'tidy::root' => ['tidyNode'], 'tidyNode::__construct' => ['void'], 'tidyNode::getParent' => ['tidyNode'], @@ -15766,10 +15765,10 @@ 'tidy_is_xhtml' => ['bool', 'tidy'=>'tidy'], 'tidy_is_xml' => ['bool', 'tidy'=>'tidy'], 'tidy_load_config' => ['void', 'filename'=>'string', 'encoding'=>'string'], - 'tidy_parse_file' => ['tidy', 'filename'=>'string', 'config='=>'', 'encoding='=>'string', 'useIncludePath='=>'bool'], - 'tidy_parse_string' => ['tidy', 'string'=>'string', 'config='=>'', 'encoding='=>'string'], - 'tidy_repair_file' => ['string', 'filename'=>'string', 'config='=>'', 'encoding='=>'string', 'useIncludePath='=>'bool'], - 'tidy_repair_string' => ['string', 'string'=>'string', 'config='=>'', 'encoding='=>'string'], + 'tidy_parse_file' => ['tidy', 'filename'=>'string', 'config='=>'array|string', 'encoding='=>'string', 'useIncludePath='=>'bool'], + 'tidy_parse_string' => ['tidy', 'string'=>'string', 'config='=>'array|string', 'encoding='=>'string'], + 'tidy_repair_file' => ['string', 'filename'=>'string', 'config='=>'array|string', 'encoding='=>'string', 'useIncludePath='=>'bool'], + 'tidy_repair_string' => ['string', 'string'=>'string', 'config='=>'array|string', 'encoding='=>'string'], 'tidy_reset_config' => ['bool'], 'tidy_save_config' => ['bool', 'filename'=>'string'], 'tidy_set_encoding' => ['bool', 'encoding'=>'string'], diff --git a/tests/Internal/CallMapTest.php b/tests/Internal/CallMapTest.php index 7f155f5d15b..b6e843bb11d 100644 --- a/tests/Internal/CallMapTest.php +++ b/tests/Internal/CallMapTest.php @@ -152,10 +152,10 @@ public function testCallmapKeysAreStringsAndValuesAreSignatures(array $mainCallM self::assertArrayValuesAreArrays($deltaFile[$section], "'" . $section . "' in delta file " . $name . " has non-array values"); } foreach ($deltaFile['changed'] as $changedFunction => $diff) { - self::assertArrayKeysAreStrings($diff, "Changed function " . $changedFunction . "in delta file " . $name . " has non-string keys"); - self::assertArrayValuesAreArrays($diff, "Changed function " . $changedFunction . "in delta file " . $name . " has non-array values"); + self::assertArrayKeysAreStrings($diff, "Changed function " . $changedFunction . " in delta file " . $name . " has non-string keys"); + self::assertArrayValuesAreArrays($diff, "Changed function " . $changedFunction . " in delta file " . $name . " has non-array values"); foreach (['old', 'new'] as $section) { - self::assertArrayHasKey($section, $diff, "Changed function " . $changedFunction . "in delta file " . $name . " has no '" . $section . "' section"); + self::assertArrayHasKey($section, $diff, "Changed function " . $changedFunction . " in delta file " . $name . " has no '" . $section . "' section"); } } } diff --git a/tests/Internal/Codebase/InternalCallMapHandlerTest.php b/tests/Internal/Codebase/InternalCallMapHandlerTest.php index 72c07a1d0e7..1d0fcfbd70c 100644 --- a/tests/Internal/Codebase/InternalCallMapHandlerTest.php +++ b/tests/Internal/Codebase/InternalCallMapHandlerTest.php @@ -407,7 +407,6 @@ class InternalCallMapHandlerTest extends TestCase 'jsonexception::__construct', 'ldap_compare' => ['8.0'], 'ldap_delete' => ['8.0'], - 'ldap_exop' => ['8.0'], 'ldap_get_option' => ['8.0'], 'ldap_list' => ['8.0'], 'ldap_mod_add' => ['8.0'], @@ -429,7 +428,6 @@ class InternalCallMapHandlerTest extends TestCase 'locale::getdisplayregion', 'locale::getdisplayscript', 'locale::getdisplayvariant', - 'locale::lookup', 'logicexception::__construct', 'long2ip', 'lzf_compress', @@ -831,16 +829,6 @@ class InternalCallMapHandlerTest extends TestCase 'sqlsrv_query', 'sqlsrv_server_info', 'ssh2_forward_accept', - 'stomp_abort', - 'stomp_ack', - 'stomp_begin', - 'stomp_commit', - 'stomp_read_frame', - 'stomp_send', - 'stomp_set_read_timeout', - 'stomp_subscribe', - 'stomp_unsubscribe', - 'stream_select' => ['8.0'], 'substr_replace', 'tidy_getopt', 'transliterator::transliterate', @@ -880,6 +868,7 @@ class InternalCallMapHandlerTest extends TestCase 'xmlreader::next', 'xmlreader::open', 'xmlreader::xml', + 'xmlrpc_encode_request', 'xmlrpc_server_add_introspection_data', 'xmlrpc_server_call_method', 'xmlrpc_server_destroy', @@ -1003,28 +992,13 @@ class InternalCallMapHandlerTest extends TestCase 'imap_num_recent', 'infiniteiterator::getinneriterator' => ['8.1', '8.2'], 'inflate_init', - 'intlbreakiterator::createcharacterinstance' => ['8.1', '8.2'], - 'intlbreakiterator::createlineinstance' => ['8.1', '8.2'], - 'intlbreakiterator::createsentenceinstance' => ['8.1', '8.2'], - 'intlbreakiterator::createtitleinstance' => ['8.1', '8.2'], - 'intlbreakiterator::createwordinstance' => ['8.1', '8.2'], 'intlbreakiterator::gettext' => ['8.1', '8.2'], 'intlbreakiterator::settext' => ['8.1', '8.2'], 'intlcal_get', 'intlcal_get_keyword_values_for_locale', - 'intlcodepointbreakiterator::createcharacterinstance' => ['8.1', '8.2'], - 'intlcodepointbreakiterator::createlineinstance' => ['8.1', '8.2'], - 'intlcodepointbreakiterator::createsentenceinstance' => ['8.1', '8.2'], - 'intlcodepointbreakiterator::createtitleinstance' => ['8.1', '8.2'], - 'intlcodepointbreakiterator::createwordinstance' => ['8.1', '8.2'], 'intlcodepointbreakiterator::gettext' => ['8.1', '8.2'], 'intlcodepointbreakiterator::settext' => ['8.1', '8.2'], 'intlgregcal_set_gregorian_change', - 'intlrulebasedbreakiterator::createcharacterinstance' => ['8.1', '8.2'], - 'intlrulebasedbreakiterator::createlineinstance' => ['8.1', '8.2'], - 'intlrulebasedbreakiterator::createsentenceinstance' => ['8.1', '8.2'], - 'intlrulebasedbreakiterator::createtitleinstance' => ['8.1', '8.2'], - 'intlrulebasedbreakiterator::createwordinstance' => ['8.1', '8.2'], 'intlrulebasedbreakiterator::gettext' => ['8.1', '8.2'], 'intlrulebasedbreakiterator::settext' => ['8.1', '8.2'], 'intltz_get_offset', @@ -1033,7 +1007,6 @@ class InternalCallMapHandlerTest extends TestCase 'jddayofweek', 'jdtounix', 'ldap_count_entries', - 'ldap_exop' => ['8.1', '8.2'], 'ldap_get_attributes', 'lengthexception::getprevious', 'limititerator::getinneriterator' => ['8.1', '8.2'], @@ -1056,8 +1029,6 @@ class InternalCallMapHandlerTest extends TestCase 'mysqli_stmt_get_warnings', 'mysqli_stmt_insert_id', 'norewinditerator::getinneriterator' => ['8.1', '8.2'], - 'numberformatter::create' => ['8.1', '8.2'], - 'numfmt_create', 'ob_list_handlers', 'openssl_random_pseudo_bytes', 'openssl_spki_export', @@ -1074,17 +1045,9 @@ class InternalCallMapHandlerTest extends TestCase 'pcntl_exec', 'pcntl_strerror', 'pdo::getattribute', - 'pg_port', - 'phar::compress' => ['8.1', '8.2'], - 'phar::converttodata' => ['8.1', '8.2'], - 'phar::converttoexecutable' => ['8.1', '8.2'], - 'phar::decompress' => ['8.1', '8.2'], 'phar::getalias' => ['8.1', '8.2'], 'phar::iscompressed' => ['8.1', '8.2'], - 'phardata::compress' => ['8.1', '8.2'], 'phardata::compressfiles' => ['8.1', '8.2'], - 'phardata::converttodata' => ['8.1', '8.2'], - 'phardata::converttoexecutable' => ['8.1', '8.2'], 'phardata::decompress' => ['8.1', '8.2'], 'phptoken::gettokenname', 'pspell_config_create', @@ -1106,7 +1069,6 @@ class InternalCallMapHandlerTest extends TestCase 'recursiveiteratoriterator::beginiteration' => ['8.1', '8.2'], 'recursiveiteratoriterator::callgetchildren' => ['8.1', '8.2'], 'recursiveiteratoriterator::enditeration' => ['8.1', '8.2'], - 'recursiveiteratoriterator::getsubiterator' => ['8.1', '8.2'], 'recursiveregexiterator::current', 'recursiveregexiterator::getinneriterator' => ['8.1', '8.2'], 'recursiveregexiterator::key', @@ -1115,7 +1077,6 @@ class InternalCallMapHandlerTest extends TestCase 'recursiveregexiterator::valid', 'recursivetreeiterator::beginiteration' => ['8.1', '8.2'], 'recursivetreeiterator::callgetchildren' => ['8.1', '8.2'], - 'recursivetreeiterator::getsubiterator' => ['8.1', '8.2'], 'reflectionclass::getstaticproperties' => ['8.1', '8.2'], 'reflectionclass::gettraitaliases' => ['8.1', '8.2'], 'reflectionclass::gettraitnames' => ['8.1', '8.2'], @@ -1124,7 +1085,6 @@ class InternalCallMapHandlerTest extends TestCase 'reflectionfunction::getclosurescopeclass' => ['8.1', '8.2'], 'reflectionfunction::getclosurethis' => ['8.1', '8.2'], 'reflectionfunctionabstract::getextension' => ['8.1', '8.2'], - 'reflectionmethod::getclosure' => ['8.1', '8.2'], 'reflectionmethod::getclosurescopeclass' => ['8.1', '8.2'], 'reflectionmethod::getclosurethis' => ['8.1', '8.2'], 'reflectionmethod::getextension' => ['8.1', '8.2'], @@ -1137,10 +1097,8 @@ class InternalCallMapHandlerTest extends TestCase 'rewinddir', 'runtimeexception::getprevious', 'sessionhandler::create_sid' => ['8.1', '8.2'], - 'shm_attach', 'shmop_open', 'simplexml_import_dom', - 'simplexmlelement::savexml' => ['8.1', '8.2'], 'sleep', 'snmp_set_oid_numeric_print', 'socket_import_stream', @@ -1171,11 +1129,8 @@ class InternalCallMapHandlerTest extends TestCase 'spltempfileobject::_bad_state_ex', 'spltempfileobject::fpassthru' => ['8.1', '8.2'], 'spltempfileobject::fscanf' => ['8.1', '8.2'], - 'stomp::setreadtimeout', 'stream_bucket_new', 'stream_set_chunk_size', - 'substr', - 'substr_compare', 'tidy::body' => ['8.1', '8.2'], 'tidy::getopt' => ['8.1', '8.2'], 'tidy::head' => ['8.1', '8.2'], @@ -1202,7 +1157,6 @@ class InternalCallMapHandlerTest extends TestCase 'xml_get_error_code', 'xml_parser_get_option', 'xmlrpc_encode', - 'xmlrpc_encode_request', 'xmlrpc_server_create', 'xsltprocessor::transformtoxml' => ['8.1', '8.2'], 'ziparchive::addglob' => ['8.1', '8.2'], @@ -1570,15 +1524,32 @@ private function assertEntryParameters(ReflectionFunctionAbstract $function, arr $normalizedKey = substr($normalizedKey, 0, -1); } + //$this->assertTrue($this->hasParameter($function, $normalizedKey), "Calmap has extra param entry {$normalizedKey}"); + $normalizedEntry['name'] = $normalizedKey; $normalizedEntries[$normalizedKey] = $normalizedEntry; } + foreach ($function->getParameters() as $parameter) { $this->assertArrayHasKey($parameter->getName(), $normalizedEntries, "Callmap is missing entry for param {$parameter->getName()} in {$function->getName()}: " . print_r($normalizedEntries, true)); $this->assertParameter($normalizedEntries[$parameter->getName()], $parameter); } } + /* Used by above assert + private function hasParameter(ReflectionFunctionAbstract $function, string $name): bool + { + foreach ($function->getParameters() as $parameter) + { + if ($parameter->getName() === $name) { + return true; + } + } + + return false; + } + */ + /** * @param array{byRef: bool, name?: string, refMode: 'rw'|'w'|'r', variadic: bool, optional: bool, type: string} $normalizedEntry */ @@ -1592,7 +1563,7 @@ private function assertParameter(array $normalizedEntry, ReflectionParameter $pa $expectedType = $param->getType(); if (isset($expectedType) && !empty($normalizedEntry['type'])) { - $this->assertTypeValidity($expectedType, $normalizedEntry['type'], false, "Param '{$name}' has incorrect type"); + $this->assertTypeValidity($expectedType, $normalizedEntry['type'], "Param '{$name}'"); } } @@ -1608,20 +1579,20 @@ public function assertEntryReturnType(ReflectionFunctionAbstract $function, stri $this->assertNotEmpty($entryReturnType, 'CallMap entry has empty return type'); if ($expectedType !== null) { - $this->assertTypeValidity($expectedType, $entryReturnType, true, 'CallMap entry has incorrect return type, reflection returned: ' . $expectedType); + $this->assertTypeValidity($expectedType, $entryReturnType, 'Return'); } } /** * Since string equality is too strict, we do some extra checking here */ - private function assertTypeValidity(ReflectionType $reflected, string $specified, bool $checkNullable, string $message): void + private function assertTypeValidity(ReflectionType $reflected, string $specified, string $msgPrefix): void { $expectedType = Reflection::getPsalmTypeFromReflectionType($reflected); $callMapType = Type::parseString($specified); try { - $this->assertTrue(UnionTypeComparator::isContainedBy(self::$codebase, $callMapType, $expectedType), $message); + $this->assertTrue(UnionTypeComparator::isContainedBy(self::$codebase, $callMapType, $expectedType), "{$msgPrefix} type '{$specified}' should be contained by reflected type '{$reflected}'"); } catch (InvalidArgumentException $e) { if (preg_match('/^Could not get class storage for (.*)$/', $e->getMessage(), $matches) && !class_exists($matches[1]) @@ -1631,8 +1602,8 @@ private function assertTypeValidity(ReflectionType $reflected, string $specified } // Reflection::getPsalmTypeFromReflectionType adds |null to mixed types so skip comparison - if ($checkNullable && !$expectedType->hasMixed()) { - $this->assertSame($expectedType->isNullable(), $callMapType->isNullable(), $message); + if (!$expectedType->hasMixed()) { + $this->assertSame($expectedType->isNullable(), $callMapType->isNullable(), "{$msgPrefix} type '{$specified}' should be nullable"); } } }