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