| 1 | <?php |
||
| 7 | class Boolean |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @var bool|null |
||
| 11 | */ |
||
| 12 | private $value; |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param string|boolean|null $value |
||
| 16 | * @param string|boolean|null $default |
||
| 17 | */ |
||
| 18 | 17 | public function __construct($value, $default = null) |
|
| 36 | |||
| 37 | /** |
||
| 38 | * @return boolean |
||
|
|
|||
| 39 | */ |
||
| 40 | 12 | public function value() |
|
| 44 | } |
||
| 45 |
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.