if ($withChildren) { if ($cursor->skipChildren
) { $withChildren = false;
$cut = -1;
} else { $cut =
$this->
dumpChildren($dumper,
$cursor,
$refs,
$children,
$cut,
$item->type, null !==
$item->class
);
} } elseif ($children && 0 <=
$cut) { $cut += \
count($children);
} $cursor->skipChildren = false;
$dumper->
leaveHash($cursor,
$item->type,
$item->class,
$withChildren,
$cut);
break;
case Stub::TYPE_SCALAR:
$dumper->
dumpScalar($cursor, 'default',
$item->attr
['value'
]);
break;
default:
throw new \
RuntimeException(sprintf('Unexpected Stub type: "%s".',
$item->type
));
} } elseif ('array' ===
$type) { $dumper->
enterHash($cursor, Cursor::HASH_INDEXED, 0, false
);