1 | <?php |
||
13 | class CreateLocalConfigController extends Controller |
||
14 | { |
||
15 | /** |
||
16 | * @var string MySQL host |
||
17 | */ |
||
18 | public $MYSQL_HOST; |
||
19 | /** |
||
20 | 1 | * @var string MySQL database |
|
21 | */ |
||
22 | 1 | public $MYSQL_DATABASE; |
|
23 | /** |
||
24 | * @var string MySQL user |
||
25 | 2 | */ |
|
26 | public $MYSQL_USER; |
||
27 | 2 | /** |
|
28 | 2 | * @var string MySQL password |
|
29 | 1 | */ |
|
30 | public $MYSQL_PASSWORD; |
||
31 | /** |
||
32 | 1 | * @var string Config file path |
|
33 | */ |
||
34 | public $path; |
||
35 | 1 | ||
36 | public function options($actionId = '') |
||
46 | 1 | ||
47 | public function beforeAction($action) |
||
56 | |||
57 | public function actionIndex() |
||
73 | |||
74 | private function fill(string $file) |
||
85 | |||
86 | private function envVars() |
||
93 | } |
||
94 |
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.