small fixes

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/41755/head
Maxence Lange 2024-01-15 15:44:49 +07:00
parent 6daea857ab
commit 94fe48c998
2 changed files with 3 additions and 3 deletions

@ -144,7 +144,7 @@ class SetConfig extends Base {
*/
try {
$currType = $this->appConfig->getValueType($appName, $configName);
if ($typeString === null || $type === $currType || !$this->ask($input, $output, $typeString)) {
if ($type === null || $typeString === null || $type === $currType || !$this->ask($input, $output, $typeString)) {
$type = $currType;
} else {
$updated = $this->appConfig->updateType($appName, $configName, $type);

@ -575,8 +575,8 @@ class AppConfig implements IAppConfig {
bool $lazy = false,
bool $sensitive = false
): bool {
if ($value > 2147400000) {
$this->logger->debug('You are trying to store an integer value around/above 2,147,483,647. This is a reminder that reaching this theoretical limit on 32 bits system will result to an exception.');
if ($value > 2000000000) {
$this->logger->debug('You are trying to store an integer value around/above 2,147,483,647. This is a reminder that reaching this theoretical limit on 32 bits system will throw an exception.');
}
return $this->setTypedValue(