Skip to content

Commit

Permalink
Merge pull request #51 from Fleshgrinder/throws-annoation
Browse files Browse the repository at this point in the history
Added throws annoation to log methods
  • Loading branch information
Seldaek authored Oct 25, 2019
2 parents c4421fc + 4aa23b5 commit fb0003b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Psr/Log/LoggerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public function debug($message, array $context = array());
* @param array $context
*
* @return void
*
* @throws \Psr\Log\InvalidArgumentException
*/
public function log($level, $message, array $context = array());
}
2 changes: 2 additions & 0 deletions Psr/Log/LoggerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ public function debug($message, array $context = array())
* @param array $context
*
* @return void
*
* @throws \Psr\Log\InvalidArgumentException
*/
abstract public function log($level, $message, array $context = array());
}
2 changes: 2 additions & 0 deletions Psr/Log/NullLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ class NullLogger extends AbstractLogger
* @param array $context
*
* @return void
*
* @throws \Psr\Log\InvalidArgumentException
*/
public function log($level, $message, array $context = array())
{
Expand Down

0 comments on commit fb0003b

Please sign in to comment.