| Total Complexity | 4 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 5 | class FileAnalyse |
||
| 6 | { |
||
| 7 | public function getFileComments() : array |
||
| 9 | |||
| 10 | } |
||
|
|
|||
| 11 | |||
| 12 | public function getDeclaredFunctions() : array |
||
| 13 | { |
||
| 14 | |||
| 15 | } |
||
| 16 | |||
| 17 | public function getDeclaredClasses() : array |
||
| 18 | { |
||
| 19 | |||
| 20 | } |
||
| 21 | |||
| 22 | public function getDeclaredInterfaces() : array |
||
| 24 | |||
| 25 | } |
||
| 26 | } |
||
| 27 |
For hinted functions/methods where all return statements with the correct type are only reachable via conditions, ?null? gets implicitly returned which may be incompatible with the hinted type. Let?s take a look at an example: