Deprecation: #104325 - DiffUtility->makeDiffDisplay()

See forge#104325

Description

Method \TYPO3\CMS\Core\Utility\DiffUtility->makeDiffDisplay() and class property DiffUtility->stripTags have been deprecated in favor of new method DiffUtility->diff(). The new method no longer applies strip_tags() to the input strings.

This change makes class DiffUtility stateless: Property $stripTags will vanish in v14.

Impact

Using method DiffUtility->makeDiffDisplay() will trigger a deprecation level error message.

Affected installations

Instances with extensions calling DiffUtility->makeDiffDisplay().

Migration

If DiffUtility->stripTags is not explicitly set to false, a typical migration looks like this:

// before
$diffUtility->DiffUtility->makeDiffDisplay($from, $to);

// after
$diffUtility->DiffUtility->diff(strip_tags($from), stripTags($to));
Copied!

If DiffUtility->stripTags = false is set before calling DiffUtility->makeDiffDisplay(), method diff() can be called as before, and DiffUtility->stripTags = false can be removed.