diff --git a/README.md b/README.md index f2a07581a..e6c30fa13 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,9 @@ $config = [ $app = new Application($config); -$app->getServer()->with(fn() => "您好!EasyWeChat!"); +$server = $app->getServer(); + +$server->with(fn() => "您好!EasyWeChat!"); $response = $server->serve(); ```