| 1 | <?php |
||
| 19 | class IndexerFactory { |
||
| 20 | /** |
||
| 21 | * @var Log |
||
| 22 | */ |
||
| 23 | protected $log; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var \PhpParser\Parser |
||
| 27 | */ |
||
| 28 | protected $parser; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var Schema[] |
||
| 32 | */ |
||
| 33 | protected $schemas; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param string $project_root_path |
||
|
|
|||
| 37 | * @param Schema[] $schemas |
||
| 38 | */ |
||
| 39 | 2 | public function __construct(Log $log, \PhpParser\Parser $parser, array $schemas) { |
|
| 44 | |||
| 45 | /** |
||
| 46 | * @return Indexer |
||
| 47 | */ |
||
| 48 | public function build(Insert $insert) { |
||
| 60 | } |
||
| 61 |
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.