1 | <?php |
||
7 | class Settings |
||
8 | { |
||
9 | /** |
||
10 | * @var array |
||
11 | */ |
||
12 | private static $requiredVariable = [ |
||
13 | 'DB_HOST', |
||
14 | 'DB_NAME', |
||
15 | 'DB_USER', |
||
16 | 'DB_PASS', |
||
17 | 'APP_HOST', |
||
18 | 'APP_API_HOST', |
||
19 | 'APP_ENV', |
||
20 | 'AUTH_SECRET_KEY', |
||
21 | 'AUTH_ALLOW_HOSTS' |
||
22 | ]; |
||
23 | |||
24 | /** |
||
25 | * @return array - array of settings |
||
|
|||
26 | * @throws \Symfony\Component\Config\Exception\FileLoaderLoadException |
||
27 | */ |
||
28 | public static function build() |
||
55 | } |
||
56 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.