[23-Sep-2023 23:18:01 UTC] PHP Deprecated: grapheme_strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /Users/slaffik/.wp-cli/packages/local/slaffik/wp-cli-tail/vendor/wp-cli/php-cli-tools/lib/cli/cli.php on line 329
[23-Sep-2023 23:18:01 UTC] PHP Deprecated: preg_match_all(): Passing null to parameter #2 ($subject) of type string is deprecated in /Users/slaffik/.wp-cli/packages/local/slaffik/wp-cli-tail/vendor/wp-cli/php-cli-tools/lib/cli/cli.php on line 331
[23-Sep-2023 23:18:01 UTC] PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///opt/homebrew/Cellar/wp-cli/2.8.1/bin/wp/vendor/wp-cli/php-cli-tools/lib/cli/Colors.php on line 215
[23-Sep-2023 23:18:01 UTC] PHP Deprecated: str_pad(): Passing null to parameter #1 ($string) of type string is deprecated in phar:///opt/homebrew/Cellar/wp-cli/2.8.1/bin/wp/vendor/wp-cli/php-cli-tools/lib/cli/Colors.php on line 218
Describe what you would expect as the correct outcome
No "PHP Deprecated" notices.
Let us know what environment you are running this on
Bug Report
Describe the current, buggy behavior
I'm calling this command:
in my custom WP CLI command.
It generates the several deprecations.
I'm on PHP 8.2.
Describe what you would expect as the correct outcome
No "PHP Deprecated" notices.
Let us know what environment you are running this on