Title: PHP Deprecated errors with PHP 8.2 and up
Last modified: February 11, 2025

---

# PHP Deprecated errors with PHP 8.2 and up

 *  [zudie](https://wordpress.org/support/users/zudie/)
 * (@zudie)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/php-deprecated-errors-with-php-8-2-and-up/)
 * Cannot switch to PHP 8.2 due to PHP errors in this plugin. Errors shown in debug.
   log. Please fix.
 *  PHP Deprecated:  Creation of dynamic property WhichBrowser\Analyser\Header\Useragent::
   $data is deprecated in /home/customer/www/…/wp-content/plugins/duracelltomi-google-
   tag-manager/integration/whichbrowser/src/Analyser/Header/Useragent.php on line
   11
 * PHP Deprecated:  Creation of dynamic property WhichBrowser\Analyser\Header\Useragent::
   $options is deprecated in /home/customer/www/…/wp-content/plugins/duracelltomi-
   google-tag-manager/integration/whichbrowser/src/Analyser/Header/Useragent.php
   on line 12

The topic ‘PHP Deprecated errors with PHP 8.2 and up’ is closed to new replies.

 * ![](https://ps.w.org/duracelltomi-google-tag-manager/assets/icon-256x256.png?
   rev=1708451)
 * [GTM4WP - A Google Tag Manager (GTM) plugin for WordPress](https://wordpress.org/plugins/duracelltomi-google-tag-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duracelltomi-google-tag-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duracelltomi-google-tag-manager/reviews/)

## Tags

 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)

 * 0 replies
 * 1 participant
 * Last reply from: [zudie](https://wordpress.org/support/users/zudie/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/php-deprecated-errors-with-php-8-2-and-up/)
 * Status: not resolved