1 | <?php |
||
7 | class RequestFactory |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private $nonces = []; |
||
13 | |||
14 | /** |
||
15 | * @param $method |
||
16 | * @param array $params |
||
17 | * @param bool $id |
||
|
|||
18 | * @return Request |
||
19 | */ |
||
20 | 3 | public function create($method, $params = array()) |
|
28 | |||
29 | /** |
||
30 | * @param $string |
||
31 | * @return Response|Request |
||
32 | * @throws \Exception |
||
33 | */ |
||
34 | 20 | public function response($string) |
|
54 | } |
||
55 |
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.