Issue Task Resolved

#111460Raise typo3/html-sanitizer to ^2.4.0

Benni Mack 11/15/26, 08:03 updated 11/15/26, 10:00

Description

Since the direct requirement of masterminds/html5 was removed with #111440, the library is only installed as a dependency of typo3/html-sanitizer, which allows ^2.7.6.

An installation with the lowest dependency versions therefore gets masterminds/html5 2.7.6, which calls spl_object_hash(). This function is deprecated since PHP 8.6, so the unitRandom job with composerInstallMin on PHP 8.6 fails:

Function spl_object_hash() is deprecated since 8.6, consider using spl_object_id() instead
vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php:516

masterminds/html5 2.11.0 is the first version using spl_object_id(). typo3/html-sanitizer 2.4.0 requires masterminds/html5 ^2.11.0 and is tested on PHP 8.6, so raising typo3/html-sanitizer to ^2.4.0 restores the minimum version (see #111344) without bringing back the direct requirement.

Reviews 3

History 36

  1. Gerrit Code Review pushed patch set 1 for main to change 97670 status Accepted Under Review <span data-processor="relativetime" data-value="2026-11-15T09:43:55+00:00" > 11/15/26, 09:43 </span>

  2. Benni Mack changed subject Keep masterminds/html5 at a PHP 8.6 compatible minimum version Raise typo3/html-sanitizer to ^2.4.0 description <span data-processor="relativetime" data-value="2026-11-15T09:46:58+00:00" > 11/15/26, 09:46 </span>

  3. Benni Mack commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-15T10:00:16+00:00" > 11/15/26, 10:00 </span>

    Applied in changeset commit:d9fa115cb9b23aff3d2d46258fc21157ab0d1970.