Skip to content

Commit

Permalink
Fix fatal exception "Object of class ... could not be converted to st…
Browse files Browse the repository at this point in the history
…ring" (#7231)



Co-authored-by: Deeka Wong <[email protected]>
  • Loading branch information
kingIZZZY and huangdijia authored Jan 8, 2025
1 parent f788eda commit c770ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c770ebf

Please sign in to comment.