1 | <?php |
||
5 | class Response implements ResponseInterface |
||
6 | { |
||
7 | /** |
||
8 | * @var int |
||
9 | */ |
||
10 | private $type; |
||
11 | |||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private $data; |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private $backtrace; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | private $profile; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $note; |
||
31 | |||
32 | /** |
||
33 | * @param int $type |
||
|
|||
34 | * @param array $data |
||
35 | * @param array $backtrace |
||
36 | * @param array|null $profile |
||
37 | * @param array|null $note |
||
38 | */ |
||
39 | 15 | public function __construct(int $t = null, array $r = null, array $b = null, array $p = null, array $n = null) |
|
47 | |||
48 | /** |
||
49 | * @return int |
||
50 | */ |
||
51 | 15 | public function getType(): int |
|
55 | |||
56 | /** |
||
57 | * @return array |
||
58 | */ |
||
59 | 14 | public function getData(): array |
|
63 | |||
64 | /** |
||
65 | * @return array |
||
66 | */ |
||
67 | 1 | public function getBacktrace(): array |
|
71 | |||
72 | /** |
||
73 | * @return array |
||
74 | */ |
||
75 | 1 | public function getProfile(): array |
|
79 | |||
80 | /** |
||
81 | * @return array |
||
82 | */ |
||
83 | 1 | public function getNote(): array |
|
87 | } |
||
88 |
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.