mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Remove null return type from msgfmt_parse_message()
This doesn't seem to possible. Only false is returned on failure.
This commit is contained in:
parent
d3083a4fcc
commit
9fe4966811
@ -34,7 +34,7 @@ class MessageFormatter
|
||||
* @tentative-return-type
|
||||
* @alias msgfmt_parse_message
|
||||
*/
|
||||
public static function parseMessage(string $locale, string $pattern, string $message): array|false|null {}
|
||||
public static function parseMessage(string $locale, string $pattern, string $message): array|false {}
|
||||
|
||||
/**
|
||||
* @tentative-return-type
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: c55f45648d120c74b84018da9786d49d9c203639 */
|
||||
* Stub hash: 3fc29ffe87caf85a84e97470d0b59a26c801457c */
|
||||
|
||||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MessageFormatter___construct, 0, 0, 2)
|
||||
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
|
||||
@ -25,7 +25,7 @@ ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_MessageFormatter
|
||||
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_MessageFormatter_parseMessage, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE|MAY_BE_NULL)
|
||||
ZEND_BEGIN_ARG_WITH_TENTATIVE_RETURN_TYPE_MASK_EX(arginfo_class_MessageFormatter_parseMessage, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE)
|
||||
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
|
||||
|
@ -330,7 +330,7 @@ function msgfmt_format_message(string $locale, string $pattern, array $values):
|
||||
|
||||
function msgfmt_parse(MessageFormatter $formatter, string $string): array|false {}
|
||||
|
||||
function msgfmt_parse_message(string $locale, string $pattern, string $message): array|false|null {}
|
||||
function msgfmt_parse_message(string $locale, string $pattern, string $message): array|false {}
|
||||
|
||||
function msgfmt_set_pattern(MessageFormatter $formatter, string $pattern): bool {}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 131ce191e92704737b4f20d19ddf53c181e590a6 */
|
||||
* Stub hash: 65c3b7070a1cf1a23e07e35afa5cc367b36eaa57 */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_intlcal_create_instance, 0, 0, IntlCalendar, 1)
|
||||
ZEND_ARG_INFO_WITH_DEFAULT_VALUE(0, timezone, "null")
|
||||
@ -582,7 +582,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_msgfmt_parse, 0, 2, MAY_BE_ARRAY
|
||||
ZEND_ARG_TYPE_INFO(0, string, IS_STRING, 0)
|
||||
ZEND_END_ARG_INFO()
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_msgfmt_parse_message, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE|MAY_BE_NULL)
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_msgfmt_parse_message, 0, 3, MAY_BE_ARRAY|MAY_BE_FALSE)
|
||||
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, pattern, IS_STRING, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, message, IS_STRING, 0)
|
||||
|
Loading…
Reference in New Issue
Block a user