summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkrzysiekpiasecki <krzysiekpiasecki@gmail.com>2016-08-29 20:46:48 +0200
committerkrzysiekpiasecki <krzysiekpiasecki@gmail.com>2016-08-29 20:46:48 +0200
commit4ebf6fa43fc06594f228814e89fe7d964a767a09 (patch)
treefab765f02d30358b2841bc0c2433606111c3b9c9 /src
parent07b6c1c4171a030787f2bc961272b1887032304e (diff)
downloadmonolog-4ebf6fa43fc06594f228814e89fe7d964a767a09.zip
monolog-4ebf6fa43fc06594f228814e89fe7d964a767a09.tar.gz
monolog-4ebf6fa43fc06594f228814e89fe7d964a767a09.tar.bz2
Declaring That a Logger Can Throw an Exception
Diffstat (limited to 'src')
-rw-r--r--src/Monolog/Logger.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Monolog/Logger.php b/src/Monolog/Logger.php
index 8f981e3..0661451 100644
--- a/src/Monolog/Logger.php
+++ b/src/Monolog/Logger.php
@@ -187,6 +187,7 @@ class Logger implements LoggerInterface
* Pops a handler from the stack
*
* @return HandlerInterface
+ * @throws \LogicException If empty handler stack
*/
public function popHandler(): HandlerInterface
{
@@ -240,6 +241,7 @@ class Logger implements LoggerInterface
* Removes the processor on top of the stack and returns it.
*
* @return callable
+ * @throws \LogicException If empty processor stack
*/
public function popProcessor(): callable
{
@@ -347,6 +349,7 @@ class Logger implements LoggerInterface
*
* @param int $level
* @return string
+ * @throws \Psr\Log\InvalidArgumentException If level is not defined
*/
public static function getLevelName(int $level): string
{
@@ -362,6 +365,7 @@ class Logger implements LoggerInterface
*
* @param string|int Level number (monolog) or name (PSR-3)
* @return int
+ * @throws \Psr\Log\InvalidArgumentException If level is not defined
*/
public static function toMonologLevel($level): int
{