Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Zend/zend_compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
2 changes: 1 addition & 1 deletion ext/reflection/tests/mixed_type.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class A
{
public mixed $a;

public function test(mixed $a): mixed {}
public function test(mixed ...$a): mixed {}
}

$a = new A();
Expand Down