Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
*/
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);
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(