Deprecation: #104325 - DiffUtility->makeDiffDisplay()
See forge#104325
Description
Method
\TYPO3\
and class property
Diff have been
deprecated in favor of new method
Diff.
The new method no longer applies
strip_ to the input strings.
This change makes class
Diff stateless: Property
$strip will vanish in v14.
Impact
Using method
Diff will trigger a
deprecation level error message.
Affected installations
Instances with extensions calling
Diff.
Migration
If
Diff 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));
If
Diff is set before calling
Diff, method
diff can be called
as before, and
Diff can be removed.