From fd127027cd3dd110b1ef19b9937ec6ed745df207 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 7 Nov 2016 09:56:02 +0100 Subject: [PATCH] Use type hints instead of phpdoc --- src/Monolog/Registry.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/Monolog/Registry.php b/src/Monolog/Registry.php index acd90daa..b63ef2e8 100644 --- a/src/Monolog/Registry.php +++ b/src/Monolog/Registry.php @@ -67,10 +67,8 @@ class Registry * Checks if such logging channel exists by name or instance * * @param string|Logger $logger Name or logger instance - * - * @return bool */ - public static function hasLogger($logger) + public static function hasLogger($logger): bool { if ($logger instanceof Logger) { $index = array_search($logger, self::$loggers, true); @@ -110,9 +108,8 @@ class Registry * * @param string $name Name of the requested Logger instance * @throws \InvalidArgumentException If named Logger instance is not in the registry - * @return Logger Requested instance of Logger */ - public static function getInstance($name) + public static function getInstance($name): Logger { if (!isset(self::$loggers[$name])) { throw new InvalidArgumentException(sprintf('Requested "%s" logger instance is not in the registry', $name));