| 1 | <?php |
||
| 13 | class Config |
||
| 14 | { |
||
| 15 | protected static $env; |
||
| 16 | protected static $loadedConfigfiguration = []; |
||
| 17 | |||
| 18 | 6 | public static function init() |
|
| 34 | |||
| 35 | 4 | public static function get(string $key) |
|
| 39 | |||
| 40 | 1 | public static function all(): array |
|
| 44 | |||
| 45 | 6 | protected static function load(Iterator $configurationFiles): array |
|
| 61 | } |
||
| 62 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.