mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
work on #71428
This commit is contained in:
parent
28f66763a4
commit
ee9a78a033
2 changed files with 18 additions and 0 deletions
|
@ -238,6 +238,11 @@ static int zend_do_perform_type_hint_check(const zend_function *fe, zend_arg_inf
|
|||
zend_string_release(fe_class_name);
|
||||
}
|
||||
|
||||
if (proto_arg_info->allow_null && !fe_arg_info->allow_null) {
|
||||
/* incompatible nullability */
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (fe_arg_info->type_hint != proto_arg_info->type_hint) {
|
||||
/* Incompatible type */
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue