Skip to content

Commit

Permalink
Widen logger type hints (#1691)
Browse files Browse the repository at this point in the history
  • Loading branch information
cleptric authored Jan 26, 2024
1 parent 2094d9c commit 992566e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Logger/DebugFileLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(string $filePath)
* @param mixed $level
* @param mixed[] $context
*/
public function log($level, \Stringable|string $message, array $context = []): void
public function log($level, $message, array $context = []): void
{
file_put_contents($this->filePath, sprintf("sentry/sentry: [%s] %s\n", $level, (string) $message), \FILE_APPEND);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Logger/DebugStdOutLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class DebugStdOutLogger extends AbstractLogger
* @param mixed $level
* @param mixed[] $context
*/
public function log($level, \Stringable|string $message, array $context = []): void
public function log($level, $message, array $context = []): void
{
file_put_contents('php://stdout', sprintf("sentry/sentry: [%s] %s\n", $level, (string) $message));
}
Expand Down

0 comments on commit 992566e

Please sign in to comment.