1 | <?php |
||
16 | class PaymentMethodsCredsController extends BaseController |
||
17 | { |
||
18 | /* |
||
19 | * fields we accept to create |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $createFields = []; |
||
24 | |||
25 | /* |
||
26 | * fields we accept to create |
||
27 | * |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $updateFields = []; |
||
31 | |||
32 | /** |
||
33 | * set objects. |
||
34 | * |
||
35 | * @return void |
||
36 | */ |
||
37 | public function onConstruct() |
||
47 | |||
48 | /** |
||
49 | * Get current payment methods creds |
||
50 | * |
||
51 | * @param mixed $id |
||
|
|||
52 | * |
||
53 | * @method GET |
||
54 | * @url /v1/roles-acceslist/{id} |
||
55 | * |
||
56 | * @return Response |
||
57 | */ |
||
58 | public function getCurrentPaymentMethodsCreds(): Response |
||
62 | |||
63 | |||
64 | } |
||
65 |
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.