Issue Bug Closed

#106509Extbase allowProperty() broken for trustedProperties with INT keys

Garvin Hicking 04/03/25, 18:24 updated 08/12/25, 14:36

Description

With #101292 the introduced types change the signature of PropertyMappingConfiguration->allowProperties() to:

    public function allowProperties(string ...$propertyNames): self

In case an extbase f:form though submits this:

<input type="hidden" name="tx_some_model[__trustedProperties]" value="{&quot;item&quot;:{&quot;title&quot;:1,&quot;categories&quot;:[1,1,1],&quot;date&quot;:1},&quot;submit&quot;:1}99199382b36db7c8ee660a55c327d10f68addcff">

Here the [1,1,1] gets passed to allowProperties as int values. This means the signtatur also needs to accept at least ints.

Note that currently, there are no functional extbase tests in place that cover most of these type changes affecting f:form handling.

Reviews 3