Issue Bug Closed

#108347Avoid using null as array key in extbase `Backend`

Stefan Bürk 11/27/25, 12:55 updated 12/02/25, 11:48

Description

Using `NULL` as array key is converted to an empty
string in PHP and is deprecated since PHP8.5.0,
honored with following `E_DEPRECATED` error:

Using null as an array offset is deprecated,
use an empty string instead

Extbase `\TYPO3\CMS\Extbase\Persistence\Generic\Backend` is
not properly taking care of this and has possible NULL as
array key usages in:

  • `Backend::insertRelationInRelationtable()`
  • `Backend::updateRelationInRelationTable()`
  • `Backend::deleteAllRelationsFromRelationtable()`
  • `Backend::deleteRelationFromRelationtable()`

Reviews 3

History 25

  1. Stefan Bürk commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-11-27T14:50:08+00:00" > 11/27/25, 14:50 </span>

    Applied in changeset commit:d218bf6373c6f24fc6fe9fe8fb26396d19d52220.