1 | <?php |
||
8 | class File extends BaseElement |
||
9 | { |
||
10 | use Macroable; |
||
11 | |||
12 | protected $tag = 'input'; |
||
13 | |||
14 | const ACCEPT_AUDIO = 'audio/*'; |
||
15 | const ACCEPT_VIDEO = 'video/*'; |
||
16 | const ACCEPT_IMAGE = 'image/*'; |
||
17 | |||
18 | public function __construct() |
||
24 | |||
25 | /** |
||
26 | * @param string|null $name |
||
27 | * |
||
28 | * @return static |
||
29 | */ |
||
30 | public function name($name) |
||
34 | |||
35 | /** |
||
36 | * @return static |
||
37 | */ |
||
38 | public function required() |
||
42 | |||
43 | /** |
||
44 | * @return static |
||
45 | */ |
||
46 | public function autofocus() |
||
50 | |||
51 | /** |
||
52 | * @param string|null $name |
||
|
|||
53 | * |
||
54 | * @return static |
||
55 | */ |
||
56 | public function accept($type) |
||
60 | |||
61 | /** |
||
62 | * @return static |
||
63 | */ |
||
64 | public function acceptAudio() |
||
68 | |||
69 | /** |
||
70 | * @return static |
||
71 | */ |
||
72 | public function acceptVideo() |
||
76 | |||
77 | /** |
||
78 | * @return static |
||
79 | */ |
||
80 | public function acceptImage() |
||
84 | |||
85 | /** |
||
86 | * @return static |
||
87 | */ |
||
88 | public function multiple() |
||
92 | } |
||
93 |
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.