1 | <?php |
||
19 | class Jobs |
||
20 | { |
||
21 | /** |
||
22 | * Logger. |
||
23 | * |
||
24 | * @var LoggerInterface |
||
25 | */ |
||
26 | protected $logger; |
||
27 | |||
28 | /** |
||
29 | * Getopt. |
||
30 | * |
||
31 | * @var GetOpt |
||
32 | */ |
||
33 | protected $getopt; |
||
34 | |||
35 | /** |
||
36 | * Async. |
||
37 | * |
||
38 | * @var Async |
||
39 | */ |
||
40 | protected $async; |
||
41 | |||
42 | /** |
||
43 | * Hook. |
||
44 | * |
||
45 | * @var Hook |
||
46 | */ |
||
47 | protected $hook; |
||
48 | |||
49 | /** |
||
50 | * Constructor. |
||
51 | * |
||
52 | * @param App $app |
||
|
|||
53 | * @param Async $async |
||
54 | * @param LoggerInterface $logger |
||
55 | * @param GetOpt $getopt |
||
56 | */ |
||
57 | public function __construct(Hook $hook, Async $async, LoggerInterface $logger, GetOpt $getopt) |
||
65 | |||
66 | /** |
||
67 | * Get description. |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getDescription(): string |
||
75 | |||
76 | /** |
||
77 | * Start. |
||
78 | * |
||
79 | * @return bool |
||
80 | */ |
||
81 | public function listen(): bool |
||
90 | |||
91 | /* |
||
92 | * Start. |
||
93 | * |
||
94 | * @return bool |
||
95 | */ |
||
96 | public function once(): bool |
||
104 | } |
||
105 |
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.