Total Complexity | 9 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | class Locales |
||
23 | { |
||
24 | public function available(): array |
||
25 | { |
||
26 | } |
||
|
|||
27 | |||
28 | public function installed(): array |
||
29 | { |
||
30 | } |
||
31 | |||
32 | public function protects(): array |
||
34 | } |
||
35 | |||
36 | public function all(): array |
||
37 | { |
||
38 | } |
||
39 | |||
40 | public function isAvailable(): array |
||
42 | } |
||
43 | |||
44 | public function isProtected(): array |
||
45 | { |
||
46 | } |
||
47 | |||
48 | public function isInstalled(): array |
||
49 | { |
||
50 | } |
||
51 | |||
52 | public function getDefault(): array |
||
53 | { |
||
54 | } |
||
55 | |||
56 | public function getFallback(): array |
||
58 | } |
||
59 | } |
||
60 |
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: