1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-04 12:17:35 +02:00

Docblock improvements, fixes #1155

This commit is contained in:
Jordi Boggiano
2018-06-08 21:58:29 +02:00
committed by GitHub
parent 12c9f58de2
commit 1802e5ab25

View File

@@ -348,9 +348,7 @@ class Logger implements LoggerInterface
/**
* Gets the name of the logging level.
*
* @param int $level
* @throws \Psr\Log\InvalidArgumentException If level is not defined
* @return string
*/
public static function getLevelName(int $level): string
{
@@ -366,7 +364,6 @@ class Logger implements LoggerInterface
*
* @param string|int Level number (monolog) or name (PSR-3)
* @throws \Psr\Log\InvalidArgumentException If level is not defined
* @return int
*/
public static function toMonologLevel($level): int
{
@@ -383,9 +380,6 @@ class Logger implements LoggerInterface
/**
* Checks whether the Logger has a handler that listens on the given level
*
* @param int $level
* @return bool
*/
public function isHandling(int $level): bool
{
@@ -540,9 +534,7 @@ class Logger implements LoggerInterface
}
/**
* Set the timezone to be used for the timestamp of log records.
*
* @param DateTimeZone $tz Timezone object
* Sets the timezone to be used for the timestamp of log records.
*/
public function setTimezone(DateTimeZone $tz): self
{
@@ -552,9 +544,7 @@ class Logger implements LoggerInterface
}
/**
* Set the timezone to be used for the timestamp of log records.
*
* @return DateTimeZone
* Returns the timezone to be used for the timestamp of log records.
*/
public function getTimezone(): DateTimeZone
{