Bug Report
Describe the current, buggy behavior
PHP Deprecated notice:
Deprecated: Return type of Symfony\Component\Process\Process::getIterator($flags = 0) should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in phar:///opt/homebrew/Cellar/wp-cli/2.11.0/bin/wp/vendor/symfony/process/Process.php on line 567
Describe how other contributors can replicate this bug
- make sure you are on PHP 8.2
- run
wp package list command
Describe what you would expect as the correct outcome
No deprecation notices.
Let us know what environment you are running this on
OS: Darwin 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:49:39 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_T6000 arm64
Shell: /bin/zsh
PHP binary: /opt/homebrew/Cellar/[email protected]/8.2.24_1/bin/php
PHP version: 8.2.24
php.ini used: /opt/homebrew/etc/php/8.2/php.ini
MySQL binary:
MySQL version:
SQL modes:
WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli
WP-CLI vendor dir: phar://wp-cli.phar/vendor
WP-CLI packages dir: /Users/slaffik/.wp-cli/packages/
WP-CLI cache dir: /Users/slaffik/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.11.0