From c323c83bc088914b1eaf3d1a74541da7aaf682b8 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Thu, 19 Dec 2024 15:56:55 +0300 Subject: [PATCH] 15 --- src/Collector/LoggerInterfaceProxy.php | 1 + src/Collector/ServiceMethodProxy.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/Collector/LoggerInterfaceProxy.php b/src/Collector/LoggerInterfaceProxy.php index a3a72f16..ebeac119 100644 --- a/src/Collector/LoggerInterfaceProxy.php +++ b/src/Collector/LoggerInterfaceProxy.php @@ -95,6 +95,7 @@ public function debug(string|Stringable $message, array $context = []): void public function log(mixed $level, string|Stringable $message, array $context = []): void { + $level = (string) $level; $callStack = $this->getCallStack(); $this->collector->collect($level, $message, $context, $callStack['file'] . ':' . $callStack['line']); diff --git a/src/Collector/ServiceMethodProxy.php b/src/Collector/ServiceMethodProxy.php index bddb467d..00df67f3 100644 --- a/src/Collector/ServiceMethodProxy.php +++ b/src/Collector/ServiceMethodProxy.php @@ -11,6 +11,9 @@ class ServiceMethodProxy extends ServiceProxy public function __construct( string $service, object $instance, + /** + * @psalm-var array + */ private readonly array $methods, ContainerProxyConfig $config ) {