This is an error 404
There are `0` results
preferences:
147.18 ms | 1399 KiB | 7 Q<?hh
class X<T>{
public function m(T $a, int $b){}
}
function f(?int $one, @int $two, int $three) {}
echo "Testing getTypehintText() on f(): \n";
$r = new ReflectionFunction('f');
foreach ($r->getParameters() as $p) {
echo "Parameter $".$p->getName().": ";
var_dump($p->getTypehintText());
}
echo "Testing getTypehintText() on X::m(): \n";
$r = new ReflectionMethod('X::m');
foreach ($r->getParameters() as $p) {
echo "Parameter $".$p->getName().": ";
var_dump($p->getTypehintText());
}