Skip to content

Commit f076ab0

Browse files
committed
Fix #80229: assert_options should have int and bool for parameter PHPDoc
Closes GH-6348
1 parent d6a18a7 commit f076ab0

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,7 @@ function get_html_translation_table(int $table = HTML_SPECIALCHARS, int $flags =
528528

529529
function assert(mixed $assertion, Throwable|string|null $description = null): bool {}
530530

531-
/** @param string|callable|null $value */
532-
function assert_options(int $option, $value = UNKNOWN): array|object|int|string|null {}
531+
function assert_options(int $option, mixed $value = UNKNOWN): array|object|int|string|null {}
533532

534533
/* string.c */
535534

ext/standard/basic_functions_arginfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 4cac5b648d326f06e5866f32881583c87d9bce73 */
2+
* Stub hash: 146996b3110f85a6a2d074fb910f0d7aae573358 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0)
55
ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0)
@@ -796,7 +796,7 @@ ZEND_END_ARG_INFO()
796796

797797
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)
798798
ZEND_ARG_TYPE_INFO(0, option, IS_LONG, 0)
799-
ZEND_ARG_INFO(0, value)
799+
ZEND_ARG_TYPE_INFO(0, value, IS_MIXED, 0)
800800
ZEND_END_ARG_INFO()
801801

802802
#define arginfo_bin2hex arginfo_base64_encode

0 commit comments

Comments
 (0)