1--TEST-- 2Test typed properties type applies to all props in group 3--FILE-- 4<?php 5class Foo { 6 public int $bar, 7 $qux; 8} 9 10$reflector = new ReflectionClass(Foo::class); 11 12$prop = $reflector->getProperty("qux"); 13 14var_dump($prop->getType()->getName()); 15?> 16--EXPECT-- 17string(3) "int" 18