Project

General

Profile

Actions

Bug #94799

closed

Using PHP 7.4 syntax in a 7.2 compatible TYPO3 version example

Added by Tomas Norre Mikkelsen over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-08-11
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF