Skip to content

Commit 5d7836f

Browse files
committed
improve phpdoc
1 parent 07ab25f commit 5d7836f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DebugTrait.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public function log($level, $message, array $context = []): void
4141
/**
4242
* Detailed debug information.
4343
*
44-
* @param bool|string|\Stringable $message
45-
* @param array<mixed> $context
44+
* @param bool|string|\Stringable $message
45+
* @param ($message is bool ? never : array<mixed>) $context
4646
*/
4747
public function debug($message, array $context = []): void
4848
{
@@ -86,7 +86,7 @@ public function debugTraceChange(string $trace = 'default'): void
8686
$d1 = array_diff($this->_previousTrace[$trace], $bt);
8787
$d2 = array_diff($bt, $this->_previousTrace[$trace]);
8888

89-
$this->log('debug', 'Call path for ' . $trace . ' has diverged (was ' . implode(', ', $d1) . ', now ' . implode(', ', $d2) . ")\n");
89+
$this->log(LogLevel::DEBUG, 'Call path for ' . $trace . ' has diverged (was ' . implode(', ', $d1) . ', now ' . implode(', ', $d2) . ")\n");
9090
}
9191

9292
$this->_previousTrace[$trace] = $bt;

0 commit comments

Comments
 (0)