One of the worst things you can do for preparing for PHP upgrades is to use ~E_DEPRECATED in your development environments. Turning off and ignoring deprecation messages causes a world of pain when upgrading.
@ramsey I'll never understand developers who turn of any logging level options in dev environments. I let them scream at me and fix everything I can so that my final logs are meaningful and have a positive signal to noise ratio when the app is in production.
@Zenphp @ramsey currently moving to allowing E_NOTICE to be thrown on CI to ensure tests break for the smallest things. Painful on a legacy code base but worth it!

@ramsey

Hard agree. But sometimes it's necessary to shut up noisy plugins (or core on PHP 8.1+) just while working on a problem, so I have a gist for that.

https://gist.github.com/webaware/6520892

Turn on WordPress' WP_DEBUG_LOG but without E_STRICT. Accompanying blog post: http://snippets.webaware.com.au/snippets/wordpress-wp_debug_log-without-e_strict/

Turn on WordPress' WP_DEBUG_LOG but without E_STRICT. Accompanying blog post: http://snippets.webaware.com.au/snippets/wordpress-wp_debug_log-without-e_strict/ - debug-log-not-strict.php

Gist
@webaware @ramsey deprecation notices on PHP 8.1+ are too noisy with some plugins right now, making it so difficult to properly debug sometimes. Thanks for the gist! I’ll give it a try
@squaredpx Just remember to deactivate it so that you can see your own plugin's deprecation notices! 🙂
@ramsey @webaware when a plugin is noisy in the logs, thats not a good sign for that plugin. Who know why these plugin authors aren’t fixing the warning and notices in their logs. But if they aren’t gonna fix them, try to migrate away from it.

@awoodsnet @ramsey in my past, that plugin has been WooCommerce, Easy Digital Downloads, Gravity Forms, every SEO and events plugin, you name it. Bumping your PHP version brings all the old code into the light.

Most of those are much better these days, but currently the WordPress core fills the log on 8.1, and you should see what 8.2 does!