1 | <?php |
||
12 | class ResultNull extends CustomType |
||
13 | { |
||
14 | public function __construct(array $data = null, LoggerInterface $logger = null) |
||
18 | |||
19 | /** |
||
20 | * I don't really use this function, but I can imagine it can come in handy when PHP handles the casting internally |
||
21 | * @return string |
||
|
|||
22 | */ |
||
23 | public function __toString() |
||
27 | } |
||
28 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.