1--TEST--
2Test that the mixed type is reflectable
3--FILE--
4<?php
5class A
6{
7    public mixed $a;
8
9    public function test(mixed ...$a): mixed {}
10}
11
12$a = new A();
13
14$object = new ReflectionObject($a);
15$method = new ReflectionMethod($a, "test");
16
17var_dump($object->getProperty("a")->getType()->getName());
18var_dump($method->getParameters()[0]->getType()->getName());
19var_dump($method->getReturnType()->getName());
20
21var_dump((string) $object->getProperty("a")->getType());
22var_dump((string) $method->getParameters()[0]->getType());
23var_dump((string) $method->getReturnType());
24
25?>
26--EXPECT--
27string(5) "mixed"
28string(5) "mixed"
29string(5) "mixed"
30string(5) "mixed"
31string(5) "mixed"
32string(5) "mixed"
33