#109034CategoryAccumulator.php throws deprication warning when category for settings is not set
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
History 24
-
Gerrit Code Review pushed patch set 1 for main to change 92922 status
NewUnder Review <span data-processor="relativetime" data-value="2026-02-20T12:59:14+00:00" > 02/20/26, 12:59 </span> -
Gerrit Code Review pushed patch set 1 for 13.4 to change 92924 <span data-processor="relativetime" data-value="2026-02-20T13:26:00+00:00" > 02/20/26, 13:26 </span>
-
Garvin Hicking commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-02-20T14:30:09+00:00" > 02/20/26, 14:30 </span> -
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-03-31T08:11:29+00:00" > 03/31/26, 08:11 </span>
Applied in changeset commit:582df52ee76823c3d167d0def4543bb201f3eb3a.