Skip to content

Commit c770ebf

Browse files
Fix fatal exception "Object of class ... could not be converted to string" (#7231)
Co-authored-by: Deeka Wong <huangdijia@gmail.com>
1 parent f788eda commit c770ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function onMessage($server, $frame): void
202202
$instance = $this->container->get($fdObj->class);
203203

204204
if (! $instance instanceof OnMessageInterface) {
205-
$this->logger->warning("{$instance} is not instanceof " . OnMessageInterface::class);
205+
$this->logger->warning($instance::class . ' is not instanceof ' . OnMessageInterface::class);
206206
return;
207207
}
208208

0 commit comments

Comments
 (0)