1 | <?php |
||
11 | final class JobName |
||
12 | { |
||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | private $name; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $prefix; |
||
22 | |||
23 | /** |
||
24 | * JobName constructor. |
||
25 | * @param string $name |
||
26 | * @param string $prefix |
||
27 | * @param string $separator |
||
|
|||
28 | */ |
||
29 | public function __construct($name, $prefix) |
||
34 | |||
35 | /** |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getQueueName() |
||
45 | } |
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.