| 1 | <?php |
||
| 11 | class MemberController extends Controller |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @SWG\Get( |
||
| 15 | * tags={"Member"}, |
||
| 16 | * path="/api/v1/me", |
||
| 17 | * description="Returns authenticated user", |
||
| 18 | * operationId="current", |
||
| 19 | * produces={"application/json"}, |
||
| 20 | * @SWG\Response( |
||
| 21 | * response="200", |
||
| 22 | * description="Successfully get authenticated user" |
||
| 23 | * ) |
||
| 24 | * ) |
||
| 25 | */ |
||
| 26 | public function current() |
||
| 30 | } |
||
| 31 |
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: