1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 18:53:33 +02:00

Fix #80229: assert_options should have int and bool for parameter PHPDoc

Closes GH-6348
This commit is contained in:
Máté Kocsis
2020-10-17 11:29:13 +02:00
parent d6a18a7738
commit f076ab0c0c
2 changed files with 3 additions and 4 deletions
+1 -2
View File
@@ -528,8 +528,7 @@ function get_html_translation_table(int $table = HTML_SPECIALCHARS, int $flags =
function assert(mixed $assertion, Throwable|string|null $description = null): bool {}
/** @param string|callable|null $value */
function assert_options(int $option, $value = UNKNOWN): array|object|int|string|null {}
function assert_options(int $option, mixed $value = UNKNOWN): array|object|int|string|null {}
/* string.c */
+2 -2
View File
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: 4cac5b648d326f06e5866f32881583c87d9bce73 */
* Stub hash: 146996b3110f85a6a2d074fb910f0d7aae573358 */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
@@ -796,7 +796,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_assert_options, 0, 1, MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_LONG|MAY_BE_STRING|MAY_BE_NULL)
ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
ZEND_ARG_INFO(0, value)
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
ZEND_END_ARG_INFO()
#define arginfo_bin2hex arginfo_base64_encode