Deprecation: #75371 - array2xml_cs

See forge#75371

Description

The method GeneralUtility::array2xml_cs() has been marked as deprecated.

Impact

Using the method GeneralUtility::array2xml_cs() will trigger a deprecation log entry.

Affected Installations

All installations with third party extensions using this method are affected.

Migration

Use GeneralUtility::array2xml() instead. The XML declaration must be written manually.

Example code:

// Deprecated
$bodyText = GeneralUtility::array2xml_cs($array, 'phparray');

// Migrated
$bodyText = '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>' . LF . GeneralUtility::array2xml($array, '', 0, 'phparray');