Issue Bug Closed

#94799Using PHP 7.4 syntax in a 7.2 compatible TYPO3 version example

Tomas Norre Mikkelsen 08/11/21, 06:16 updated 08/14/21, 07:09

Description

The example https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.5.x/Important-94484-IntroduceHTMLSanitizer.html#php-api uses PHP 7.4 syntax

...$this->globalAttrs

I would prefer having PHP 7.2 compatible syntax, as this is introduced in a TYPO3 Version that still supports PHP 7.2

In general, I’m a little unsure about the example.

As I see it, the `withTags` and the `withAttrs` should both be arrays of Tags and Attrs respectively. That’s not the case how I read the example.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.