1 | <?php |
||
8 | class Textarea extends Field |
||
9 | { |
||
10 | use HasValuePicker; |
||
11 | |||
12 | /** |
||
13 | * Default rows of textarea. |
||
14 | * |
||
15 | * @var int |
||
16 | */ |
||
17 | protected $rows = 5; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | protected $append = ''; |
||
23 | |||
24 | /** |
||
25 | * Set rows of textarea. |
||
26 | * |
||
27 | * @param int $rows |
||
28 | * |
||
29 | * @return $this |
||
30 | */ |
||
31 | public function rows($rows = 5) |
||
37 | |||
38 | /** |
||
39 | * {@inheritdoc} |
||
40 | */ |
||
41 | public function render() |
||
58 | |||
59 | /** |
||
60 | * @param string $wrap |
||
61 | */ |
||
62 | public function addPickBtn($btn) |
||
90 | } |
||
91 |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.