1 | <?php |
||
15 | class AuthCreateAction |
||
16 | { |
||
17 | /** |
||
18 | * @var OAuthProxy |
||
19 | */ |
||
20 | protected $oAuthProxy; |
||
21 | |||
22 | /** |
||
23 | * AuthCreateAction constructor. |
||
24 | * |
||
25 | * @param ResponseFactory $responseFactory |
||
|
|||
26 | * @param OAuthProxy $oAuthProxy |
||
27 | */ |
||
28 | public function __construct(OAuthProxy $oAuthProxy) |
||
32 | |||
33 | /** |
||
34 | * @apiVersion 1.0.0 |
||
35 | * @api {post} /v1/auth/token Create |
||
36 | * @apiName Create |
||
37 | * @apiGroup Auth |
||
38 | * @apiHeader {String} Accept application/json |
||
39 | * @apiHeader {String} Content-Type application/json |
||
40 | * @apiParamExample {json} Request-Body-Example: |
||
41 | * { |
||
42 | * "email": "[email protected]", |
||
43 | * "password": "password" |
||
44 | * } |
||
45 | * @apiSuccessExample {json} Success-Response: |
||
46 | * HTTP/1.1 204 No Content |
||
47 | */ |
||
48 | |||
49 | /** |
||
50 | * Create an auth token. |
||
51 | * |
||
52 | * @param CreateAuthRequest $request |
||
53 | * @return Response |
||
54 | */ |
||
55 | public function __invoke(CreateAuthRequest $request) |
||
63 | } |
||
64 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.