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