[VarDumper] fix infinite recursion
This commit is contained in:
parent
bfd308ff4a
commit
56d9f47857
@ -62,7 +62,7 @@ class ClassStub extends ConstStub
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (null !== $callable && $r instanceof \ReflectionFunctionAbstract) {
|
if (null !== $callable && $r instanceof \ReflectionFunctionAbstract) {
|
||||||
$s = ReflectionCaster::castFunctionAbstract($r, [], new Stub(), true);
|
$s = ReflectionCaster::castFunctionAbstract($r, [], new Stub(), true, Caster::EXCLUDE_VERBOSE);
|
||||||
$s = ReflectionCaster::getSignature($s);
|
$s = ReflectionCaster::getSignature($s);
|
||||||
|
|
||||||
if ('()' === substr($identifier, -2)) {
|
if ('()' === substr($identifier, -2)) {
|
||||||
|
@ -212,7 +212,7 @@ class ReflectionCaster
|
|||||||
$a[$prefix.'parameters'] = new EnumStub($a[$prefix.'parameters']);
|
$a[$prefix.'parameters'] = new EnumStub($a[$prefix.'parameters']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($v = $c->getStaticVariables()) {
|
if (!($filter & Caster::EXCLUDE_VERBOSE) && $v = $c->getStaticVariables()) {
|
||||||
foreach ($v as $k => &$v) {
|
foreach ($v as $k => &$v) {
|
||||||
if (\is_object($v)) {
|
if (\is_object($v)) {
|
||||||
$a[$prefix.'use']['$'.$k] = new CutStub($v);
|
$a[$prefix.'use']['$'.$k] = new CutStub($v);
|
||||||
|
Reference in New Issue
Block a user