| 1 | <?php |
||
| 10 | class File extends BaseElement |
||
| 11 | { |
||
| 12 | use Autofocus; |
||
| 13 | use Name; |
||
| 14 | use Required; |
||
| 15 | |||
| 16 | protected $tag = 'input'; |
||
| 17 | |||
| 18 | const ACCEPT_AUDIO = 'audio/*'; |
||
| 19 | const ACCEPT_VIDEO = 'video/*'; |
||
| 20 | const ACCEPT_IMAGE = 'image/*'; |
||
| 21 | |||
| 22 | public function __construct() |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string|null $name |
||
|
|
|||
| 31 | * |
||
| 32 | * @return static |
||
| 33 | */ |
||
| 34 | public function accept($type) |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return static |
||
| 41 | */ |
||
| 42 | public function acceptAudio() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return static |
||
| 49 | */ |
||
| 50 | public function acceptVideo() |
||
| 54 | |||
| 55 | /** |
||
| 56 | * @return static |
||
| 57 | */ |
||
| 58 | public function acceptImage() |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @return static |
||
| 65 | */ |
||
| 66 | public function multiple() |
||
| 70 | } |
||
| 71 |
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
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.