You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deprecation error, outdated dependency in PHAR #6324
I'm using WP-CLI 2.12.0 and seeing the following error:
PHP Deprecated: Using null as an array offset is deprecated, use an empty string instead in phar:///usr/local/bin/wp/vendor/wp-cli/php-cli-tools/lib/cli/Colors.php on line 95
This error seems to be resolved by wp-cli/php-cli-tools@f12b650, which is part of tag v0.12.7.
This dependency has been updated here 3bd07b9
Since wp cli 2.12 has been released months after I would expect this error to have been resolved but looking at my phar files I see v0.12.5 is installed for php-cli-tools.
Activity
swissspidy commentedon May 28, 2026
Please update to WP-CLI nightly while we are working on a new release.
swissspidy commentedon May 28, 2026
FWIW, the above commit was 5 months ago in January, but WP-CLI 2.12 was released a year ago in May.
michaelw85 commentedon May 28, 2026
Ah I didn't look at the year 🙈 my bad