Skip to content

Commit

Permalink
Merge pull request #6638 from ddevsr/docs-types-logger
Browse files Browse the repository at this point in the history
docs: replace types in `Logger`
  • Loading branch information
paulbalandan authored Oct 11, 2022
2 parents 44c767c + 280f969 commit 2a8f8c7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion system/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ function lang(string $line, array $args = [], ?string $locale = null)
* - info
* - debug
*
* @return mixed
* @return bool
*/
function log_message(string $level, string $message, array $context = [])
{
Expand Down
2 changes: 1 addition & 1 deletion system/Log/Handlers/ChromeLoggerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function handle($level, $message): bool
/**
* Converts the object to display nicely in the Chrome Logger UI.
*
* @param mixed $object
* @param array|int|object|string $object
*
* @return array
*/
Expand Down
6 changes: 3 additions & 3 deletions system/Log/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public function debug($message, array $context = []): bool
/**
* Logs with an arbitrary level.
*
* @param mixed $level
* @param string $level
* @param string $message
*/
public function log($level, $message, array $context = []): bool
Expand Down Expand Up @@ -308,9 +308,9 @@ public function log($level, $message, array $context = []): bool
* {file}
* {line}
*
* @param mixed $message
* @param string $message
*
* @return mixed
* @return string
*/
protected function interpolate($message, array $context = [])
{
Expand Down

0 comments on commit 2a8f8c7

Please sign in to comment.