1 | <?php |
||
8 | class Task implements TaskInterface |
||
9 | { |
||
10 | /** @var callable */ |
||
11 | private $callable; |
||
12 | |||
13 | /** @var array */ |
||
14 | private $args; |
||
15 | |||
16 | /** @var string */ |
||
17 | private $tag; |
||
18 | |||
19 | /** |
||
20 | * @param callable $callable |
||
21 | * @param array $args |
||
22 | * @param string $string |
||
|
|||
23 | */ |
||
24 | public function __construct($callable, $args, $tag) |
||
30 | |||
31 | /** |
||
32 | * @return callable |
||
33 | */ |
||
34 | public function getCallable() |
||
38 | |||
39 | /** |
||
40 | * @return mixed |
||
41 | */ |
||
42 | public function getArgs() |
||
46 | |||
47 | /** |
||
48 | * @return string|null |
||
49 | */ |
||
50 | public function getTag() |
||
54 | |||
55 | /** |
||
56 | * @return Ackintosh\Snidel\Result\Result |
||
57 | */ |
||
58 | public function execute() |
||
73 | } |
||
74 |
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.