mirror of
https://github.com/filp/whoops.git
synced 2026-09-04 14:37:28 +00:00
PrettyPageHandler: explain why not all arguments are dumped
This commit is contained in:
@@ -141,7 +141,8 @@ class PrettyPageHandler extends Handler
|
||||
|
||||
if (class_exists('Symfony\Component\VarDumper\Cloner\VarCloner')) {
|
||||
$cloner = new VarCloner();
|
||||
// Only dump object internals if a custom caster exists.
|
||||
// Only dump object internals if a custom caster exists for performance reasons
|
||||
// https://github.com/filp/whoops/pull/404
|
||||
$cloner->addCasters(['*' => function ($obj, $a, $stub, $isNested, $filter = 0) {
|
||||
$class = $stub->class;
|
||||
$classes = [$class => $class] + class_parents($class) + class_implements($class);
|
||||
|
||||
Reference in New Issue
Block a user