mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
fix bug #71428: Validation type inheritance with = NULL
This commit is contained in:
parent
3f56dfe866
commit
dd70c39556
2 changed files with 13 additions and 0 deletions
|
@ -488,6 +488,8 @@ static ZEND_COLD zend_string *zend_get_function_declaration(const zend_function
|
|||
} else {
|
||||
smart_str_appends(&str, "NULL");
|
||||
}
|
||||
} else if (arg_info->type_hint && arg_info->allow_null) {
|
||||
smart_str_appends(&str, " = NULL");
|
||||
}
|
||||
|
||||
if (++i < num_args) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue