Skip to content

Commit

Permalink
Update vaga
Browse files Browse the repository at this point in the history
  • Loading branch information
onanying committed Jan 26, 2024
1 parent d6c7007 commit 4cffbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vega/src/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ protected function dispatch(string $method, string $uri, Context $ctx): void
// 为了在 FAST_MODE 下也可以获取到路由参数,但是php8.2废弃了动态增加属性
if (Engine::isSwoole([$ctx->request])) {
// 只能放在get里面
$ctx->request->get = $params + $ctx->request->get;
$ctx->request->get = $params + (array)$ctx->request->get;
} elseif (Engine::isWorkerMan([$ctx->request])) {
// WorkerMan有__set方法,可以动态增加属性
$ctx->request->param = $params;
Expand Down

0 comments on commit 4cffbc7

Please sign in to comment.