From 022b753dfb2b336fa298be5db4248278d1a898b1 Mon Sep 17 00:00:00 2001 From: sy-records <52o@qq52o.cn> Date: Mon, 12 Dec 2022 13:52:31 +0800 Subject: [PATCH] Compatible PHP8.2 fix #326 --- src/command/RpcInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/command/RpcInterface.php b/src/command/RpcInterface.php index 0d8cb32..87e80da 100644 --- a/src/command/RpcInterface.php +++ b/src/command/RpcInterface.php @@ -42,7 +42,7 @@ public function handle() $result = $gateway->getServices(); - $namespace = $file->addNamespace("rpc\\contract\\${name}"); + $namespace = $file->addNamespace("rpc\\contract\\{$name}"); $namespace->addUse(Service::class);