| 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 | /** |
||
| 29 | * @var DbFieldDescription[] $fieldsObject |
||
| 30 | */ |
||
| 31 | public $fieldsObject = []; |
||
| 32 | /** |
||
| 33 | * @var \array[] $indexes |
||
| 34 | */ |
||
| 35 | public $indexes = []; |
||
| 36 | /** |
||
| 37 | * @var \array[] $constraints |
||
| 38 | */ |
||
| 39 | public $constraints = []; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * TableSchema constructor. |
||
| 43 | * |
||
| 44 | * @param string $tableName |
||
| 45 | * @param \db_mysql|null $db |
||
|
|
|||
| 46 | */ |
||
| 47 | public function __construct($tableName, Schema $dbSchema) { |
||
| 59 | |||
| 60 | protected function fillFields() { |
||
| 68 | |||
| 69 | } |
||
| 70 |
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.