| 1 | <?php |
||
| 19 | class IndexController |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @param ServerRequest $request |
||
| 23 | * |
||
| 24 | * @return Response |
||
| 25 | */ |
||
| 26 | public function welcome(ServerRequest $request) |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param ServerRequest $request |
||
| 38 | * |
||
| 39 | * @return JsonResponse |
||
| 40 | */ |
||
| 41 | public function sayHello(ServerRequest $request) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * @param ServerRequest $serverRequest |
||
| 50 | * |
||
| 51 | * @return JsonResponse |
||
| 52 | */ |
||
| 53 | public function middleware(ServerRequest $serverRequest) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return JsonResponse |
||
| 62 | */ |
||
| 63 | public function db() |
||
| 69 | |||
| 70 | public function model() |
||
| 80 | |||
| 81 | public function auth() |
||
| 87 | |||
| 88 | public function abort() |
||
| 92 | |||
| 93 | public function queue() |
||
| 101 | } |
||
| 102 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: