Use of "parent" in callables is deprecated (PHP 8.2)

When saving a opt-in config, an error occurs with PHP 8.2:

PHP Runtime Deprecation Notice: Use of "parent" in callables is deprecated in /var/www/html/public/typo3conf/ext/sg_cookie_optin/Contrib/minify/src/JS.php line 125

PHP Runtime Deprecation Notice: Creation of dynamic property Patchwork\JSqueeze::$local_tree is deprecated in /var/www/html/public/typo3conf/ext/sg_cookie_optin/Contrib/jsqueeze/src/JSqueeze.php line 925

Error only occurs when 'exceptionalErrors' is set to 12290 (TYPO3 debug preset).

Setup:

  • TYPO3 11.5.30
  • PHP 8.2
  • sg_cookie_optin 5.3.0
Edited by Benedikt Imminger
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information