Project

General

Profile

Actions

Task #100534

closed

Avoid PHP deprecation in CSP report

Added by Chris Müller about 1 year ago. Updated 3 months ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Code Cleanup
Target version:
Start date:
2023-04-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Sprint Focus:

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


Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Feature #99499: Introduce Content Security Policy handlingUnder ReviewOliver Hader2023-03-01

Actions
Actions

Also available in: Atom PDF