Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: replace types in Logger #6638

Merged
merged 1 commit into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -312,9 +312,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