1 | <?php |
||
26 | class UserWebhooksController extends BaseController |
||
27 | { |
||
28 | /* |
||
29 | * fields we accept to create |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | protected $createFields = [ |
||
34 | 'webhooks_id', |
||
35 | 'url', |
||
36 | 'method', |
||
37 | 'format' |
||
38 | ]; |
||
39 | |||
40 | /* |
||
41 | * fields we accept to create |
||
42 | * |
||
43 | * @var array |
||
44 | */ |
||
45 | protected $updateFields = [ |
||
46 | 'webhooks_id', |
||
47 | 'url', |
||
48 | 'method', |
||
49 | 'format' |
||
50 | ]; |
||
51 | |||
52 | /** |
||
53 | * set objects. |
||
54 | * |
||
55 | * @return void |
||
56 | */ |
||
57 | public function onConstruct() |
||
69 | |||
70 | /** |
||
71 | * Given the weebhook id, we run a test for it. |
||
72 | * |
||
73 | * @param integer $id |
||
|
|||
74 | * @return Response |
||
75 | */ |
||
76 | public function execute(string $name): Response |
||
108 | } |
||
109 |
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.