if (!
$this->dumper ||
$this->dumper instanceof Connection && !
$this->dumper->
write($data)) { $this->isCollected = false;
} $context =
$data->
getContext();
$label =
$context['label'
] ?? '';
unset($context['label'
]);
$data =
$data->
withContext($context);
if ($this->dumper && !
$this->dumper instanceof Connection
) { $this->
doDump($this->dumper,
$data,
$name,
$file,
$line,
$label);
} if (!
$this->dataCount
) { $this->data =
[];
} $this->data
[] =
compact('data', 'name', 'file', 'line', 'fileExcerpt', 'label'
);
++
$this->dataCount;
$this->stopwatch?->
stop('dump'
);
return null;
}