1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-21 08:36:33 +02:00

Use @return $this where applicable (#1828)

This commit is contained in:
Nicolas Grekas
2023-08-03 14:04:37 +02:00
committed by GitHub
parent e239236968
commit 9546d94bdc
20 changed files with 132 additions and 6 deletions

View File

@@ -33,6 +33,7 @@ class TagProcessor implements ProcessorInterface
/**
* @param string[] $tags
* @return $this
*/
public function addTags(array $tags = []): self
{
@@ -43,6 +44,7 @@ class TagProcessor implements ProcessorInterface
/**
* @param string[] $tags
* @return $this
*/
public function setTags(array $tags = []): self
{

View File

@@ -90,6 +90,9 @@ class WebProcessor implements ProcessorInterface
return $record;
}
/**
* @return $this
*/
public function addExtraField(string $extraName, string $serverName): self
{
$this->extraFields[$extraName] = $serverName;