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