From 66fa3cd906c79913fbc01fe805739a47e8dda899 Mon Sep 17 00:00:00 2001 From: Kevin Pfeifer Date: Wed, 23 Oct 2024 21:08:36 +0200 Subject: [PATCH] fix stan --- src/Database/Log/CakeSentryLog.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Database/Log/CakeSentryLog.php b/src/Database/Log/CakeSentryLog.php index a365e5e..4fa0137 100644 --- a/src/Database/Log/CakeSentryLog.php +++ b/src/Database/Log/CakeSentryLog.php @@ -20,6 +20,7 @@ use Psr\Log\AbstractLogger; use Psr\Log\LoggerInterface; use Sentry\State\HubInterface; +use Stringable; /** * CakeSentry Query logger (originated from DebugKit Query logged) @@ -160,7 +161,7 @@ public function role(): string /** * @inheritDoc */ - public function log($level, $message, array $context = []): void + public function log($level, string|Stringable $message, array $context = []): void { /** @var \Cake\Database\Log\LoggedQuery $query */ $query = $context['query'];