Issue Bug Closed

#109034CategoryAccumulator.php throws deprication warning when category for settings is not set

Felix Pachowsky 02/20/26, 10:03 updated 03/31/26, 08:11

Description

TYPO3: 13.4.25
PHP: 8.5

Error:
PHP Runtime Deprecation Notice: Using null as an array offset is deprecated, use an empty string instead in /var/www/app/vendor/typo3/cms-core/Classes/Settings/CategoryAccumulator.php line 56

Replication:

1. acme_package/Configuration/Sets/Acme/settings.definitions.yaml create a setting without a category
@settings:
footer.menuPageId:
label: ‘Footer menu Page Id’
type: int
default: 48@
2. Go to the Settings Module and choose a SiteSet to see the seetings

Fix:
@$category = $definition->category ?? null;@
into
@$category = $definition->category ?? ‘’;@
could fix the problem?

Reviews 2