mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 09:36:11 +02:00
Wrap up type-hint adding to all handlers
This commit is contained in:
@@ -114,9 +114,11 @@ class RavenHandler extends AbstractProcessingHandler
|
||||
*
|
||||
* @param FormatterInterface $formatter
|
||||
*/
|
||||
public function setBatchFormatter(FormatterInterface $formatter): void
|
||||
public function setBatchFormatter(FormatterInterface $formatter): self
|
||||
{
|
||||
$this->batchFormatter = $formatter;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -250,13 +252,17 @@ class RavenHandler extends AbstractProcessingHandler
|
||||
/**
|
||||
* @link https://docs.sentry.io/learn/breadcrumbs/
|
||||
*/
|
||||
public function addBreadcrumb(array $crumb): void
|
||||
public function addBreadcrumb(array $crumb): self
|
||||
{
|
||||
$this->ravenClient->breadcrumbs->record($crumb);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function resetBreadcrumbs(): void
|
||||
public function resetBreadcrumbs(): self
|
||||
{
|
||||
$this->ravenClient->breadcrumbs->reset();
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user