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 | * @var string |
||
25 | */ |
||
26 | private $from; |
||
27 | |||
28 | /** |
||
29 | * @var string |
||
30 | */ |
||
31 | private $to; |
||
32 | |||
33 | /** |
||
34 | * @var string |
||
35 | */ |
||
36 | private $subject; |
||
37 | |||
38 | /** |
||
39 | * @var string |
||
40 | */ |
||
41 | private $template; |
||
42 | |||
43 | /** |
||
44 | * @param \Swift_Mailer $mailer |
||
45 | * @param TranslatorInterface $translator |
||
|
|||
46 | * @param EngineInterface $templating |
||
47 | * @param string $from |
||
48 | * @param string $to |
||
49 | * @param string $subject |
||
50 | * @param string $template |
||
51 | */ |
||
52 | public function __construct( |
||
67 | |||
68 | /** |
||
69 | * @param string $channelName |
||
70 | * |
||
71 | * @return mixed |
||
72 | */ |
||
73 | public function process($channelName) |
||
87 | } |
||
88 |
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.