- error_reporting: documentation ( source)
<?php
namespace NS1 {
class c1 {
public function __construct(\NS2\c1 $c1) {
}
}
}
namespace NS2 {
class c1 {
public function __construct() {
}
}
}
namespace Foo {
error_reporting(E_ALL);
ini_seT('display_errors', 'on');
$r = new \ReflectionClass('\NS1\c1');
echo $r->getName();
echo '<br />';
$p = $r->getConstructor()->getParameters();
echo $p[0]->getClass()->getName();
die;
}