Skip to content

Commit

Permalink
Unify method definition commets with \Psr\Logger\Interface (#49805)
Browse files Browse the repository at this point in the history
Since https://github.com/php-fig/log/blob/master/src/LoggerInterface.php allows to use \Stringable as $message, the definition of the methods is updated to phpstan error reports.
  • Loading branch information
eusonlito committed Jan 24, 2024
1 parent 76e4931 commit f0edf22
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Illuminate/Log/LogManager.php
Expand Up @@ -630,7 +630,7 @@ public function getChannels()
/**
* System is unusable.
*
* @param string $message
* @param string|\Stringable $message
* @param array $context
* @return void
*/
Expand All @@ -645,7 +645,7 @@ public function emergency($message, array $context = []): void
* Example: Entire website down, database unavailable, etc. This should
* trigger the SMS alerts and wake you up.
*
* @param string $message
* @param string|\Stringable $message
* @param array $context
* @return void
*/
Expand All @@ -659,7 +659,7 @@ public function alert($message, array $context = []): void
*
* Example: Application component unavailable, unexpected exception.
*
* @param string $message
* @param string|\Stringable $message
* @param array $context
* @return void
*/
Expand All @@ -672,7 +672,7 @@ public function critical($message, array $context = []): void
* Runtime errors that do not require immediate action but should typically
* be logged and monitored.
*
* @param string $message
* @param string|\Stringable $message
* @param array $context
* @return void
*/
Expand All @@ -687,7 +687,7 @@ public function error($message, array $context = []): void
* Example: Use of deprecated APIs, poor use of an API, undesirable things
* that are not necessarily wrong.
*
* @param string $message
* @param string|\Stringable $message
* @param array $context
* @return void
*/
Expand All @@ -699,7 +699,7 @@ public function warning($message, array $context = []): void
/**
* Normal but significant events.
*
* @param string $message
* @param string|\Stringable $message
* @param array $context
* @return void
*/
Expand All @@ -713,7 +713,7 @@ public function notice($message, array $context = []): void
*
* Example: User logs in, SQL logs.
*
* @param string $message
* @param string|\Stringable $message
* @param array $context
* @return void
*/
Expand All @@ -725,7 +725,7 @@ public function info($message, array $context = []): void
/**
* Detailed debug information.
*
* @param string $message
* @param string|\Stringable $message
* @param array $context
* @return void
*/
Expand All @@ -738,7 +738,7 @@ public function debug($message, array $context = []): void
* Logs with an arbitrary level.
*
* @param mixed $level
* @param string $message
* @param string|\Stringable $message
* @param array $context
* @return void
*/
Expand Down

0 comments on commit f0edf22

Please sign in to comment.