1 parent 9bd43df commit c7d5d19Copy full SHA for c7d5d19
1 file changed
src/Utility/VarUtility.php
@@ -21,7 +21,7 @@ public static function getDatabaseVarByType(string $var = 'password'): string|bo
21
{
22
$var = ucfirst($var);
23
$type = get('app_type');
24
- $functionName = "\Deployer\getDatabase{$var}For" . ucfirst($type);
+ $functionName = "\Deployer\getDatabase{$var}For" . ucfirst((string) $type);
25
require_once(__DIR__ . "/../../deployer/$type/task/deploy_database.php");
26
if (function_exists($functionName)) {
27
return call_user_func($functionName);
0 commit comments