diff --git a/typo3/sysext/core/Classes/TypoScript/Parser/ConstantConfigurationParser.php b/typo3/sysext/core/Classes/TypoScript/Parser/ConstantConfigurationParser.php index 195825a6db1b2687546b8e1e894874e74c017411..e412b920d1e51d2344e273f18463de5c41953e99 100644 --- a/typo3/sysext/core/Classes/TypoScript/Parser/ConstantConfigurationParser.php +++ b/typo3/sysext/core/Classes/TypoScript/Parser/ConstantConfigurationParser.php @@ -296,6 +296,8 @@ class ConstantConfigurationParser $editableComments[$const]['name'] = $const; $editableComments[$const]['value'] = trim($value); $editableComments[$const]['default_value'] = trim((string)($default[$const] ?? '')); + // If type was not provided, initialize with default value "string". + $editableComments[$const]['type'] ??= 'string'; } } return $editableComments;