Issue Task Closed

#100534Avoid PHP deprecation in CSP report

Chris Müller 04/08/23, 08:55 updated 01/30/24, 08:33

Description

When using the new backend module “Content Security Policy” with PHP 8.2, the following deprecation is given:

PHP Runtime Deprecation Notice: Use of "self" in callables is deprecated in /var/www/html/vendor/typo3/cms-core/Classes/Security/ContentSecurityPolicy/Reporting/Report.php line 41

Solution: replace 'self::toCamelCase' with self::class . '::toCamelCase'

See also: https://wiki.php.net/rfc/deprecate_partially_supported_callables#backward_incompatible_changes

Reviews 1