1 | <?php |
||
13 | class SearchInputWidget extends TitleInputWidget { |
||
14 | |||
15 | protected $pushPending = false; |
||
16 | protected $performSearchOnClick = true; |
||
17 | protected $validateTitle = false; |
||
18 | protected $highlightFirst = false; |
||
19 | |||
20 | /** |
||
21 | * @param array $config Configuration options |
||
22 | * @param int|null $config['pushPending'] Whether the input should be visually marked as |
||
|
|||
23 | * "pending", while requesting suggestions (default: true) |
||
24 | * @param boolean|null $config['performSearchOnClick'] If true, the script will start a search |
||
25 | * whenever a user hits a suggestion. If false, the text of the suggestion is inserted into the |
||
26 | * text field only (default: true) |
||
27 | */ |
||
28 | public function __construct( array $config = [] ) { |
||
57 | |||
58 | protected function getJavaScriptClassName() { |
||
61 | |||
62 | public function getConfig( &$config ) { |
||
70 | } |
||
71 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$ireland
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was changed, but the annotation was not.