diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c index d8a54dbd44e56..5dfa5f2a3d2e0 100644 --- a/Zend/zend_compile.c +++ b/Zend/zend_compile.c @@ -1184,7 +1184,7 @@ zend_string *zend_type_to_string_resolved(zend_type type, zend_class_entry *scop str = zend_string_copy(ZEND_TYPE_CE(type)->name); } - uint32_t type_mask = ZEND_TYPE_FULL_MASK(type); + uint32_t type_mask = ZEND_TYPE_PURE_MASK(type); if (type_mask == MAY_BE_ANY) { str = add_type_string(str, ZSTR_KNOWN(ZEND_STR_MIXED)); diff --git a/ext/reflection/tests/mixed_type.phpt b/ext/reflection/tests/mixed_type.phpt index d44b91789cd39..2860e603c1700 100644 --- a/ext/reflection/tests/mixed_type.phpt +++ b/ext/reflection/tests/mixed_type.phpt @@ -6,7 +6,7 @@ class A { public mixed $a; - public function test(mixed $a): mixed {} + public function test(mixed ...$a): mixed {} } $a = new A();