1 | <?php |
||
19 | class Config |
||
20 | { |
||
21 | /** |
||
22 | * Config data. |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | protected $data; |
||
27 | |||
28 | /** |
||
29 | * Create a new MultiLang instance. |
||
30 | * |
||
31 | * @param string $environment |
||
|
|||
32 | * @param array $config |
||
33 | * @param \Illuminate\Cache\CacheManager $cache |
||
34 | * @param \Illuminate\Database\DatabaseManager $db |
||
35 | */ |
||
36 | public function __construct(array $data) |
||
40 | |||
41 | public function get($key = null, $default = null) |
||
63 | |||
64 | |||
65 | } |
||
66 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.