Skip to content

Commit 2a8f8c7

Browse files
authored
Merge pull request #6638 from ddevsr/docs-types-logger
docs: replace types in `Logger`
2 parents 44c767c + 280f969 commit 2a8f8c7

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

system/Common.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ function lang(string $line, array $args = [], ?string $locale = null)
782782
* - info
783783
* - debug
784784
*
785-
* @return mixed
785+
* @return bool
786786
*/
787787
function log_message(string $level, string $message, array $context = [])
788788
{

system/Log/Handlers/ChromeLoggerHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function handle($level, $message): bool
128128
/**
129129
* Converts the object to display nicely in the Chrome Logger UI.
130130
*
131-
* @param mixed $object
131+
* @param array|int|object|string $object
132132
*
133133
* @return array
134134
*/

system/Log/Logger.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public function debug($message, array $context = []): bool
243243
/**
244244
* Logs with an arbitrary level.
245245
*
246-
* @param mixed $level
246+
* @param string $level
247247
* @param string $message
248248
*/
249249
public function log($level, $message, array $context = []): bool
@@ -308,9 +308,9 @@ public function log($level, $message, array $context = []): bool
308308
* {file}
309309
* {line}
310310
*
311-
* @param mixed $message
311+
* @param string $message
312312
*
313-
* @return mixed
313+
* @return string
314314
*/
315315
protected function interpolate($message, array $context = [])
316316
{

0 commit comments

Comments
 (0)