mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-21 16:46:11 +02:00
Wrap up type-hint adding to all handlers
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Monolog\Processor;
|
||||
/**
|
||||
* Injects value of gethostname in all records
|
||||
*/
|
||||
class HostnameProcessor
|
||||
class HostnameProcessor implements ProcessorInterface
|
||||
{
|
||||
private static $host;
|
||||
|
||||
|
@@ -25,14 +25,18 @@ class TagProcessor implements ProcessorInterface
|
||||
$this->setTags($tags);
|
||||
}
|
||||
|
||||
public function addTags(array $tags = [])
|
||||
public function addTags(array $tags = []): self
|
||||
{
|
||||
$this->tags = array_merge($this->tags, $tags);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setTags(array $tags = [])
|
||||
public function setTags(array $tags = []): self
|
||||
{
|
||||
$this->tags = $tags;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function __invoke(array $record): array
|
||||
|
Reference in New Issue
Block a user