| Total Complexity | 3 |
| Total Lines | 11 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 28 | class GetTextBackend implements Translator_Backend { |
||
| 29 | |||
| 30 | public function init(string $lang_token) { |
||
| 31 | // TODO: Implement init() method. |
||
| 32 | } |
||
| 33 | |||
| 34 | public function translate(string $key, string $domain): string { |
||
| 35 | // TODO: Implement translate() method. |
||
| 36 | } |
||
|
|
|||
| 37 | |||
| 38 | public function bindLangPack(string $domain, string $path) { |
||
| 45 |
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: