Skip to content

Commit c7d5d19

Browse files
fix: cast app_type to string for deployer v8 strict typing
1 parent 9bd43df commit c7d5d19

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Utility/VarUtility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function getDatabaseVarByType(string $var = 'password'): string|bo
2121
{
2222
$var = ucfirst($var);
2323
$type = get('app_type');
24-
$functionName = "\Deployer\getDatabase{$var}For" . ucfirst($type);
24+
$functionName = "\Deployer\getDatabase{$var}For" . ucfirst((string) $type);
2525
require_once(__DIR__ . "/../../deployer/$type/task/deploy_database.php");
2626
if (function_exists($functionName)) {
2727
return call_user_func($functionName);

0 commit comments

Comments
 (0)