Skip to content

Undefined property: stdClass::$requires in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 875 #522

@FabioPedretti

Description

@FabioPedretti

Bug Report

Describe the current, buggy behavior

When running wp plugin list on some wordpress installations I get this warning:

$ wp plugin list
PHP Warning:  Undefined property: stdClass::$requires in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 875

Warning: Undefined property: stdClass::$requires in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/Plugin_Command.php on line 875
+----------------------------+--------+-------------+---------+----------------+-------------+----------+--------------+
| name                       | status | update      | version | update_version | auto_update | requires | requires_php |
+----------------------------+--------+-------------+---------+----------------+-------------+----------+--------------+
| advanced-custom-fields-pro | active | available   | 6.3.2.1 | 6.8.0.1        | on          | 6.2      | 7.4          |
...

Describe what you would expect as the correct outcome

No warnings.

Let us know what environment you are running this on

OS:	Linux 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
Shell:	/bin/bash
PHP binary:	/usr/bin/php8.2
PHP version:	8.2.30
php.ini used:	/etc/php/8.2/cli/php.ini
MySQL binary:	/usr/bin/mariadb
MySQL version:	mariadb  Ver 15.1 Distrib 10.11.14-MariaDB, for debian-linux-gnu (x86_64) using  EditLine wrapper
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 phar path:	phar:///usr/local/bin/wp
WP-CLI packages dir:	
WP-CLI cache dir:	/home/.wp-cli/cache
WP-CLI global config:	
WP-CLI project config:	
WP-CLI version:	2.12.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions