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