- var_dump: documentation ( source)
<?php
use Other\Hierarchy\TheOtherNamespace;
$a = function(\Some\Random\NS $b) {
};
$b = function(TheOtherNamespace $c) {
};
$handlers = [$b, $a];
foreach ($handlers as $handler)
{
$r = new ReflectionFunction($handler);
$p = $r->getParameters();
var_dump($p[0]);
var_dump($p[0]->getClass());
}