1 | <?php |
||
8 | class MysqlYouTubeRepository implements YouTubeRepositoryInterface |
||
9 | { |
||
10 | |||
11 | /** @var ConnectionLocator */ |
||
12 | protected $connections; |
||
13 | |||
14 | /** |
||
15 | * @param ConnectonLocator $connections |
||
16 | */ |
||
17 | public function __construct(ConnectionLocator $connections) |
||
21 | |||
22 | public function getYouTubes($limit = null, $offset = 0) |
||
38 | |||
39 | /** |
||
40 | * @param string $title |
||
|
|||
41 | * |
||
42 | * @return array|false |
||
43 | */ |
||
44 | public function getYouTubeByVideoId($videoId) |
||
60 | |||
61 | public function insertVideo($videoId, DateTime $datetime, array $metadata) |
||
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.