| 1 | <?php |
||
| 21 | class ConfigMapLocator extends AbstractConfigLocator |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * Array of configuration data used to describe how to construct various |
||
| 25 | * types of payloads. Stored as a static property so each instance doesn't |
||
| 26 | * need it's own copy of the configuration, which has grown quite large. |
||
| 27 | * |
||
| 28 | * @var array |
||
| 29 | */ |
||
| 30 | protected static $config; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param array $config Payload locator configuration |
||
|
|
|||
| 34 | */ |
||
| 35 | public function __construct() |
||
| 41 | |||
| 42 | /** |
||
| 43 | * Get the blob of payload config data. |
||
| 44 | * |
||
| 45 | * @return array |
||
| 46 | */ |
||
| 47 | protected function getConfig() |
||
| 51 | } |
||
| 52 |
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.