Skip to content

Commit 280f969

Browse files
committed
docs: replace types in Logger
tests: increase coverage tests in Logger use dedicated clean_path refactor: implement __toString() in Logger docs: replace param string message to phpdocblock docs: replace param string message to phpdocblock docs: replace types in Logger Co-authored-by: kenjis <kenji.uui@gmail.com> docs: replace types in Logger docs: replace types in Logger revert refactoring in Logger
1 parent 0678da2 commit 280f969

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
@@ -312,9 +312,9 @@ public function log($level, $message, array $context = []): bool
312312
* {file}
313313
* {line}
314314
*
315-
* @param mixed $message
315+
* @param string $message
316316
*
317-
* @return mixed
317+
* @return string
318318
*/
319319
protected function interpolate($message, array $context = [])
320320
{

0 commit comments

Comments
 (0)