1 | <?php |
||
10 | class PdoMysqlAdapter extends GenericPdo implements AdapterInterface |
||
11 | { |
||
12 | |||
13 | /** |
||
14 | * |
||
15 | * @var \PDO |
||
16 | */ |
||
17 | protected $resource; |
||
18 | |||
19 | |||
20 | /** |
||
21 | * Constructor |
||
22 | * |
||
23 | * @throws Exception\InvalidArgumentException |
||
24 | * @throws Exception\RuntimeException |
||
25 | * @param \PDO $resource |
||
26 | * @param \PDO $connection |
||
|
|||
27 | */ |
||
28 | 7 | public function __construct(PDO $resource) |
|
38 | |||
39 | /** |
||
40 | * {@inheritdoc} |
||
41 | * @return MysqlConnection |
||
42 | */ |
||
43 | 2 | public function getConnection() |
|
47 | |||
48 | } |
||
49 |
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.