1 | <?php namespace Anomaly\PreferencesModule\Preference\Command; |
||
13 | class GetPreference |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * The preference key. |
||
18 | * |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $key; |
||
22 | |||
23 | /** |
||
24 | * Create a new GetPreference instance. |
||
25 | * |
||
26 | * @param $key |
||
27 | * @param null $default |
||
|
|||
28 | */ |
||
29 | public function __construct($key) |
||
33 | |||
34 | /** |
||
35 | * Handle the command. |
||
36 | * |
||
37 | * @param PreferenceRepositoryInterface $preferences |
||
38 | * @return mixed |
||
39 | */ |
||
40 | public function handle(PreferenceRepositoryInterface $preferences) |
||
44 | } |
||
45 |
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.