From cfaf763ba71ef6e474c5192754199523f209592f Mon Sep 17 00:00:00 2001 From: Corey Taylor Date: Tue, 17 Jan 2023 05:46:31 -0600 Subject: [PATCH] Fix remaining ignored CallMap return types that can be updated --- dictionaries/CallMap.php | 142 +++++++++--------- dictionaries/CallMap_74_delta.php | 4 + dictionaries/CallMap_80_delta.php | 68 +++++++-- dictionaries/CallMap_81_delta.php | 40 +++-- dictionaries/CallMap_historical.php | 104 ++++++------- .../Codebase/InternalCallMapHandlerTest.php | 72 --------- 6 files changed, 207 insertions(+), 223 deletions(-) diff --git a/dictionaries/CallMap.php b/dictionaries/CallMap.php index 131490018d0..d704d9a7b10 100644 --- a/dictionaries/CallMap.php +++ b/dictionaries/CallMap.php @@ -5394,7 +5394,7 @@ 'imagejpeg' => ['bool', 'image'=>'GdImage', 'file='=>'string|resource|null', 'quality='=>'int'], 'imagelayereffect' => ['bool', 'image'=>'GdImage', 'effect'=>'int'], 'imageline' => ['bool', 'image'=>'GdImage', 'x1'=>'int', 'y1'=>'int', 'x2'=>'int', 'y2'=>'int', 'color'=>'int'], -'imageloadfont' => ['int|false', 'filename'=>'string'], +'imageloadfont' => ['GdFont|false', 'filename'=>'string'], 'imageObj::pasteImage' => ['void', 'srcImg'=>'imageObj', 'transparentColorHex'=>'int', 'dstX'=>'int', 'dstY'=>'int', 'angle'=>'int'], 'imageObj::saveImage' => ['int', 'filename'=>'string', 'oMap'=>'mapObj'], 'imageObj::saveWebImage' => ['string'], @@ -5417,8 +5417,8 @@ 'imagesettile' => ['bool', 'image'=>'GdImage', 'tile'=>'GdImage'], 'imagestring' => ['bool', 'image'=>'GdImage', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'string'=>'string', 'color'=>'int'], 'imagestringup' => ['bool', 'image'=>'GdImage', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'string'=>'string', 'color'=>'int'], -'imagesx' => ['int|false', 'image'=>'GdImage'], -'imagesy' => ['int|false', 'image'=>'GdImage'], +'imagesx' => ['int', 'image'=>'GdImage'], +'imagesy' => ['int', 'image'=>'GdImage'], 'imagetruecolortopalette' => ['bool', 'image'=>'GdImage', 'dither'=>'bool', 'num_colors'=>'int'], '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'], @@ -6026,12 +6026,12 @@ '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'], -'imap_mailboxmsginfo' => ['stdClass|false', 'imap'=>'IMAP\Connection'], +'imap_mailboxmsginfo' => ['stdClass', 'imap'=>'IMAP\Connection'], 'imap_mime_header_decode' => ['array|false', 'string'=>'string'], -'imap_msgno' => ['int|false', 'imap'=>'IMAP\Connection', 'message_uid'=>'int'], +'imap_msgno' => ['int', 'imap'=>'IMAP\Connection', 'message_uid'=>'int'], 'imap_mutf7_to_utf8' => ['string|false', 'string'=>'string'], 'imap_num_msg' => ['int|false', 'imap'=>'IMAP\Connection'], -'imap_num_recent' => ['int|false', 'imap'=>'IMAP\Connection'], +'imap_num_recent' => ['int', 'imap'=>'IMAP\Connection'], 'imap_open' => ['IMAP\Connection|false', 'mailbox'=>'string', 'user'=>'string', 'password'=>'string', 'flags='=>'int', 'retries='=>'int', 'options='=>'?array'], 'imap_ping' => ['bool', 'imap'=>'IMAP\Connection'], 'imap_qprint' => ['string|false', 'string'=>'string'], @@ -6077,7 +6077,7 @@ 'inflate_add' => ['string|false', 'context'=>'resource', 'data'=>'string', 'flush_mode='=>'int'], 'inflate_get_read_len' => ['int|false', 'context'=>'resource'], 'inflate_get_status' => ['int|false', 'context'=>'resource'], -'inflate_init' => ['resource|false', 'encoding'=>'int', 'options='=>'array'], +'inflate_init' => ['InflateContext|false', 'encoding'=>'int', 'options='=>'array'], 'ingres_autocommit' => ['bool', 'link'=>'resource'], 'ingres_autocommit_state' => ['bool', 'link'=>'resource'], 'ingres_charset' => ['string', 'link'=>'resource'], @@ -6143,13 +6143,13 @@ 'IntlBreakIterator::getErrorMessage' => ['string'], 'IntlBreakIterator::getLocale' => ['string', 'locale_type'=>'string'], 'IntlBreakIterator::getPartsIterator' => ['IntlPartsIterator', 'key_type='=>'int'], -'IntlBreakIterator::getText' => ['string'], +'IntlBreakIterator::getText' => ['?string'], 'IntlBreakIterator::isBoundary' => ['bool', 'offset'=>'int'], 'IntlBreakIterator::last' => ['int'], 'IntlBreakIterator::next' => ['int', 'offset='=>'?int'], 'IntlBreakIterator::preceding' => ['int', 'offset'=>'int'], 'IntlBreakIterator::previous' => ['int'], -'IntlBreakIterator::setText' => ['bool', 'text'=>'string'], +'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'], @@ -6158,14 +6158,14 @@ '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'], -'intlcal_get' => ['mixed', 'calendar'=>'IntlCalendar', 'field'=>'int'], +'intlcal_get' => ['int|false', 'calendar'=>'IntlCalendar', 'field'=>'int'], 'intlcal_get_actual_maximum' => ['int', 'calendar'=>'IntlCalendar', 'field'=>'int'], 'intlcal_get_actual_minimum' => ['int', 'calendar'=>'IntlCalendar', 'field'=>'int'], 'intlcal_get_available_locales' => ['array'], 'intlcal_get_day_of_week_type' => ['int', 'calendar'=>'IntlCalendar', 'dayOfWeek'=>'int'], 'intlcal_get_first_day_of_week' => ['int', 'calendar'=>'IntlCalendar'], 'intlcal_get_greatest_minimum' => ['int', 'calendar'=>'IntlCalendar', 'field'=>'int'], -'intlcal_get_keyword_values_for_locale' => ['Iterator|false', 'keyword'=>'string', 'locale'=>'string', 'onlyCommon'=>'bool'], +'intlcal_get_keyword_values_for_locale' => ['IntlIterator|false', 'keyword'=>'string', 'locale'=>'string', 'onlyCommon'=>'bool'], 'intlcal_get_least_maximum' => ['int', 'calendar'=>'IntlCalendar', 'field'=>'int'], 'intlcal_get_locale' => ['string', 'calendar'=>'IntlCalendar', 'type'=>'int'], 'intlcal_get_maximum' => ['int|false', 'calendar'=>'IntlCalendar', 'field'=>'int'], @@ -6356,7 +6356,7 @@ 'intlgregcal_create_instance' => ['IntlGregorianCalendar', 'timezoneOrYear='=>'mixed', 'localeOrMonth='=>'string'], 'intlgregcal_get_gregorian_change' => ['float', 'calendar'=>'IntlGregorianCalendar'], 'intlgregcal_is_leap_year' => ['bool', 'calendar'=>'int'], -'intlgregcal_set_gregorian_change' => ['void', 'calendar'=>'IntlGregorianCalendar', 'timestamp'=>'float'], +'intlgregcal_set_gregorian_change' => ['bool', 'calendar'=>'IntlGregorianCalendar', 'timestamp'=>'float'], 'IntlGregorianCalendar::__construct' => ['void'], 'IntlGregorianCalendar::add' => ['bool', 'field'=>'int', 'amount'=>'int'], 'IntlGregorianCalendar::after' => ['bool', 'other'=>'IntlCalendar'], @@ -6474,7 +6474,7 @@ 'intltz_get_error_code' => ['int', 'timezone'=>'IntlTimeZone'], 'intltz_get_error_message' => ['string', 'timezone'=>'IntlTimeZone'], 'intltz_get_id' => ['string', 'timezone'=>'IntlTimeZone'], -'intltz_get_offset' => ['int', 'timezone'=>'IntlTimeZone', 'timestamp'=>'float', 'local'=>'bool', '&rawOffset'=>'int', '&dstOffset'=>'int'], +'intltz_get_offset' => ['bool', 'timezone'=>'IntlTimeZone', 'timestamp'=>'float', 'local'=>'bool', '&rawOffset'=>'int', '&dstOffset'=>'int'], 'intltz_get_raw_offset' => ['int', 'timezone'=>'IntlTimeZone'], 'intltz_get_tz_data_version' => ['string', 'object'=>'IntlTimeZone'], 'intltz_getGMT' => ['IntlTimeZone'], @@ -6553,13 +6553,13 @@ 'java_set_ignore_case' => ['void', 'ignore'=>'bool'], 'java_throw_exceptions' => ['void', 'throw'=>'bool'], 'JavaException::getCause' => ['object'], -'jddayofweek' => ['mixed', 'julian_day'=>'int', 'mode='=>'int'], +'jddayofweek' => ['string|int', 'julian_day'=>'int', 'mode='=>'int'], 'jdmonthname' => ['string', 'julian_day'=>'int', 'mode'=>'int'], 'jdtofrench' => ['string', 'julian_day'=>'int'], 'jdtogregorian' => ['string', 'julian_day'=>'int'], 'jdtojewish' => ['string', 'julian_day'=>'int', 'hebrew='=>'bool', 'flags='=>'int'], 'jdtojulian' => ['string', 'julian_day'=>'int'], -'jdtounix' => ['int|false', 'julian_day'=>'int'], +'jdtounix' => ['int', 'julian_day'=>'int'], 'jewishtojd' => ['int', 'month'=>'int', 'day'=>'int', 'year'=>'int'], 'jobqueue_license_info' => ['array'], 'join' => ['string', 'separator'=>'string', 'array'=>'array'], @@ -6741,7 +6741,7 @@ '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_count_entries' => ['int|false', 'ldap'=>'LDAP\Connection', 'result'=>'LDAP\Result'], +'ldap_count_entries' => ['int', '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'], 'ldap_dn2ufn' => ['string', 'dn'=>'string'], @@ -6758,7 +6758,7 @@ 'ldap_first_entry' => ['LDAP\ResultEntry|false', 'ldap'=>'LDAP\Connection', 'result'=>'LDAP\Result'], 'ldap_first_reference' => ['LDAP\ResultEntry|false', 'ldap'=>'LDAP\Connection', 'result'=>'LDAP\Result'], 'ldap_free_result' => ['bool', 'result'=>'LDAP\Result'], -'ldap_get_attributes' => ['array|false', 'ldap'=>'LDAP\Connection', 'entry'=>'LDAP\ResultEntry'], +'ldap_get_attributes' => ['array', 'ldap'=>'LDAP\Connection', 'entry'=>'LDAP\ResultEntry'], 'ldap_get_dn' => ['string|false', 'ldap'=>'LDAP\Connection', 'entry'=>'LDAP\ResultEntry'], 'ldap_get_entries' => ['array|false', 'ldap'=>'LDAP\Connection', 'result'=>'LDAP\Result'], 'ldap_get_option' => ['bool', 'ldap'=>'LDAP\Connection', 'option'=>'int', '&w_value='=>'array|string|int|null'], @@ -7238,7 +7238,7 @@ 'mb_detect_order' => ['bool|list', 'encoding='=>'array|string|null'], 'mb_encode_mimeheader' => ['string', 'string'=>'string', 'charset='=>'string|null', 'transfer_encoding='=>'string|null', 'newline='=>'string', 'indent='=>'int'], 'mb_encode_numericentity' => ['string', 'string'=>'string', 'map'=>'array', 'encoding='=>'string|null', 'hex='=>'bool'], -'mb_encoding_aliases' => ['list|false', 'encoding'=>'string'], +'mb_encoding_aliases' => ['list', 'encoding'=>'string'], 'mb_ereg' => ['bool', 'pattern'=>'string', 'string'=>'string', '&w_matches='=>'array|null'], 'mb_ereg_match' => ['bool', 'pattern'=>'string', 'string'=>'string', 'options='=>'string|null'], 'mb_ereg_replace' => ['string|false|null', 'pattern'=>'string', 'replacement'=>'string', 'string'=>'string', 'options='=>'string|null'], @@ -7466,7 +7466,7 @@ 'MessageFormatter::parse' => ['array|false', 'value'=>'string'], 'MessageFormatter::parseMessage' => ['array|false', 'locale'=>'string', 'pattern'=>'string', 'source'=>'string'], 'MessageFormatter::setPattern' => ['bool', 'pattern'=>'string'], -'metaphone' => ['string|false', 'string'=>'string', 'max_phonemes='=>'int'], +'metaphone' => ['string', '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_count' => ['int'], @@ -8182,7 +8182,7 @@ 'msession_timeout' => ['int', 'session'=>'string', 'param='=>'int'], 'msession_uniq' => ['string', 'param'=>'int', 'classname='=>'string', 'data='=>'string'], 'msession_unlock' => ['int', 'session'=>'string', 'key'=>'int'], -'msg_get_queue' => ['resource', 'key'=>'int', 'permissions='=>'int'], +'msg_get_queue' => ['SysvMessageQueue|false', 'key'=>'int', 'permissions='=>'int'], 'msg_queue_exists' => ['bool', 'key'=>'int'], 'msg_receive' => ['bool', 'queue'=>'resource', 'desired_message_type'=>'int', '&w_received_message_type'=>'int', 'max_message_size'=>'int', '&w_message'=>'mixed', 'unserialize='=>'bool', 'flags='=>'int', '&w_error_code='=>'int'], 'msg_remove_queue' => ['bool', 'queue'=>'resource'], @@ -9142,7 +9142,7 @@ 'ob_iconv_handler' => ['string', 'contents'=>'string', 'status'=>'int'], 'ob_implicit_flush' => ['void', 'enable='=>'bool'], 'ob_inflatehandler' => ['string', 'data'=>'string', 'mode'=>'int'], -'ob_list_handlers' => ['false|list'], +'ob_list_handlers' => ['list'], 'ob_start' => ['bool', 'callback='=>'string|array|?callable', 'chunk_size='=>'int', 'flags='=>'int'], 'ob_tidyhandler' => ['string', 'input'=>'string', 'mode='=>'int'], 'oci_bind_array_by_name' => ['bool', 'statement'=>'resource', 'param'=>'string', '&rw_var'=>'array', 'max_array_length'=>'int', 'max_item_length='=>'int', 'type='=>'int'], @@ -9376,11 +9376,11 @@ 'openssl_private_encrypt' => ['bool', 'data'=>'string', '&w_encrypted_data'=>'string', 'private_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'padding='=>'int'], 'openssl_public_decrypt' => ['bool', 'data'=>'string', '&w_decrypted_data'=>'string', 'public_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'padding='=>'int'], 'openssl_public_encrypt' => ['bool', 'data'=>'string', '&w_encrypted_data'=>'string', 'public_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'padding='=>'int'], -'openssl_random_pseudo_bytes' => ['string|false', 'length'=>'int', '&w_strong_result='=>'bool'], +'openssl_random_pseudo_bytes' => ['string', 'length'=>'int', '&w_strong_result='=>'bool'], 'openssl_seal' => ['int|false', 'data'=>'string', '&w_sealed_data'=>'string', '&w_encrypted_keys'=>'array', 'public_key'=>'list', 'cipher_algo'=>'string', '&rw_iv='=>'string'], 'openssl_sign' => ['bool', 'data'=>'string', '&w_signature'=>'string', 'private_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'algorithm='=>'int|string'], -'openssl_spki_export' => ['?string', 'spki'=>'string'], -'openssl_spki_export_challenge' => ['?string', 'spki'=>'string'], +'openssl_spki_export' => ['string|false', 'spki'=>'string'], +'openssl_spki_export_challenge' => ['string|false', 'spki'=>'string'], 'openssl_spki_new' => ['string|false', 'private_key'=>'OpenSSLAsymmetricKey', 'challenge'=>'string', 'digest_algo='=>'int'], 'openssl_spki_verify' => ['bool', 'spki'=>'string'], 'openssl_verify' => ['-1|0|1|false', 'data'=>'string', 'signature'=>'string', 'public_key'=>'OpenSSLAsymmetricKey|OpenSSLCertificate|array{OpenSSLAsymmetricKey|OpenSSLCertificate|string, string}|string', 'algorithm='=>'int|string'], @@ -9456,7 +9456,7 @@ 'OwsrequestObj::getValueByName' => ['string', 'name'=>'string'], 'OwsrequestObj::loadParams' => ['int'], 'OwsrequestObj::setParameter' => ['int', 'name'=>'string', 'value'=>'string'], -'pack' => ['string|false', 'format'=>'string', '...values='=>'mixed'], +'pack' => ['string', 'format'=>'string', '...values='=>'mixed'], 'parallel\Future::done' => ['bool'], 'parallel\Future::select' => ['mixed', '&resolving'=>'parallel\Future[]', '&w_resolved'=>'parallel\Future[]', '&w_errored'=>'parallel\Future[]', '&w_timedout='=>'parallel\Future[]', 'timeout='=>'int'], 'parallel\Future::value' => ['mixed', 'timeout='=>'int'], @@ -9471,7 +9471,7 @@ 'ParentIterator::hasChildren' => ['bool'], 'ParentIterator::next' => ['void'], 'ParentIterator::rewind' => ['void'], -'ParentIterator::valid' => [''], +'ParentIterator::valid' => ['bool'], 'Parle\Lexer::advance' => ['void'], 'Parle\Lexer::build' => ['void'], 'Parle\Lexer::callout' => ['void', 'id'=>'int', 'callback'=>'callable'], @@ -9528,7 +9528,7 @@ 'parse_ini_file' => ['array|false', 'filename'=>'string', 'process_sections='=>'bool', 'scanner_mode='=>'int'], 'parse_ini_string' => ['array|false', 'ini_string'=>'string', 'process_sections='=>'bool', 'scanner_mode='=>'int'], 'parse_str' => ['void', 'string'=>'string', '&w_result'=>'array'], -'parse_url' => ['mixed|false', 'url'=>'string', 'component='=>'int'], +'parse_url' => ['int|string|array|null|false', 'url'=>'string', 'component='=>'int'], 'ParseError::__clone' => ['void'], 'ParseError::__construct' => ['void', 'message='=>'string', 'code='=>'int', 'previous='=>'?Throwable'], 'ParseError::__toString' => ['string'], @@ -9554,7 +9554,7 @@ 'pcntl_alarm' => ['int', 'seconds'=>'int'], 'pcntl_async_signals' => ['bool', 'enable='=>'?bool'], 'pcntl_errno' => ['int'], -'pcntl_exec' => ['null|false', 'path'=>'string', 'args='=>'array', 'env_vars='=>'array'], +'pcntl_exec' => ['false', 'path'=>'string', 'args='=>'array', 'env_vars='=>'array'], 'pcntl_fork' => ['int'], 'pcntl_get_last_error' => ['int'], 'pcntl_getpriority' => ['int', 'process_id='=>'?int', 'mode='=>'int'], @@ -9565,7 +9565,7 @@ 'pcntl_sigprocmask' => ['bool', 'mode'=>'int', 'signals'=>'array', '&w_old_signals='=>'array'], 'pcntl_sigtimedwait' => ['int', 'signals'=>'array', '&w_info='=>'array', 'seconds='=>'int', 'nanoseconds='=>'int'], 'pcntl_sigwaitinfo' => ['int', 'signals'=>'array', '&w_info='=>'array'], -'pcntl_strerror' => ['string|false', 'error_code'=>'int'], +'pcntl_strerror' => ['string', 'error_code'=>'int'], 'pcntl_wait' => ['int', '&w_status'=>'int', 'flags='=>'int', '&w_resource_usage='=>'array'], 'pcntl_waitpid' => ['int', 'process_id'=>'int', '&w_status'=>'int', 'flags='=>'int', '&w_resource_usage='=>'array'], 'pcntl_wexitstatus' => ['int', 'status'=>'int'], @@ -9891,7 +9891,7 @@ 'PDO::errorCode' => ['?string'], 'PDO::errorInfo' => ['array{0: ?string, 1: ?int, 2: ?string, 3?: mixed, 4?: mixed}'], 'PDO::exec' => ['int|false', 'query'=>'string'], -'PDO::getAttribute' => ['', 'attribute'=>'int'], +'PDO::getAttribute' => ['mixed', 'attribute'=>'int'], 'PDO::getAvailableDrivers' => ['array'], 'PDO::inTransaction' => ['bool'], 'PDO::lastInsertId' => ['string', 'name='=>'string|null'], @@ -10077,7 +10077,7 @@ 'Phar::delete' => ['bool', 'entry'=>'string'], 'Phar::delMetadata' => ['bool'], 'Phar::extractTo' => ['bool', 'pathto'=>'string', 'files='=>'string|array|null', 'overwrite='=>'bool'], -'Phar::getAlias' => ['string'], +'Phar::getAlias' => ['?string'], 'Phar::getMetadata' => ['mixed', 'unserializeOptions='=>'array'], 'Phar::getModified' => ['bool'], 'Phar::getPath' => ['string'], @@ -10089,7 +10089,7 @@ 'Phar::hasMetadata' => ['bool'], 'Phar::interceptFileFuncs' => ['void'], 'Phar::isBuffering' => ['bool'], -'Phar::isCompressed' => ['mixed|false'], +'Phar::isCompressed' => ['int|false'], 'Phar::isFileFormat' => ['bool', 'format'=>'int'], 'Phar::isValidPharFilename' => ['bool', 'filename'=>'string', 'executable='=>'bool'], 'Phar::isWritable' => ['bool'], @@ -10119,11 +10119,11 @@ 'PharData::buildFromDirectory' => ['array', 'base_dir'=>'string', 'regex='=>'string'], 'PharData::buildFromIterator' => ['array', 'iter'=>'Iterator', 'base_directory='=>'string'], 'PharData::compress' => ['?PharData', 'compression'=>'int', 'extension='=>'?string'], -'PharData::compressFiles' => ['bool', 'compression'=>'int'], +'PharData::compressFiles' => ['void', 'compression'=>'int'], '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'], @@ -10197,7 +10197,7 @@ 'PhpToken::tokenize' => ['list', 'code'=>'string', 'flags='=>'int'], 'PhpToken::is' => ['bool', 'kind'=>'string|int|string[]|int[]'], 'PhpToken::isIgnorable' => ['bool'], -'PhpToken::getTokenName' => ['string'], +'PhpToken::getTokenName' => ['?string'], 'phpversion' => ['string|false', 'extension='=>'?string'], 'pht\AtomicInteger::__construct' => ['void', 'value='=>'int'], 'pht\AtomicInteger::dec' => ['void'], @@ -10403,7 +10403,7 @@ 'pspell_add_to_session' => ['bool', 'dictionary'=>'PSpell\Dictionary', 'word'=>'string'], 'pspell_check' => ['bool', 'dictionary'=>'PSpell\Dictionary', 'word'=>'string'], 'pspell_clear_session' => ['bool', 'dictionary'=>'PSpell\Dictionary'], -'pspell_config_create' => ['int|false', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string'], +'pspell_config_create' => ['PSpell\Config', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string'], 'pspell_config_data_dir' => ['bool', 'config'=>'PSpell\Config', 'directory'=>'string'], 'pspell_config_dict_dir' => ['bool', 'config'=>'PSpell\Config', 'directory'=>'string'], 'pspell_config_ignore' => ['bool', 'config'=>'PSpell\Config', 'min_length'=>'int'], @@ -10412,9 +10412,9 @@ 'pspell_config_repl' => ['bool', 'config'=>'PSpell\Config', 'filename'=>'string'], 'pspell_config_runtogether' => ['bool', 'config'=>'PSpell\Config', 'allow'=>'bool'], 'pspell_config_save_repl' => ['bool', 'config'=>'PSpell\Config', 'save'=>'bool'], -'pspell_new' => ['int|false', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string', 'mode='=>'int'], -'pspell_new_config' => ['int|false', 'config'=>'PSpell\Config'], -'pspell_new_personal' => ['int|false', 'filename'=>'string', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string', 'mode='=>'int'], +'pspell_new' => ['PSpell\Dictionary|false', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string', 'mode='=>'int'], +'pspell_new_config' => ['PSpell\Dictionary|false', 'config'=>'PSpell\Config'], +'pspell_new_personal' => ['PSpell\Dictionary|false', 'filename'=>'string', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string', 'mode='=>'int'], 'pspell_save_wordlist' => ['bool', 'dictionary'=>'PSpell\Dictionary'], 'pspell_store_replacement' => ['bool', 'dictionary'=>'PSpell\Dictionary', 'misspelled'=>'string', 'correct'=>'string'], 'pspell_suggest' => ['array', 'dictionary'=>'PSpell\Dictionary', 'word'=>'string'], @@ -10841,7 +10841,7 @@ 'RecursiveIteratorIterator::valid' => ['bool'], 'RecursiveRegexIterator::__construct' => ['void', 'iterator'=>'RecursiveIterator', 'regex'=>'string', 'mode='=>'int', 'flags='=>'int', 'preg_flags='=>'int'], 'RecursiveRegexIterator::accept' => ['bool'], -'RecursiveRegexIterator::current' => [''], +'RecursiveRegexIterator::current' => ['mixed'], 'RecursiveRegexIterator::getChildren' => ['RecursiveRegexIterator'], 'RecursiveRegexIterator::getFlags' => ['int'], 'RecursiveRegexIterator::getInnerIterator' => ['Iterator'], @@ -10849,13 +10849,13 @@ 'RecursiveRegexIterator::getPregFlags' => ['int'], 'RecursiveRegexIterator::getRegex' => ['string'], 'RecursiveRegexIterator::hasChildren' => ['bool'], -'RecursiveRegexIterator::key' => [''], -'RecursiveRegexIterator::next' => [''], -'RecursiveRegexIterator::rewind' => [''], +'RecursiveRegexIterator::key' => ['mixed'], +'RecursiveRegexIterator::next' => ['void'], +'RecursiveRegexIterator::rewind' => ['void'], 'RecursiveRegexIterator::setFlags' => ['void', 'new_flags'=>'int'], 'RecursiveRegexIterator::setMode' => ['void', 'new_mode'=>'int'], 'RecursiveRegexIterator::setPregFlags' => ['void', 'new_flags'=>'int'], -'RecursiveRegexIterator::valid' => [''], +'RecursiveRegexIterator::valid' => ['bool'], 'RecursiveTreeIterator::__construct' => ['void', 'iterator'=>'RecursiveIterator|IteratorAggregate', 'flags='=>'int', 'cit_flags='=>'int', 'mode'=>'int'], 'RecursiveTreeIterator::beginChildren' => ['void'], 'RecursiveTreeIterator::beginIteration' => ['void'], @@ -13226,7 +13226,7 @@ 'SplFileObject::fflush' => ['bool'], 'SplFileObject::fgetc' => ['string|false'], 'SplFileObject::fgetcsv' => ['list|array{0: null}|false|null', 'seperator='=>'string', 'enclosure='=>'string', 'escape='=>'string'], -'SplFileObject::fgets' => ['string|false'], +'SplFileObject::fgets' => ['string'], 'SplFileObject::flock' => ['bool', 'operation'=>'int', '&w_wouldblock='=>'int'], 'SplFileObject::fpassthru' => ['int'], 'SplFileObject::fputcsv' => ['int|false', 'fields'=>'array', 'seperator='=>'string', 'enclosure='=>'string', 'escape='=>'string'], @@ -13242,7 +13242,7 @@ 'SplFileObject::getChildren' => ['null'], 'SplFileObject::getCsvControl' => ['array'], 'SplFileObject::getCTime' => ['int|false'], -'SplFileObject::getCurrentLine' => ['string|false'], +'SplFileObject::getCurrentLine' => ['string'], 'SplFileObject::getExtension' => ['string'], 'SplFileObject::getFileInfo' => ['SplFileInfo', 'class_name='=>'string'], 'SplFileObject::getFilename' => ['string'], @@ -13304,7 +13304,7 @@ 'SplHeap::isEmpty' => ['bool'], 'SplHeap::key' => ['int'], 'SplHeap::next' => ['void'], -'SplHeap::recoverFromCorruption' => ['int'], +'SplHeap::recoverFromCorruption' => ['true'], 'SplHeap::rewind' => ['void'], 'SplHeap::top' => ['mixed'], 'SplHeap::valid' => ['bool'], @@ -13314,12 +13314,12 @@ 'SplMinHeap::count' => ['int'], 'SplMinHeap::current' => ['mixed'], 'SplMinHeap::extract' => ['mixed'], -'SplMinHeap::insert' => ['void', 'value'=>'mixed'], -'SplMinHeap::isCorrupted' => ['int'], +'SplMinHeap::insert' => ['true', 'value'=>'mixed'], +'SplMinHeap::isCorrupted' => ['bool'], 'SplMinHeap::isEmpty' => ['bool'], -'SplMinHeap::key' => ['mixed'], +'SplMinHeap::key' => ['int'], 'SplMinHeap::next' => ['void'], -'SplMinHeap::recoverFromCorruption' => ['void'], +'SplMinHeap::recoverFromCorruption' => ['true'], 'SplMinHeap::rewind' => ['void'], 'SplMinHeap::top' => ['mixed'], 'SplMinHeap::valid' => ['bool'], @@ -13337,7 +13337,7 @@ 'SplObjectStorage::offsetExists' => ['bool', 'object'=>'object'], 'SplObjectStorage::offsetGet' => ['mixed', 'object'=>'object'], 'SplObjectStorage::offsetSet' => ['object', 'object'=>'object', 'data='=>'mixed'], -'SplObjectStorage::offsetUnset' => ['object', 'object'=>'object'], +'SplObjectStorage::offsetUnset' => ['void', 'object'=>'object'], 'SplObjectStorage::removeAll' => ['void', 'os'=>'splobjectstorage'], 'SplObjectStorage::removeAllExcept' => ['void', 'os'=>'splobjectstorage'], 'SplObjectStorage::rewind' => ['void'], @@ -13355,11 +13355,11 @@ 'SplPriorityQueue::insert' => ['bool', 'value'=>'mixed', 'priority'=>'mixed'], 'SplPriorityQueue::isCorrupted' => ['bool'], 'SplPriorityQueue::isEmpty' => ['bool'], -'SplPriorityQueue::key' => ['mixed'], +'SplPriorityQueue::key' => ['int'], 'SplPriorityQueue::next' => ['void'], 'SplPriorityQueue::recoverFromCorruption' => ['void'], 'SplPriorityQueue::rewind' => ['void'], -'SplPriorityQueue::setExtractFlags' => ['void', 'flags'=>'int'], +'SplPriorityQueue::setExtractFlags' => ['int', 'flags'=>'int'], 'SplPriorityQueue::top' => ['mixed'], 'SplPriorityQueue::valid' => ['bool'], 'SplQueue::dequeue' => ['mixed'], @@ -13799,7 +13799,7 @@ '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_new' => ['object', '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'], @@ -13828,7 +13828,7 @@ '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_set_blocking' => ['bool', 'stream'=>'resource', 'enable'=>'bool'], -'stream_set_chunk_size' => ['int|false', 'stream'=>'resource', 'size'=>'int'], +'stream_set_chunk_size' => ['int', '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'], @@ -14872,7 +14872,7 @@ 'trait_exists' => ['bool', 'trait'=>'string', 'autoload='=>'bool'], 'Transliterator::create' => ['?Transliterator', 'id'=>'string', 'direction='=>'int'], 'Transliterator::createFromRules' => ['?Transliterator', 'rules'=>'string', 'direction='=>'int'], -'Transliterator::createInverse' => ['Transliterator'], +'Transliterator::createInverse' => ['?Transliterator'], 'Transliterator::getErrorCode' => ['int'], 'Transliterator::getErrorMessage' => ['string'], 'Transliterator::listIDs' => ['array'], @@ -14901,21 +14901,21 @@ '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'], +'UConverter::getAliases' => ['array|false|null', 'name'=>'string'], 'UConverter::getAvailable' => ['array'], -'UConverter::getDestinationEncoding' => ['string'], -'UConverter::getDestinationType' => ['int'], +'UConverter::getDestinationEncoding' => ['string|false|null'], +'UConverter::getDestinationType' => ['int|false|null'], 'UConverter::getErrorCode' => ['int'], -'UConverter::getErrorMessage' => ['string'], -'UConverter::getSourceEncoding' => ['string'], -'UConverter::getSourceType' => ['int'], -'UConverter::getStandards' => ['array'], -'UConverter::getSubstChars' => ['string'], +'UConverter::getErrorMessage' => ['?string'], +'UConverter::getSourceEncoding' => ['string|false|null'], +'UConverter::getSourceType' => ['int|false|null'], +'UConverter::getStandards' => ['?array'], +'UConverter::getSubstChars' => ['string|false|null'], 'UConverter::reasonText' => ['string', 'reason='=>'int'], 'UConverter::setDestinationEncoding' => ['bool', 'encoding'=>'string'], 'UConverter::setSourceEncoding' => ['bool', 'encoding'=>'string'], 'UConverter::setSubstChars' => ['bool', 'chars'=>'string'], -'UConverter::toUCallback' => ['mixed', 'reason'=>'int', 'source'=>'string', 'codeUnits'=>'string', '&w_error'=>'int'], +'UConverter::toUCallback' => ['string|int|array|null', 'reason'=>'int', 'source'=>'string', 'codeUnits'=>'string', '&w_error'=>'int'], 'UConverter::transcode' => ['string', 'string'=>'string', 'toEncoding'=>'string', 'fromEncoding'=>'string', 'options='=>'?array'], 'ucwords' => ['string', 'string'=>'string', 'separators='=>'string'], 'udm_add_search_limit' => ['bool', 'agent'=>'resource', 'var'=>'int', 'value'=>'string'], @@ -15610,16 +15610,16 @@ 'xlswriter_get_author' => ['string'], 'xlswriter_get_version' => ['string'], 'xml_error_string' => ['?string', 'error_code'=>'int'], -'xml_get_current_byte_index' => ['int|false', 'parser'=>'XMLParser'], -'xml_get_current_column_number' => ['int|false', 'parser'=>'XMLParser'], -'xml_get_current_line_number' => ['int|false', 'parser'=>'XMLParser'], -'xml_get_error_code' => ['int|false', 'parser'=>'XMLParser'], +'xml_get_current_byte_index' => ['int', 'parser'=>'XMLParser'], +'xml_get_current_column_number' => ['int', 'parser'=>'XMLParser'], +'xml_get_current_line_number' => ['int', 'parser'=>'XMLParser'], +'xml_get_error_code' => ['int', '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_free' => ['bool', 'parser'=>'XMLParser'], -'xml_parser_get_option' => ['mixed|false', 'parser'=>'XMLParser', 'option'=>'int'], +'xml_parser_get_option' => ['string', 'parser'=>'XMLParser', 'option'=>'int'], 'xml_parser_set_option' => ['bool', 'parser'=>'XMLParser', 'option'=>'int', 'value'=>'mixed'], 'xml_set_character_data_handler' => ['bool', 'parser'=>'XMLParser', 'handler'=>'callable'], 'xml_set_default_handler' => ['bool', 'parser'=>'XMLParser', 'handler'=>'callable'], diff --git a/dictionaries/CallMap_74_delta.php b/dictionaries/CallMap_74_delta.php index 317205aa711..01127069746 100644 --- a/dictionaries/CallMap_74_delta.php +++ b/dictionaries/CallMap_74_delta.php @@ -41,6 +41,10 @@ 'old' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'string'], 'new' => ['?string', 'languageTag'=>'array', 'locale'=>'string', 'canonicalize='=>'bool', 'defaultLocale='=>'?string'], ], + 'openssl_random_pseudo_bytes' => [ + 'old' => ['string|false', 'length'=>'int', '&w_strong_result='=>'bool'], + 'new' => ['string', 'length'=>'int', '&w_strong_result='=>'bool'], + ], '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 d1df39d695d..493651ac422 100644 --- a/dictionaries/CallMap_80_delta.php +++ b/dictionaries/CallMap_80_delta.php @@ -18,7 +18,7 @@ 'added' => [ 'DateTime::createFromInterface' => ['static', 'object'=>'DateTimeInterface'], 'DateTimeImmutable::createFromInterface' => ['static', 'object'=>'DateTimeInterface'], - 'PhpToken::getTokenName' => ['string'], + 'PhpToken::getTokenName' => ['?string'], 'PhpToken::is' => ['bool', 'kind'=>'string|int|string[]|int[]'], 'PhpToken::isIgnorable' => ['bool'], 'PhpToken::tokenize' => ['list', 'code'=>'string', 'flags='=>'int'], @@ -214,8 +214,8 @@ 'new' => ['?Phar', 'format='=>'?int', 'compression='=>'?int', 'extension='=>'?string'], ], 'PharData::decompress' => [ - 'old' => ['PharData', 'extension='=>'string'], - 'new' => ['PharData', 'extension='=>'?string'], + 'old' => ['?PharData', 'extension='=>'string'], + 'new' => ['?PharData', 'extension='=>'?string'], ], 'Phar::compress' => [ 'old' => ['?Phar', 'compression'=>'int', 'extension='=>'string'], @@ -305,6 +305,14 @@ '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'], ], + 'SplFileObject::fgets' => [ + 'old' => ['string|false'], + 'new' => ['string'], + ], + 'SplFileObject::getCurrentLine' => [ + 'old' => ['string|false'], + 'new' => ['string'], + ], 'XMLWriter::startAttributeNs' => [ 'old' => ['bool', 'prefix'=>'string', 'name'=>'string', 'namespace'=>'?string'], 'new' => ['bool', 'prefix'=>'?string', 'name'=>'string', 'namespace'=>'?string'], @@ -1063,7 +1071,7 @@ ], 'imageinterlace' => [ 'old' => ['int|false', 'image'=>'resource', 'enable='=>'int'], - 'new' => ['int|bool', 'image'=>'GdImage', 'enable='=>'bool|null'], + 'new' => ['bool', 'image'=>'GdImage', 'enable='=>'bool|null'], ], 'imageistruecolor' => [ 'old' => ['bool', 'image'=>'resource'], @@ -1158,12 +1166,12 @@ 'new' => ['bool', 'image'=>'GdImage', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'string'=>'string', 'color'=>'int'], ], 'imagesx' => [ - 'old' => ['int|false', 'image'=>'resource'], - 'new' => ['int|false', 'image'=>'GdImage'], + 'old' => ['int', 'image'=>'resource'], + 'new' => ['int', 'image'=>'GdImage'], ], 'imagesy' => [ - 'old' => ['int|false', 'image'=>'resource'], - 'new' => ['int|false', 'image'=>'GdImage'], + 'old' => ['int', 'image'=>'resource'], + 'new' => ['int', 'image'=>'GdImage'], ], 'imagetruecolortopalette' => [ 'old' => ['bool', 'image'=>'resource', 'dither'=>'bool', 'num_colors'=>'int'], @@ -1197,6 +1205,14 @@ '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'], ], + 'inflate_init' => [ + 'old' => ['resource|false', 'encoding'=>'int', 'options='=>'array'], + 'new' => ['InflateContext|false', 'encoding'=>'int', 'options='=>'array'], + ], + 'jdtounix' => [ + 'old' => ['int|false', 'julian_day'=>'int'], + 'new' => ['int', 'julian_day'=>'int'], + ], 'ldap_add' => [ 'old' => ['bool', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'array'], 'new' => ['bool', 'ldap'=>'resource', 'dn'=>'string', 'entry'=>'array', 'controls='=>'?array'], @@ -1313,6 +1329,10 @@ 'old' => ['string', 'string'=>'string', 'map'=>'array', 'encoding='=>'string', 'hex='=>'bool'], 'new' => ['string', 'string'=>'string', 'map'=>'array', 'encoding='=>'string|null', 'hex='=>'bool'], ], + 'mb_encoding_aliases' => [ + 'old' => ['list|false', 'encoding'=>'string'], + 'new' => ['list', 'encoding'=>'string'], + ], 'mb_ereg' => [ 'old' => ['int|false', 'pattern'=>'string', 'string'=>'string', '&w_matches='=>'array|null'], 'new' => ['bool', 'pattern'=>'string', 'string'=>'string', '&w_matches='=>'array|null'], @@ -1465,6 +1485,10 @@ 'old' => ['int', 'haystack'=>'string', 'needle'=>'string', 'encoding='=>'string'], 'new' => ['int', 'haystack'=>'string', 'needle'=>'string', 'encoding='=>'string|null'], ], + 'metaphone' => [ + 'old' => ['string|false', 'string'=>'string', 'max_phonemes='=>'int'], + 'new' => ['string', 'string'=>'string', 'max_phonemes='=>'int'], + ], 'mhash' => [ 'old' => ['string', 'algo'=>'int', 'data'=>'string', 'key='=>'string'], 'new' => ['string', 'algo'=>'int', 'data'=>'string', 'key='=>'?string'], @@ -1473,6 +1497,10 @@ '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'], ], + 'msg_get_queue' => [ + 'old' => ['resource|false', 'key'=>'int', 'permissions='=>'int'], + 'new' => ['SysvMessageQueue|false', 'key'=>'int', 'permissions='=>'int'], + ], 'mysqli::__construct' => [ 'old' => ['void', 'hostname='=>'string', 'username='=>'string', 'password='=>'string', 'database='=>'string', 'port='=>'int', 'socket='=>'string'], 'new' => ['void', 'hostname='=>'string|null', 'username='=>'string|null', 'password='=>'string|null', 'database='=>'string|null', 'port='=>'int|null', 'socket='=>'string|null'], @@ -1705,6 +1733,10 @@ 'old' => ['int', 'certificate'=>'string|resource', 'public_key'=>'string|array|resource'], 'new' => ['int', 'certificate'=>'string|OpenSSLCertificate', 'public_key'=>'string|OpenSSLCertificate|OpenSSLAsymmetricKey|array'], ], + 'pack' => [ + 'old' => ['string|false', 'format'=>'string', '...values='=>'mixed'], + 'new' => ['string', 'format'=>'string', '...values='=>'mixed'], + ], 'parse_str' => [ 'old' => ['void', 'string'=>'string', '&w_result='=>'array'], 'new' => ['void', 'string'=>'string', '&w_result'=>'array'], @@ -1717,6 +1749,10 @@ 'old' => ['bool', 'enable='=>'bool'], 'new' => ['bool', 'enable='=>'?bool'], ], + 'pcntl_exec' => [ + 'old' => ['null|false', 'path'=>'string', 'args='=>'array', 'env_vars='=>'array'], + 'new' => ['false', 'path'=>'string', 'args='=>'array', 'env_vars='=>'array'], + ], 'pcntl_getpriority' => [ 'old' => ['int', 'process_id='=>'int', 'mode='=>'int'], 'new' => ['int', 'process_id='=>'?int', 'mode='=>'int'], @@ -2069,6 +2105,10 @@ 'old' => ['string|false', 'stream'=>'resource', 'length='=>'int', 'offset='=>'int'], 'new' => ['string|false', 'stream'=>'resource', 'length='=>'?int', 'offset='=>'int'], ], + 'stream_set_chunk_size' => [ + 'old' => ['int|false', 'stream'=>'resource', 'size'=>'int'], + 'new' => ['int', 'stream'=>'resource', 'size'=>'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'], @@ -2175,19 +2215,19 @@ ], 'xml_get_current_byte_index' => [ 'old' => ['int|false', 'parser'=>'resource'], - 'new' => ['int|false', 'parser'=>'XMLParser'], + 'new' => ['int', 'parser'=>'XMLParser'], ], 'xml_get_current_column_number' => [ 'old' => ['int|false', 'parser'=>'resource'], - 'new' => ['int|false', 'parser'=>'XMLParser'], + 'new' => ['int', 'parser'=>'XMLParser'], ], 'xml_get_current_line_number' => [ 'old' => ['int|false', 'parser'=>'resource'], - 'new' => ['int|false', 'parser'=>'XMLParser'], + 'new' => ['int', 'parser'=>'XMLParser'], ], 'xml_get_error_code' => [ 'old' => ['int|false', 'parser'=>'resource'], - 'new' => ['int|false', 'parser'=>'XMLParser'], + 'new' => ['int', 'parser'=>'XMLParser'], ], 'xml_parse' => [ 'old' => ['int', 'parser'=>'resource', 'data'=>'string', 'is_final='=>'bool'], @@ -2210,8 +2250,8 @@ 'new' => ['bool', 'parser'=>'XMLParser'], ], 'xml_parser_get_option' => [ - 'old' => ['mixed|false', 'parser'=>'resource', 'option'=>'int'], - 'new' => ['mixed|false', 'parser'=>'XMLParser', 'option'=>'int'], + 'old' => ['string|false', 'parser'=>'resource', 'option'=>'int'], + 'new' => ['string', 'parser'=>'XMLParser', 'option'=>'int'], ], 'xml_parser_set_option' => [ 'old' => ['bool', 'parser'=>'resource', 'option'=>'int', 'value'=>'mixed'], diff --git a/dictionaries/CallMap_81_delta.php b/dictionaries/CallMap_81_delta.php index e3ad2e7c9e9..455c4ed5b12 100644 --- a/dictionaries/CallMap_81_delta.php +++ b/dictionaries/CallMap_81_delta.php @@ -246,9 +246,9 @@ 'old' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string'], 'new' => ['HashContext', 'algo'=>'string', 'flags='=>'int', 'key='=>'string', 'options='=>'array{seed:scalar}'], ], - 'imageinterlace' => [ - 'old' => ['int|bool', 'image'=>'GdImage', 'enable='=>'bool|null'], - 'new' => ['bool', 'image'=>'GdImage', 'enable='=>'bool|null'], + 'imageloadfont' => [ + 'old' => ['int|false', 'filename'=>'string'], + 'new' => ['GdFont|false', 'filename'=>'string'], ], 'imap_append' => [ 'old' => ['bool', 'imap'=>'resource', 'folder'=>'string', 'message'=>'string', 'options='=>'?string', 'internal_date='=>'?string'], @@ -379,20 +379,20 @@ 'new' => ['bool', 'imap'=>'IMAP\Connection', 'message_nums'=>'string', 'mailbox'=>'string', 'flags='=>'int'], ], 'imap_mailboxmsginfo' => [ - 'old' => ['stdClass|false', 'imap'=>'resource'], - 'new' => ['stdClass|false', 'imap'=>'IMAP\Connection'], + 'old' => ['stdClass', 'imap'=>'resource'], + 'new' => ['stdClass', 'imap'=>'IMAP\Connection'], ], 'imap_msgno' => [ - 'old' => ['int|false', 'imap'=>'resource', 'message_uid'=>'int'], - 'new' => ['int|false', 'imap'=>'IMAP\Connection', 'message_uid'=>'int'], + 'old' => ['int', 'imap'=>'resource', 'message_uid'=>'int'], + 'new' => ['int', 'imap'=>'IMAP\Connection', 'message_uid'=>'int'], ], 'imap_num_msg' => [ 'old' => ['int|false', 'imap'=>'resource'], 'new' => ['int|false', 'imap'=>'IMAP\Connection'], ], 'imap_num_recent' => [ - 'old' => ['int|false', 'imap'=>'resource'], - 'new' => ['int|false', 'imap'=>'IMAP\Connection'], + 'old' => ['int', 'imap'=>'resource'], + 'new' => ['int', 'imap'=>'IMAP\Connection'], ], 'imap_open' => [ 'old' => ['resource|false', 'mailbox'=>'string', 'user'=>'string', 'password'=>'string', 'flags='=>'int', 'retries='=>'int', 'options='=>'?array'], @@ -515,8 +515,8 @@ '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'], - 'new' => ['int|false', 'ldap'=>'LDAP\Connection', 'result'=>'LDAP\Result'], + 'old' => ['int', 'ldap'=>'resource', 'result'=>'resource'], + 'new' => ['int', 'ldap'=>'LDAP\Connection', 'result'=>'LDAP\Result'], ], 'ldap_delete' => [ 'old' => ['bool', 'ldap'=>'resource', 'dn'=>'string'], @@ -567,8 +567,8 @@ 'new' => ['bool', 'result'=>'LDAP\Result'], ], 'ldap_get_attributes' => [ - 'old' => ['array|false', 'ldap'=>'resource', 'entry'=>'resource'], - 'new' => ['array|false', 'ldap'=>'LDAP\Connection', 'entry'=>'LDAP\ResultEntry'], + 'old' => ['array', 'ldap'=>'resource', 'entry'=>'resource'], + 'new' => ['array', 'ldap'=>'LDAP\Connection', 'entry'=>'LDAP\ResultEntry'], ], 'ldap_get_dn' => [ 'old' => ['string|false', 'ldap'=>'resource', 'entry'=>'resource'], @@ -1110,6 +1110,10 @@ 'old' => ['bool', 'dictionary'=>'int'], 'new' => ['bool', 'dictionary'=>'PSpell\Dictionary'], ], + 'pspell_config_create' => [ + 'old' => ['int', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string'], + 'new' => ['PSpell\Config', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string'], + ], 'pspell_config_data_dir' => [ 'old' => ['bool', 'config'=>'int', 'directory'=>'string'], 'new' => ['bool', 'config'=>'PSpell\Config', 'directory'=>'string'], @@ -1142,9 +1146,17 @@ 'old' => ['bool', 'config'=>'int', 'save'=>'bool'], 'new' => ['bool', 'config'=>'PSpell\Config', 'save'=>'bool'], ], + 'pspell_new' => [ + 'old' => ['int|false', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string', 'mode='=>'int'], + 'new' => ['PSpell\Dictionary|false', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string', 'mode='=>'int'], + ], 'pspell_new_config' => [ 'old' => ['int|false', 'config'=>'int'], - 'new' => ['int|false', 'config'=>'PSpell\Config'], + 'new' => ['PSpell\Dictionary|false', 'config'=>'PSpell\Config'], + ], + 'pspell_new_personal' => [ + 'old' => ['int|false', 'filename'=>'string', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string', 'mode='=>'int'], + 'new' => ['PSpell\Dictionary|false', 'filename'=>'string', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string', 'mode='=>'int'], ], 'pspell_save_wordlist' => [ 'old' => ['bool', 'dictionary'=>'int'], diff --git a/dictionaries/CallMap_historical.php b/dictionaries/CallMap_historical.php index edb343dff10..237bc6721a3 100644 --- a/dictionaries/CallMap_historical.php +++ b/dictionaries/CallMap_historical.php @@ -3181,13 +3181,13 @@ 'IntlBreakIterator::getErrorMessage' => ['string'], 'IntlBreakIterator::getLocale' => ['string', 'locale_type'=>'string'], 'IntlBreakIterator::getPartsIterator' => ['IntlPartsIterator', 'key_type='=>'int'], - 'IntlBreakIterator::getText' => ['string'], + 'IntlBreakIterator::getText' => ['?string'], 'IntlBreakIterator::isBoundary' => ['bool', 'offset'=>'int'], 'IntlBreakIterator::last' => ['int'], 'IntlBreakIterator::next' => ['int', 'offset='=>'?int'], 'IntlBreakIterator::preceding' => ['int', 'offset'=>'int'], 'IntlBreakIterator::previous' => ['int'], - 'IntlBreakIterator::setText' => ['bool', 'text'=>'string'], + 'IntlBreakIterator::setText' => ['?bool', 'text'=>'string'], 'IntlCalendar::__construct' => ['void'], 'IntlCalendar::add' => ['bool', 'field'=>'int', 'amount'=>'int'], 'IntlCalendar::after' => ['bool', 'other'=>'IntlCalendar'], @@ -4924,7 +4924,7 @@ 'PDO::errorCode' => ['?string'], 'PDO::errorInfo' => ['array{0: ?string, 1: ?int, 2: ?string, 3?: mixed, 4?: mixed}'], 'PDO::exec' => ['int|false', 'query'=>'string'], - 'PDO::getAttribute' => ['', 'attribute'=>'int'], + 'PDO::getAttribute' => ['mixed', 'attribute'=>'int'], 'PDO::getAvailableDrivers' => ['array'], 'PDO::inTransaction' => ['bool'], 'PDO::lastInsertId' => ['string', 'name='=>'string|null'], @@ -4985,7 +4985,7 @@ 'ParentIterator::hasChildren' => ['bool'], 'ParentIterator::next' => ['void'], 'ParentIterator::rewind' => ['void'], - 'ParentIterator::valid' => [''], + 'ParentIterator::valid' => ['bool'], 'Parle\Lexer::advance' => ['void'], 'Parle\Lexer::build' => ['void'], 'Parle\Lexer::callout' => ['void', 'id'=>'int', 'callback'=>'callable'], @@ -5071,7 +5071,7 @@ 'Phar::delMetadata' => ['bool'], 'Phar::delete' => ['bool', 'entry'=>'string'], 'Phar::extractTo' => ['bool', 'pathto'=>'string', 'files='=>'string|array|null', 'overwrite='=>'bool'], - 'Phar::getAlias' => ['string'], + 'Phar::getAlias' => ['?string'], 'Phar::getMetadata' => ['mixed'], 'Phar::getModified' => ['bool'], 'Phar::getPath' => ['string'], @@ -5083,7 +5083,7 @@ 'Phar::hasMetadata' => ['bool'], 'Phar::interceptFileFuncs' => ['void'], 'Phar::isBuffering' => ['bool'], - 'Phar::isCompressed' => ['mixed|false'], + 'Phar::isCompressed' => ['int|false'], 'Phar::isFileFormat' => ['bool', 'format'=>'int'], 'Phar::isValidPharFilename' => ['bool', 'filename'=>'string', 'executable='=>'bool'], 'Phar::isWritable' => ['bool'], @@ -5113,11 +5113,11 @@ 'PharData::buildFromDirectory' => ['array', 'base_dir'=>'string', 'regex='=>'string'], 'PharData::buildFromIterator' => ['array', 'iter'=>'Iterator', 'base_directory='=>'string'], 'PharData::compress' => ['?PharData', 'compression'=>'int', 'extension='=>'string'], - 'PharData::compressFiles' => ['bool', 'compression'=>'int'], + 'PharData::compressFiles' => ['void', 'compression'=>'int'], '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::delMetadata' => ['bool'], 'PharData::delete' => ['bool', 'entry'=>'string'], @@ -5476,7 +5476,7 @@ 'RecursiveIteratorIterator::valid' => ['bool'], 'RecursiveRegexIterator::__construct' => ['void', 'iterator'=>'RecursiveIterator', 'regex'=>'string', 'mode='=>'int', 'flags='=>'int', 'preg_flags='=>'int'], 'RecursiveRegexIterator::accept' => ['bool'], - 'RecursiveRegexIterator::current' => [''], + 'RecursiveRegexIterator::current' => ['mixed'], 'RecursiveRegexIterator::getChildren' => ['RecursiveRegexIterator'], 'RecursiveRegexIterator::getFlags' => ['int'], 'RecursiveRegexIterator::getInnerIterator' => ['Iterator'], @@ -5484,13 +5484,13 @@ 'RecursiveRegexIterator::getPregFlags' => ['int'], 'RecursiveRegexIterator::getRegex' => ['string'], 'RecursiveRegexIterator::hasChildren' => ['bool'], - 'RecursiveRegexIterator::key' => [''], - 'RecursiveRegexIterator::next' => [''], - 'RecursiveRegexIterator::rewind' => [''], + 'RecursiveRegexIterator::key' => ['mixed'], + 'RecursiveRegexIterator::next' => ['void'], + 'RecursiveRegexIterator::rewind' => ['void'], 'RecursiveRegexIterator::setFlags' => ['void', 'new_flags'=>'int'], 'RecursiveRegexIterator::setMode' => ['void', 'new_mode'=>'int'], 'RecursiveRegexIterator::setPregFlags' => ['void', 'new_flags'=>'int'], - 'RecursiveRegexIterator::valid' => [''], + 'RecursiveRegexIterator::valid' => ['bool'], 'RecursiveTreeIterator::__construct' => ['void', 'iterator'=>'RecursiveIterator|IteratorAggregate', 'flags='=>'int', 'cit_flags='=>'int', 'mode'=>'int'], 'RecursiveTreeIterator::beginChildren' => ['void'], 'RecursiveTreeIterator::beginIteration' => ['void'], @@ -7841,7 +7841,7 @@ 'SplHeap::isEmpty' => ['bool'], 'SplHeap::key' => ['int'], 'SplHeap::next' => ['void'], - 'SplHeap::recoverFromCorruption' => ['int'], + 'SplHeap::recoverFromCorruption' => ['true'], 'SplHeap::rewind' => ['void'], 'SplHeap::top' => ['mixed'], 'SplHeap::valid' => ['bool'], @@ -7851,12 +7851,12 @@ 'SplMinHeap::count' => ['int'], 'SplMinHeap::current' => ['mixed'], 'SplMinHeap::extract' => ['mixed'], - 'SplMinHeap::insert' => ['void', 'value'=>'mixed'], - 'SplMinHeap::isCorrupted' => ['int'], + 'SplMinHeap::insert' => ['true', 'value'=>'mixed'], + 'SplMinHeap::isCorrupted' => ['bool'], 'SplMinHeap::isEmpty' => ['bool'], - 'SplMinHeap::key' => ['mixed'], + 'SplMinHeap::key' => ['int'], 'SplMinHeap::next' => ['void'], - 'SplMinHeap::recoverFromCorruption' => ['void'], + 'SplMinHeap::recoverFromCorruption' => ['true'], 'SplMinHeap::rewind' => ['void'], 'SplMinHeap::top' => ['mixed'], 'SplMinHeap::valid' => ['bool'], @@ -7874,7 +7874,7 @@ 'SplObjectStorage::offsetExists' => ['bool', 'object'=>'object'], 'SplObjectStorage::offsetGet' => ['mixed', 'object'=>'object'], 'SplObjectStorage::offsetSet' => ['object', 'object'=>'object', 'data='=>'mixed'], - 'SplObjectStorage::offsetUnset' => ['object', 'object'=>'object'], + 'SplObjectStorage::offsetUnset' => ['void', 'object'=>'object'], 'SplObjectStorage::removeAll' => ['void', 'os'=>'splobjectstorage'], 'SplObjectStorage::removeAllExcept' => ['void', 'os'=>'splobjectstorage'], 'SplObjectStorage::rewind' => ['void'], @@ -7891,11 +7891,11 @@ 'SplPriorityQueue::getExtractFlags' => ['int'], 'SplPriorityQueue::insert' => ['bool', 'value'=>'mixed', 'priority'=>'mixed'], 'SplPriorityQueue::isEmpty' => ['bool'], - 'SplPriorityQueue::key' => ['mixed'], + 'SplPriorityQueue::key' => ['int'], 'SplPriorityQueue::next' => ['void'], 'SplPriorityQueue::recoverFromCorruption' => ['void'], 'SplPriorityQueue::rewind' => ['void'], - 'SplPriorityQueue::setExtractFlags' => ['void', 'flags'=>'int'], + 'SplPriorityQueue::setExtractFlags' => ['int', 'flags'=>'int'], 'SplPriorityQueue::top' => ['mixed'], 'SplPriorityQueue::valid' => ['bool'], 'SplQueue::dequeue' => ['mixed'], @@ -8197,7 +8197,7 @@ 'TokyoTyrantTable::setIndex' => ['mixed', 'column'=>'string', 'type'=>'int'], 'Transliterator::create' => ['?Transliterator', 'id'=>'string', 'direction='=>'int'], 'Transliterator::createFromRules' => ['?Transliterator', 'rules'=>'string', 'direction='=>'int'], - 'Transliterator::createInverse' => ['Transliterator'], + 'Transliterator::createInverse' => ['?Transliterator'], 'Transliterator::getErrorCode' => ['int'], 'Transliterator::getErrorMessage' => ['string'], 'Transliterator::listIDs' => ['array'], @@ -8215,21 +8215,21 @@ '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'], + 'UConverter::getAliases' => ['array|false|null', 'name'=>'string'], 'UConverter::getAvailable' => ['array'], - 'UConverter::getDestinationEncoding' => ['string'], - 'UConverter::getDestinationType' => ['int'], + 'UConverter::getDestinationEncoding' => ['string|false|null'], + 'UConverter::getDestinationType' => ['int|false|null'], 'UConverter::getErrorCode' => ['int'], - 'UConverter::getErrorMessage' => ['string'], - 'UConverter::getSourceEncoding' => ['string'], - 'UConverter::getSourceType' => ['int'], - 'UConverter::getStandards' => ['array'], - 'UConverter::getSubstChars' => ['string'], + 'UConverter::getErrorMessage' => ['?string'], + 'UConverter::getSourceEncoding' => ['string|false|null'], + 'UConverter::getSourceType' => ['int|false|null'], + 'UConverter::getStandards' => ['?array'], + 'UConverter::getSubstChars' => ['string|false|null'], 'UConverter::reasonText' => ['string', 'reason='=>'int'], 'UConverter::setDestinationEncoding' => ['bool', 'encoding'=>'string'], 'UConverter::setSourceEncoding' => ['bool', 'encoding'=>'string'], 'UConverter::setSubstChars' => ['bool', 'chars'=>'string'], - 'UConverter::toUCallback' => ['mixed', 'reason'=>'int', 'source'=>'string', 'codeUnits'=>'string', '&w_error'=>'int'], + 'UConverter::toUCallback' => ['string|int|array|null', 'reason'=>'int', 'source'=>'string', 'codeUnits'=>'string', '&w_error'=>'int'], 'UConverter::transcode' => ['string', 'string'=>'string', 'toEncoding'=>'string', 'fromEncoding'=>'string', 'options='=>'?array'], 'UnderflowException::__clone' => ['void'], 'UnderflowException::__construct' => ['void', 'message='=>'string', 'code='=>'int', 'previous='=>'?Throwable'], @@ -12173,8 +12173,8 @@ 'imagesettile' => ['bool', 'image'=>'resource', 'tile'=>'resource'], 'imagestring' => ['bool', 'image'=>'resource', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'string'=>'string', 'color'=>'int'], 'imagestringup' => ['bool', 'image'=>'resource', 'font'=>'int', 'x'=>'int', 'y'=>'int', 'string'=>'string', 'color'=>'int'], - 'imagesx' => ['int|false', 'image'=>'resource'], - 'imagesy' => ['int|false', 'image'=>'resource'], + 'imagesx' => ['int', 'image'=>'resource'], + 'imagesy' => ['int', 'image'=>'resource'], 'imagetruecolortopalette' => ['bool', 'image'=>'resource', 'dither'=>'bool', 'num_colors'=>'int'], 'imagettfbbox' => ['false|array', 'size'=>'float', 'angle'=>'float', 'font_filename'=>'string', 'string'=>'string'], 'imagettftext' => ['false|array', 'image'=>'resource', 'size'=>'float', 'angle'=>'float', 'x'=>'int', 'y'=>'int', 'color'=>'int', 'font_filename'=>'string', 'text'=>'string'], @@ -12223,12 +12223,12 @@ 'imap_mail_compose' => ['string|false', 'envelope'=>'array', 'bodies'=>'array'], 'imap_mail_copy' => ['bool', 'imap'=>'resource', 'message_nums'=>'string', 'mailbox'=>'string', 'flags='=>'int'], 'imap_mail_move' => ['bool', 'imap'=>'resource', 'message_nums'=>'string', 'mailbox'=>'string', 'flags='=>'int'], - 'imap_mailboxmsginfo' => ['stdClass|false', 'imap'=>'resource'], + 'imap_mailboxmsginfo' => ['stdClass', 'imap'=>'resource'], 'imap_mime_header_decode' => ['array|false', 'string'=>'string'], - 'imap_msgno' => ['int|false', 'imap'=>'resource', 'message_uid'=>'int'], + 'imap_msgno' => ['int', 'imap'=>'resource', 'message_uid'=>'int'], 'imap_mutf7_to_utf8' => ['string|false', 'string'=>'string'], 'imap_num_msg' => ['int|false', 'imap'=>'resource'], - 'imap_num_recent' => ['int|false', 'imap'=>'resource'], + 'imap_num_recent' => ['int', 'imap'=>'resource'], 'imap_open' => ['resource|false', 'mailbox'=>'string', 'user'=>'string', 'password'=>'string', 'flags='=>'int', 'retries='=>'int', 'options='=>'?array'], 'imap_ping' => ['bool', 'imap'=>'resource'], 'imap_qprint' => ['string|false', 'string'=>'string'], @@ -12326,14 +12326,14 @@ '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'], - 'intlcal_get' => ['mixed', 'calendar'=>'IntlCalendar', 'field'=>'int'], + 'intlcal_get' => ['int|false', 'calendar'=>'IntlCalendar', 'field'=>'int'], 'intlcal_get_actual_maximum' => ['int', 'calendar'=>'IntlCalendar', 'field'=>'int'], 'intlcal_get_actual_minimum' => ['int', 'calendar'=>'IntlCalendar', 'field'=>'int'], 'intlcal_get_available_locales' => ['array'], 'intlcal_get_day_of_week_type' => ['int', 'calendar'=>'IntlCalendar', 'dayOfWeek'=>'int'], 'intlcal_get_first_day_of_week' => ['int', 'calendar'=>'IntlCalendar'], 'intlcal_get_greatest_minimum' => ['int', 'calendar'=>'IntlCalendar', 'field'=>'int'], - 'intlcal_get_keyword_values_for_locale' => ['Iterator|false', 'keyword'=>'string', 'locale'=>'string', 'onlyCommon'=>'bool'], + 'intlcal_get_keyword_values_for_locale' => ['IntlIterator|false', 'keyword'=>'string', 'locale'=>'string', 'onlyCommon'=>'bool'], 'intlcal_get_least_maximum' => ['int', 'calendar'=>'IntlCalendar', 'field'=>'int'], 'intlcal_get_locale' => ['string', 'calendar'=>'IntlCalendar', 'type'=>'int'], 'intlcal_get_maximum' => ['int|false', 'calendar'=>'IntlCalendar', 'field'=>'int'], @@ -12364,7 +12364,7 @@ 'intlgregcal_create_instance' => ['IntlGregorianCalendar', 'timezoneOrYear='=>'mixed', 'localeOrMonth='=>'string'], 'intlgregcal_get_gregorian_change' => ['float', 'calendar'=>'IntlGregorianCalendar'], 'intlgregcal_is_leap_year' => ['bool', 'calendar'=>'int'], - 'intlgregcal_set_gregorian_change' => ['void', 'calendar'=>'IntlGregorianCalendar', 'timestamp'=>'float'], + 'intlgregcal_set_gregorian_change' => ['bool', 'calendar'=>'IntlGregorianCalendar', 'timestamp'=>'float'], 'intltz_count_equivalent_ids' => ['int', 'timezoneId'=>'string'], 'intltz_create_enumeration' => ['IntlIterator', 'countryOrRawOffset'=>'mixed'], 'intltz_create_time_zone' => ['?IntlTimeZone', 'timezoneId'=>'string'], @@ -12377,7 +12377,7 @@ 'intltz_get_error_code' => ['int', 'timezone'=>'IntlTimeZone'], 'intltz_get_error_message' => ['string', 'timezone'=>'IntlTimeZone'], 'intltz_get_id' => ['string', 'timezone'=>'IntlTimeZone'], - 'intltz_get_offset' => ['int', 'timezone'=>'IntlTimeZone', 'timestamp'=>'float', 'local'=>'bool', '&rawOffset'=>'int', '&dstOffset'=>'int'], + 'intltz_get_offset' => ['bool', 'timezone'=>'IntlTimeZone', 'timestamp'=>'float', 'local'=>'bool', '&rawOffset'=>'int', '&dstOffset'=>'int'], 'intltz_get_raw_offset' => ['int', 'timezone'=>'IntlTimeZone'], 'intltz_get_tz_data_version' => ['string', 'object'=>'IntlTimeZone'], 'intltz_has_same_rules' => ['bool', 'timezone'=>'IntlTimeZone', 'other'=>'IntlTimeZone'], @@ -12429,7 +12429,7 @@ 'java_set_encoding' => ['array', 'encoding'=>'string'], 'java_set_ignore_case' => ['void', 'ignore'=>'bool'], 'java_throw_exceptions' => ['void', 'throw'=>'bool'], - 'jddayofweek' => ['mixed', 'julian_day'=>'int', 'mode='=>'int'], + 'jddayofweek' => ['string|int', 'julian_day'=>'int', 'mode='=>'int'], 'jdmonthname' => ['string', 'julian_day'=>'int', 'mode'=>'int'], 'jdtofrench' => ['string', 'julian_day'=>'int'], 'jdtogregorian' => ['string', 'julian_day'=>'int'], @@ -12537,7 +12537,7 @@ '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'], + 'ldap_count_entries' => ['int', 'ldap'=>'resource', 'result'=>'resource'], 'ldap_delete' => ['bool', 'ldap'=>'resource', 'dn'=>'string'], 'ldap_delete_ext' => ['resource|false', 'ldap'=>'resource', 'dn'=>'string', 'controls='=>'array'], 'ldap_dn2ufn' => ['string', 'dn'=>'string'], @@ -12550,7 +12550,7 @@ 'ldap_first_entry' => ['resource|false', 'ldap'=>'resource', 'result'=>'resource'], 'ldap_first_reference' => ['resource|false', 'ldap'=>'resource', 'result'=>'resource'], 'ldap_free_result' => ['bool', 'ldap'=>'resource'], - 'ldap_get_attributes' => ['array|false', 'ldap'=>'resource', 'entry'=>'resource'], + 'ldap_get_attributes' => ['array', 'ldap'=>'resource', 'entry'=>'resource'], 'ldap_get_dn' => ['string|false', 'ldap'=>'resource', 'entry'=>'resource'], 'ldap_get_entries' => ['array|false', 'ldap'=>'resource', 'result'=>'resource'], 'ldap_get_option' => ['bool', 'ldap'=>'resource', 'option'=>'int', '&w_value'=>'mixed'], @@ -13122,7 +13122,7 @@ 'msession_timeout' => ['int', 'session'=>'string', 'param='=>'int'], 'msession_uniq' => ['string', 'param'=>'int', 'classname='=>'string', 'data='=>'string'], 'msession_unlock' => ['int', 'session'=>'string', 'key'=>'int'], - 'msg_get_queue' => ['resource', 'key'=>'int', 'permissions='=>'int'], + 'msg_get_queue' => ['resource|false', 'key'=>'int', 'permissions='=>'int'], 'msg_queue_exists' => ['bool', 'key'=>'int'], 'msg_receive' => ['bool', 'queue'=>'resource', 'desired_message_type'=>'int', '&w_received_message_type'=>'int', 'max_message_size'=>'int', '&w_message'=>'mixed', 'unserialize='=>'bool', 'flags='=>'int', '&w_error_code='=>'int'], 'msg_remove_queue' => ['bool', 'queue'=>'resource'], @@ -13938,7 +13938,7 @@ 'ob_iconv_handler' => ['string', 'contents'=>'string', 'status'=>'int'], 'ob_implicit_flush' => ['void', 'enable='=>'int'], 'ob_inflatehandler' => ['string', 'data'=>'string', 'mode'=>'int'], - 'ob_list_handlers' => ['false|list'], + 'ob_list_handlers' => ['list'], 'ob_start' => ['bool', 'callback='=>'string|array|?callable', 'chunk_size='=>'int', 'flags='=>'int'], 'ob_tidyhandler' => ['string', 'input'=>'string', 'mode='=>'int'], 'oci_bind_array_by_name' => ['bool', 'statement'=>'resource', 'param'=>'string', '&rw_var'=>'array', 'max_array_length'=>'int', 'max_item_length='=>'int', 'type='=>'int'], @@ -14140,8 +14140,8 @@ 'openssl_random_pseudo_bytes' => ['string|false', 'length'=>'int', '&w_strong_result='=>'bool'], 'openssl_seal' => ['int|false', 'data'=>'string', '&w_sealed_data'=>'string', '&w_encrypted_keys'=>'array', 'public_key'=>'array', 'cipher_algo='=>'string', '&rw_iv='=>'string'], 'openssl_sign' => ['bool', 'data'=>'string', '&w_signature'=>'string', 'private_key'=>'resource|string', 'algorithm='=>'int|string'], - 'openssl_spki_export' => ['?string', 'spki'=>'string'], - 'openssl_spki_export_challenge' => ['?string', 'spki'=>'string'], + 'openssl_spki_export' => ['string|false', 'spki'=>'string'], + 'openssl_spki_export_challenge' => ['string|false', 'spki'=>'string'], 'openssl_spki_new' => ['?string', 'private_key'=>'resource', 'challenge'=>'string', 'digest_algo='=>'int'], 'openssl_spki_verify' => ['bool', 'spki'=>'string'], 'openssl_verify' => ['-1|0|1', 'data'=>'string', 'signature'=>'string', 'public_key'=>'resource|string', 'algorithm='=>'int|string'], @@ -14186,7 +14186,7 @@ 'parse_ini_file' => ['array|false', 'filename'=>'string', 'process_sections='=>'bool', 'scanner_mode='=>'int'], 'parse_ini_string' => ['array|false', 'ini_string'=>'string', 'process_sections='=>'bool', 'scanner_mode='=>'int'], 'parse_str' => ['void', 'string'=>'string', '&w_result='=>'array'], - 'parse_url' => ['mixed|false', 'url'=>'string', 'component='=>'int'], + 'parse_url' => ['int|string|array|null|false', 'url'=>'string', 'component='=>'int'], 'parsekit_compile_file' => ['array', 'filename'=>'string', 'errors='=>'array', 'options='=>'int'], 'parsekit_compile_string' => ['array', 'phpcode'=>'string', 'errors='=>'array', 'options='=>'int'], 'parsekit_func_arginfo' => ['array', 'function'=>'mixed'], @@ -14211,7 +14211,7 @@ 'pcntl_sigprocmask' => ['bool', 'mode'=>'int', 'signals'=>'array', '&w_old_signals='=>'array'], 'pcntl_sigtimedwait' => ['int', 'signals'=>'array', '&w_info='=>'array', 'seconds='=>'int', 'nanoseconds='=>'int'], 'pcntl_sigwaitinfo' => ['int', 'signals'=>'array', '&w_info='=>'array'], - 'pcntl_strerror' => ['string|false', 'error_code'=>'int'], + 'pcntl_strerror' => ['string', 'error_code'=>'int'], 'pcntl_wait' => ['int', '&w_status'=>'int', 'flags='=>'int', '&w_resource_usage='=>'array'], 'pcntl_waitpid' => ['int', 'process_id'=>'int', '&w_status'=>'int', 'flags='=>'int', '&w_resource_usage='=>'array'], 'pcntl_wexitstatus' => ['int', 'status'=>'int'], @@ -14569,7 +14569,7 @@ 'pspell_add_to_session' => ['bool', 'dictionary'=>'int', 'word'=>'string'], 'pspell_check' => ['bool', 'dictionary'=>'int', 'word'=>'string'], 'pspell_clear_session' => ['bool', 'dictionary'=>'int'], - 'pspell_config_create' => ['int|false', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string'], + 'pspell_config_create' => ['int', 'language'=>'string', 'spelling='=>'string', 'jargon='=>'string', 'encoding='=>'string'], 'pspell_config_data_dir' => ['bool', 'config'=>'int', 'directory'=>'string'], 'pspell_config_dict_dir' => ['bool', 'config'=>'int', 'directory'=>'string'], 'pspell_config_ignore' => ['bool', 'config'=>'int', 'min_length'=>'int'], @@ -15229,7 +15229,7 @@ 'streamWrapper::url_stat' => ['array', 'path'=>'string', 'flags'=>'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_new' => ['object', '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'], @@ -16428,7 +16428,7 @@ 'xml_parser_create' => ['resource', 'encoding='=>'string'], 'xml_parser_create_ns' => ['resource', 'encoding='=>'string', 'separator='=>'string'], 'xml_parser_free' => ['bool', 'parser'=>'resource'], - 'xml_parser_get_option' => ['mixed|false', 'parser'=>'resource', 'option'=>'int'], + 'xml_parser_get_option' => ['string|false', 'parser'=>'resource', 'option'=>'int'], 'xml_parser_set_option' => ['bool', 'parser'=>'resource', 'option'=>'int', 'value'=>'mixed'], 'xml_set_character_data_handler' => ['bool', 'parser'=>'resource', 'handler'=>'callable'], 'xml_set_default_handler' => ['bool', 'parser'=>'resource', 'handler'=>'callable'], diff --git a/tests/Internal/Codebase/InternalCallMapHandlerTest.php b/tests/Internal/Codebase/InternalCallMapHandlerTest.php index fd675727a15..70779f25f82 100644 --- a/tests/Internal/Codebase/InternalCallMapHandlerTest.php +++ b/tests/Internal/Codebase/InternalCallMapHandlerTest.php @@ -881,26 +881,8 @@ class InternalCallMapHandlerTest extends TestCase 'datetimeimmutable::createfrominterface', 'fiber::getcurrent', 'filteriterator::getinneriterator' => ['8.1', '8.2'], - 'imageinterlace' => ['8.0'], - 'imageloadfont' => ['8.1', '8.2'], - 'imagesx', - 'imagesy', - 'imap_mailboxmsginfo', - 'imap_msgno', - 'imap_num_recent', 'infiniteiterator::getinneriterator' => ['8.1', '8.2'], - 'inflate_init', - 'intlbreakiterator::gettext' => ['8.1', '8.2'], - 'intlbreakiterator::settext' => ['8.1', '8.2'], - 'intlcal_get', - 'intlcal_get_keyword_values_for_locale', - 'intlgregcal_set_gregorian_change', - 'intltz_get_offset', 'iteratoriterator::getinneriterator' => ['8.1', '8.2'], - 'jddayofweek', - 'jdtounix', - 'ldap_count_entries', - 'ldap_get_attributes', 'limititerator::getinneriterator' => ['8.1', '8.2'], 'locale::canonicalize' => ['8.1', '8.2'], 'locale::getallvariants' => ['8.1', '8.2'], @@ -909,45 +891,18 @@ class InternalCallMapHandlerTest extends TestCase 'locale::getregion' => ['8.1', '8.2'], 'locale::getscript' => ['8.1', '8.2'], 'locale::parselocale' => ['8.1', '8.2'], - 'mb_encoding_aliases', 'messageformatter::create' => ['8.1', '8.2'], - 'metaphone', - 'msg_get_queue', 'multipleiterator::current' => ['8.1', '8.2'], 'mysqli::get_charset' => ['8.1', '8.2'], 'mysqli_stmt::get_warnings' => ['8.1', '8.2'], 'mysqli_stmt_get_warnings', 'mysqli_stmt_insert_id', 'norewinditerator::getinneriterator' => ['8.1', '8.2'], - 'ob_list_handlers', - 'openssl_random_pseudo_bytes', - 'openssl_spki_export', - 'openssl_spki_export_challenge', - 'pack', - 'parentiterator::valid', - 'parse_url', 'passthru', - 'pcntl_exec', - 'pcntl_strerror', - 'pdo::getattribute', - 'phar::getalias' => ['8.1', '8.2'], - 'phar::iscompressed' => ['8.1', '8.2'], - 'phardata::compressfiles' => ['8.1', '8.2'], - 'phardata::decompress' => ['8.1', '8.2'], - 'phptoken::gettokenname', - 'pspell_config_create', - 'pspell_new' => ['8.1', '8.2'], - 'pspell_new_config' => ['8.1', '8.2'], - 'pspell_new_personal' => ['8.1', '8.2'], 'recursivecachingiterator::getinneriterator' => ['8.1', '8.2'], 'recursivecallbackfilteriterator::getinneriterator' => ['8.1', '8.2'], 'recursivefilteriterator::getinneriterator' => ['8.1', '8.2'], - 'recursiveregexiterator::current', 'recursiveregexiterator::getinneriterator' => ['8.1', '8.2'], - 'recursiveregexiterator::key', - 'recursiveregexiterator::next', - 'recursiveregexiterator::rewind', - 'recursiveregexiterator::valid', 'reflectionclass::getstaticproperties' => ['8.1', '8.2'], 'reflectionclass::newinstanceargs' => ['8.1', '8.2'], 'reflectionfunction::getclosurescopeclass' => ['8.1', '8.2'], @@ -958,35 +913,8 @@ class InternalCallMapHandlerTest extends TestCase 'reflectionobject::newinstanceargs' => ['8.1', '8.2'], 'regexiterator::getinneriterator' => ['8.1', '8.2'], 'register_shutdown_function' => ['8.0', '8.1'], - 'splfileobject::fgets' => ['8.1', '8.2'], 'splfileobject::fscanf' => ['8.1', '8.2'], - 'splfileobject::getcurrentline' => ['8.1', '8.2'], - 'splheap::recoverfromcorruption' => ['8.1', '8.2'], - 'splminheap::insert' => ['8.1', '8.2'], - 'splminheap::iscorrupted' => ['8.1', '8.2'], - 'splminheap::key' => ['8.1', '8.2'], - 'splminheap::recoverfromcorruption' => ['8.1', '8.2'], - 'splobjectstorage::offsetunset' => ['8.1', '8.2'], - 'splpriorityqueue::key' => ['8.1', '8.2'], - 'splpriorityqueue::setextractflags' => ['8.1', '8.2'], 'spltempfileobject::fscanf' => ['8.1', '8.2'], - 'stream_bucket_new', - 'stream_set_chunk_size', - 'transliterator::createinverse' => ['8.1', '8.2'], - 'uconverter::getaliases' => ['8.1', '8.2'], - 'uconverter::getdestinationencoding' => ['8.1', '8.2'], - 'uconverter::getdestinationtype' => ['8.1', '8.2'], - 'uconverter::geterrormessage' => ['8.1', '8.2'], - 'uconverter::getsourceencoding' => ['8.1', '8.2'], - 'uconverter::getsourcetype' => ['8.1', '8.2'], - 'uconverter::getstandards' => ['8.1', '8.2'], - 'uconverter::getsubstchars' => ['8.1', '8.2'], - 'uconverter::toucallback' => ['8.1', '8.2'], - 'xml_get_current_byte_index', - 'xml_get_current_column_number', - 'xml_get_current_line_number', - 'xml_get_error_code', - 'xml_parser_get_option', 'xmlrpc_encode', 'xmlrpc_server_create', 'xsltprocessor::transformtoxml' => ['8.1', '8.2'],