Skip to content

Commit

Permalink
Be explicit about mixed context elements
Browse files Browse the repository at this point in the history
If we do not do that, SA tools like PHPStan ask that the type be
documented more precisely in implementations.
  • Loading branch information
greg0ire committed Mar 22, 2020
1 parent e1cb6ec commit 587a6ac
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions Psr/Log/LoggerInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ interface LoggerInterface
/**
* System is unusable.
*
* @param string $message
* @param array $context
* @param string $message
* @param mixed[] $context
*
* @return void
*/
Expand All @@ -35,8 +35,8 @@ public function emergency($message, array $context = array());
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
* @param string $message
* @param array $context
* @param string $message
* @param mixed[] $context
*
* @return void
*/
Expand All @@ -47,8 +47,8 @@ public function alert($message, array $context = array());
*
* Example: Application component unavailable, unexpected exception.
*
* @param string $message
* @param array $context
* @param string $message
* @param mixed[] $context
*
* @return void
*/
Expand All @@ -58,8 +58,8 @@ public function critical($message, array $context = array());
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
* @param array $context
* @param string $message
* @param mixed[] $context
*
* @return void
*/
Expand All @@ -71,8 +71,8 @@ public function error($message, array $context = array());
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
* @param array $context
* @param string $message
* @param mixed[] $context
*
* @return void
*/
Expand All @@ -81,8 +81,8 @@ public function warning($message, array $context = array());
/**
* Normal but significant events.
*
* @param string $message
* @param array $context
* @param string $message
* @param mixed[] $context
*
* @return void
*/
Expand All @@ -93,8 +93,8 @@ public function notice($message, array $context = array());
*
* Example: User logs in, SQL logs.
*
* @param string $message
* @param array $context
* @param string $message
* @param mixed[] $context
*
* @return void
*/
Expand All @@ -103,8 +103,8 @@ public function info($message, array $context = array());
/**
* Detailed debug information.
*
* @param string $message
* @param array $context
* @param string $message
* @param mixed[] $context
*
* @return void
*/
Expand All @@ -113,9 +113,9 @@ public function debug($message, array $context = array());
/**
* Logs with an arbitrary level.
*
* @param mixed $level
* @param string $message
* @param array $context
* @param mixed $level
* @param string $message
* @param mixed[] $context
*
* @return void
*
Expand Down

0 comments on commit 587a6ac

Please sign in to comment.