diff options
Diffstat (limited to 'Zend/zend_inheritance.c')
-rw-r--r-- | Zend/zend_inheritance.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zend/zend_inheritance.c b/Zend/zend_inheritance.c index 72f4888228..f42998a8f8 100644 --- a/Zend/zend_inheritance.c +++ b/Zend/zend_inheritance.c @@ -507,8 +507,8 @@ static inheritance_status zend_do_perform_arg_type_hint_check( zend_class_entry *fe_scope, zend_arg_info *fe_arg_info, zend_class_entry *proto_scope, zend_arg_info *proto_arg_info) /* {{{ */ { - if (!ZEND_TYPE_IS_SET(fe_arg_info->type)) { - /* Child with no type is always compatible */ + if (!ZEND_TYPE_IS_SET(fe_arg_info->type) || ZEND_TYPE_PURE_MASK(fe_arg_info->type) == MAY_BE_ANY) { + /* Child with no type or mixed type is always compatible */ return INHERITANCE_SUCCESS; } |