1 | <?php |
||
11 | class Mailer implements NotifierInterface |
||
12 | { |
||
13 | /** |
||
14 | * @var \Swift_Mailer |
||
15 | */ |
||
16 | private $mailer; |
||
17 | |||
18 | /** |
||
19 | * @var EngineInterface |
||
20 | */ |
||
21 | private $templating; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $from; |
||
28 | |||
29 | /** |
||
30 | * @var string |
||
31 | */ |
||
32 | private $to; |
||
33 | |||
34 | /** |
||
35 | * @var string |
||
36 | */ |
||
37 | private $subject; |
||
38 | |||
39 | /** |
||
40 | * @param \Swift_Mailer $mailer |
||
41 | * @param TranslatorInterface $translator |
||
|
|||
42 | * @param EngineInterface $templating |
||
43 | * @param string $from |
||
44 | * @param string $to |
||
45 | * @param string $subject |
||
46 | */ |
||
47 | public function __construct( |
||
60 | |||
61 | /** |
||
62 | * @param string $channelName |
||
63 | * |
||
64 | * @return mixed |
||
65 | */ |
||
66 | public function process($channelName) |
||
80 | } |
||
81 |
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.