Skip to content

Completions produce PHP Deprecated message #5748

@ehausen

Description

@ehausen

Bug Report

Describe the current, buggy behavior

Using WP CLI Nightly version: 2.8.0-alpha-751ac75 using completions yield a PHP Deprecated message in the middle of the command to be completed.

Error: PHP Deprecated: Creation of dynamic property WP_CLI\Completions::$cur_word is deprecated in phar:///usr/local/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Completions.php on line 25

Using https://github.com/wp-cli/wp-cli/blob/main/utils/wp-completion.bash

Here a screenshot: I tried typing "wp eva" + [TAB]
CleanShot 2023-03-14 at 19 21 53@2x

Describe how other contributors can replicate this bug

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions