1 | <?php |
||
15 | class Xml extends VOString implements VOArrayable |
||
16 | { |
||
17 | use VOArrayMixin; |
||
18 | |||
19 | /** |
||
20 | * @return array |
||
21 | */ |
||
22 | 1 | public function toArray() |
|
26 | |||
27 | /** |
||
28 | * @param array $array |
||
29 | * @throws \InvalidArgumentException |
||
30 | * @return string |
||
|
|||
31 | */ |
||
32 | 1 | public static function fromArray(array $array) |
|
40 | } |
||
41 |
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.