| 1 | <?php |
||
| 11 | final class EhloOnlyNegotiation implements NegotiationInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var ConnectionInterface |
||
| 15 | */ |
||
| 16 | private $connection; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var string |
||
| 20 | */ |
||
| 21 | private $ehlo; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param ConnectionInterface $connection |
||
| 25 | * @param string $ehlo |
||
| 26 | * @param int $crypto |
||
|
|
|||
| 27 | */ |
||
| 28 | 2 | public function __construct( |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param Client $client |
||
| 38 | */ |
||
| 39 | 1 | public function negotiate(Client $client): void |
|
| 44 | } |
||
| 45 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.