| 1 | <?php |
||
| 18 | class NextMap extends AbstractFactory |
||
| 19 | { |
||
| 20 | /** @var Connection */ |
||
| 21 | protected $connection; |
||
| 22 | |||
| 23 | /** @var ChatNotification */ |
||
| 24 | protected $chatNotification; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * NextMap constructor. |
||
| 28 | * |
||
| 29 | * @param int $duration |
||
| 30 | * @param float $ration |
||
| 31 | * @param string $class |
||
|
|
|||
| 32 | * @param Connection $connection |
||
| 33 | * @param ChatNotification $chatNotification |
||
| 34 | */ |
||
| 35 | 2 | public function __construct( |
|
| 46 | |||
| 47 | /** |
||
| 48 | * @inheritdoc |
||
| 49 | */ |
||
| 50 | 1 | public function create(Player $player): AbstractVote |
|
| 61 | |||
| 62 | /** |
||
| 63 | * @inheritdoc |
||
| 64 | */ |
||
| 65 | 2 | public function getVoteCode(): string |
|
| 69 | |||
| 70 | /** |
||
| 71 | * @inheritdoc |
||
| 72 | */ |
||
| 73 | 1 | public function getReplacementTypes() |
|
| 77 | } |
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.