1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-23 09:36:11 +02:00

return self on several setter/builder methods for more consistent behaviour (#1609)

This commit is contained in:
smiley
2022-03-07 14:24:20 +01:00
committed by GitHub
parent 16cc886c02
commit 168bb6e53d
4 changed files with 22 additions and 8 deletions

View File

@@ -272,9 +272,11 @@ class Logger implements LoggerInterface, ResettableInterface
*
* @param bool $micro True to use microtime() to create timestamps
*/
public function useMicrosecondTimestamps(bool $micro): void
public function useMicrosecondTimestamps(bool $micro): self
{
$this->microsecondTimestamps = $micro;
return $this;
}
/**