Refactor input value handling and improve validation in ObjectsGlobal component

This commit is contained in:
Jeppe Bundgaard
2026-06-29 08:28:00 +02:00
parent 605efacece
commit 148b575767
2 changed files with 1 additions and 2 deletions
@@ -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') {