Refactor input value handling and improve validation in ObjectsGlobal component
This commit is contained in:
@@ -11,7 +11,6 @@ function selfserve_module_config_database_config(): array
|
||||
};
|
||||
|
||||
$method = new ReflectionMethod($subject::class, 'readDatabaseConfigFromEnvironment');
|
||||
$method->setAccessible(true);
|
||||
|
||||
return $method->invoke(null);
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ trait module_config_t
|
||||
if ($value === null || $value === '') {
|
||||
return null;
|
||||
}
|
||||
return (integer)$value;
|
||||
return (int)$value;
|
||||
}
|
||||
// If the variable is a boolean, convert it to a boolean
|
||||
if ($type == 'bool') {
|
||||
|
||||
Reference in New Issue
Block a user