| 1 | <?php |
||
| 21 | class ImpersonatePlugin implements \Swift_Events_SendListener |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | private $fromAddress; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string[] |
||
| 30 | */ |
||
| 31 | private $originalAddresses = []; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $address Address the message should be sent from |
||
|
|
|||
| 35 | */ |
||
| 36 | public function __construct($fromAddress) |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param Swift_Events_SendEvent $event |
||
| 43 | */ |
||
| 44 | public function beforeSendPerformed(Swift_Events_SendEvent $event) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param Swift_Events_SendEvent $event |
||
| 55 | */ |
||
| 56 | public function sendPerformed(Swift_Events_SendEvent $event) |
||
| 61 | } |
||
| 62 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.