关于Response的exception 'UnexpectedValueException'问题

production.ERROR: exception 'UnexpectedValueException' with message 'The Response content must be a string or object implementing __toString(), "boolean" given.
' in /search/odin/www/apishouji/vendor/symfony/http-foundation/Response.php:399
Stack trace:

0/search/odin/www/apishouji/vendor/laravel/framework/src/Illuminate/Http/Response.php(54): Symfony\Component\HttpFoundation\Response->setContent(false)

1 /search/odin/www/apishouji/vendor/symfony/http-foundation/Response.php(202): Illuminate\Http\Response->setContent(Array)

2/search/odin/www/apishouji/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1229): Symfony\Component\HttpFoundation\Response->__construct(Array)

3 /search/odin/www/apishouji/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(113): Illuminate\Routing\Router->prepareResponse(Object(Illuminate\Http\Request), Array)

4 [internal function]: Illuminate\Routing\ControllerDispatcher->Illuminate\Routing{closure}(Object(Illuminate\Http\Request))

5 /search/odin/www/apishouji/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(139): call_user_func(Object(Closure), Object(Illuminate\Http\Request))

6 [internal function]: Illuminate\Pipeline\Pipeline->Illuminate\Pipeline{closure}(Object(Illuminate\Http\Request))



想知道 :
为什么#1这一行setContent的参数是数组类型array
而#0行setContent的参数是布尔类型false
已邀请:

要回复问题请先登录注册