From c770ebf0208738bbb21000db01f09a48e15023a5 Mon Sep 17 00:00:00 2001 From: kingIZZZY Date: Tue, 7 Jan 2025 21:18:30 -0500 Subject: [PATCH] Fix fatal exception "Object of class ... could not be converted to string" (#7231) Co-authored-by: Deeka Wong --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index d34ab2b..d24f75c 100644 --- a/src/Server.php +++ b/src/Server.php @@ -202,7 +202,7 @@ public function onMessage($server, $frame): void $instance = $this->container->get($fdObj->class); if (! $instance instanceof OnMessageInterface) { - $this->logger->warning("{$instance} is not instanceof " . OnMessageInterface::class); + $this->logger->warning($instance::class . ' is not instanceof ' . OnMessageInterface::class); return; }