Bug Report
Describe the current, buggy behavior
When running the wp i18n make-pot command in PHP 8.2, it throws the following error:
PHP Deprecated: Use of "static" in callables is deprecated in ../vendor/wp-cli/i18n-command/src/IterableCodeExtractor.php on line 245
PHP Deprecated: Use of "static" in callables is deprecated in ../vendor/wp-cli/i18n-command/src/IterableCodeExtractor.php on line 246
Describe how other contributors can replicate this bug
The command I am using is:
bin/wp i18n make-pot {source} {destination}.pot --slug={slug} --domain={domain} --exclude=node_modules --skip-js --allow-root
Describe what you would expect as the correct outcome
No errors being output to the console.
Let us know what environment you are running this on
OS: Darwin 22.3.0 Darwin Kernel Version 22.3.0: Mon Jan 30 20:38:37 PST 2023; root:xnu-8792.81.3~2/RELEASE_ARM64_T6000 arm64
Shell: /bin/zsh
PHP binary: /opt/homebrew/bin/php
PHP version: 8.2.3
php.ini used: /opt/homebrew/etc/php/8.2/php.ini
MySQL binary: /opt/homebrew/opt/mysql@5.7/bin/mysql
MySQL version: mysql Ver 14.14 Distrib 5.7.40, for osx10.18 (x86_64) using EditLine wrapper
SQL modes:
WP-CLI root dir: .../vendor/wp-cli/wp-cli
WP-CLI vendor dir: .../vendor
WP_CLI phar path:
WP-CLI packages dir:
WP-CLI cache dir: /Users/benjamin/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.8.0-alpha
Provide a possible solution
Provide additional context/Screenshots