Skip to content

Deprecation error, outdated dependency in PHAR #6324

Closed as not planned
Closed as not planned

Description

@michaelw85

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.

'wp-cli/php-cli-tools' => array(
    'pretty_version' => 'v0.12.5',
    'version' => '0.12.5.0',
    'type' => 'library',
    'install_path' => __DIR__ . '/../wp-cli/php-cli-tools',
    'aliases' => array(),
    'reference' => '34b83b4f700df8a4ec3fd17bf7e7e7d8ca5f28da',
    'dev_requirement' => false,
)

Activity

  1. swissspidy commented on May 28, 2026

    @swissspidy
    Member

    Please update to WP-CLI nightly while we are working on a new release.

  2. swissspidy commented on May 28, 2026

    @swissspidy
    Member

    Since wp cli 2.12 has been released months after

    FWIW, the above commit was 5 months ago in January, but WP-CLI 2.12 was released a year ago in May.

  3. michaelw85 commented on May 28, 2026

    @michaelw85
    Author

    Since wp cli 2.12 has been released months after

    FWIW, the above commit was 5 months ago in January, but WP-CLI 2.12 was released a year ago in May.

    Ah I didn't look at the year 🙈 my bad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions