PHP版本:8.3.15 路由 config/route.php ```php Route::get("/$name/read/{id}", [$controller, 'read']) ```` 控制器 ```php public function read(Request $request, int|string $id) : Response { ………………………… } ``` 这里 $id 对应了路由里面的 {id} ,访问的时候会出现 Error: Call to undefined method ReflectionUnionType::getName() in ./vendor/workerman/webman-framework/src/App.php:429<br /> Stack trace:<br /> 如果我只用 int 或者 string 修饰 $id ,则不会出现报错。