| 1 | <?php |
||
| 9 | class TableSchema { |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @var \db_mysql $db |
||
| 13 | */ |
||
| 14 | protected $db; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @var Schema $dbSchema |
||
| 18 | */ |
||
| 19 | protected $dbSchema; |
||
| 20 | |||
| 21 | public $tableName = ''; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var \array[] $fields |
||
| 25 | */ |
||
| 26 | public $fields; |
||
| 27 | /** |
||
| 28 | * @var \array[] $indexes |
||
| 29 | */ |
||
| 30 | public $indexes; |
||
| 31 | /** |
||
| 32 | * @var \array[] $constraints |
||
| 33 | */ |
||
| 34 | public $constraints; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * TableSchema constructor. |
||
| 38 | * |
||
| 39 | * @param string $tableName |
||
| 40 | * @param \db_mysql|null $db |
||
|
|
|||
| 41 | */ |
||
| 42 | public function __construct($tableName, Schema $dbSchema) { |
||
| 52 | |||
| 53 | } |
||
| 54 |
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.