1
0
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:
Jordi Boggiano
2018-11-19 23:28:33 +01:00
parent 1c5b0b8ff4
commit 4a33226f25
47 changed files with 338 additions and 352 deletions

View File

@@ -14,7 +14,7 @@ namespace Monolog\Processor;
/**
* Injects value of gethostname in all records
*/
class HostnameProcessor
class HostnameProcessor implements ProcessorInterface
{
private static $host;

View File

@@ -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