Actions
Task #100534
closedAvoid PHP deprecation in CSP report
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
Actions