| 1 | <?php |
||
| 16 | class FileToMemoryDictLoader extends FileDictLoader implements DictLoaderInterface |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * Segment files |
||
| 20 | * |
||
| 21 | * @var array |
||
| 22 | */ |
||
| 23 | protected $segments = array(); |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructor. |
||
| 27 | * |
||
| 28 | * @param string $path |
||
| 29 | * @param boolean $preload |
||
|
|
|||
| 30 | */ |
||
| 31 | 9 | public function __construct($path) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * Load dict. |
||
| 44 | * |
||
| 45 | * @param Closure $callback |
||
| 46 | */ |
||
| 47 | 9 | public function map(Closure $callback) |
|
| 54 | } |
||
| 55 |
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.