| 1 | <?php | ||
| 13 | class SchemaManager | ||
| 14 | { | ||
| 15 | /** | ||
| 16 | * Applies schemata | ||
| 17 | * | ||
| 18 | * @param Collection $collection The MongoDB Collection | ||
| 19 | * @param array $index Associative array containing index data | ||
|  | |||
| 20 | */ | ||
| 21 | public function createSchemata(Collection $collection, array $schemata) | ||
| 31 | |||
| 32 | /** | ||
| 33 | * Syncs schemata state | ||
| 34 | * @todo Implement | ||
| 35 | * | ||
| 36 | * @param Collection $collection The MongoDB Collection | ||
| 37 | * @param array $index Associative array containing index data | ||
| 38 | */ | ||
| 39 | public function syncSchemata(Collection $collection, array $schemata) | ||
| 46 | } | ||
| 47 | 
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.