Hi everyone,
Since WP-CLI's internal dependencies aren't fully compatible with PHP 8.5 yet, my error_log is getting absolutely flooded with these notices every single minute:
[08-Apr-2026 06:10:10 UTC] PHP Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///usr/bin/wp-cli/vendor/wp-cli/php-cli-tools/lib/cli/Colors.php on line 95
[08-Apr-2026 06:10:13 UTC] PHP Deprecated: Case statements followed by a semicolon (;) are deprecated, use a colon (:) instead in phar:///usr/bin/wp-cli/vendor/react/promise/src/functions.php on line 369
I want to suppress only the "PHP Deprecated" notices generated by WP-CLI, but I still need to see real errors and warnings from it.
Is there a global way to suppress these specific WP-CLI deprecation notices across all containers? And most importantly: How can I implement this so it doesn't get overwritten during the next Enhance or WP-CLI update?
Thanks in advance for any advice!