Skip to content

Commit

Permalink
[BUGFIX] Restore PHP 8.1 support
Browse files Browse the repository at this point in the history
Fixes: #654
  • Loading branch information
nhovratov committed Nov 25, 2024
1 parent 97c7e63 commit e76623b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Classes/Definition/TcaFieldDefinition.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,30 +27,30 @@
final class TcaFieldDefinition
{
private const ALLOWED_EMPTY_VALUES_BY_TYPE = [
FieldType::SELECT->value => [
'select' => [
'config.items',
],
FieldType::CHECK->value => [
'check' => [
'config.items',
],
// This is important for upgrades, to keep something in the "config" array.
// In TYPO3 v12 type="inline" with foreign_table="sys_file_reference" is now type="file".
// Because of this, Mask does not have any standard TCA for this field anymore.
// The removeBlankOptions method would thus remove everything and the next save in the backend builder would
// result in the file field to be treated as a "coreField".
FieldType::FILE->value => [
'file' => [
'config.minitems',
],
FieldType::MEDIA->value => [
'media' => [
'config.minitems',
],
];

private const STOP_RECURSIVE_VALUES_BY_TYPE = [
FieldType::SELECT->value => [
'select' => [
'config.itemGroups',
],
FieldType::SLUG->value => [
'slug' => [
'config.generatorOptions.replacements',
],
];
Expand Down

0 comments on commit e76623b

Please sign in to comment.