| 1 | <?php |
||
| 34 | class DefaultInformation extends AbstractInformation |
||
| 35 | { |
||
| 36 | /** |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | protected $question = 'Enter a type for %s'; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return int |
||
|
|
|||
| 43 | */ |
||
| 44 | public function getDefaultValue() |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @return array |
||
| 51 | */ |
||
| 52 | public function getChoices() |
||
| 56 | |||
| 57 | /** |
||
| 58 | * @return int |
||
| 59 | */ |
||
| 60 | public function getType() |
||
| 64 | } |
||
| 65 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.