Skip to content

Deprecated warnings when using PHP 8.2 #358

@laacz

Description

@laacz

Bug Report

When running theme update --all command, I get a warning:

$ wp theme update --all
Deprecated: Creation of dynamic property Theme_Command::$fetcher is deprecated in phar:///usr/local/bin/wp/vendor/wp-cli/extension-command/src/WP_CLI/CommandWithUpgrade.php on line 45
Success: Theme already updated.

The issue is specific to that one wordpress setup.

Describe what you would expect as the correct outcome

Excepted behaviour is not to throw warning.

Let us know what environment you are running this on

OS:     Linux 5.4.0-146-generic #163-Ubuntu SMP Fri Mar 17 18:26:02 UTC 2023 x86_64
Shell:  /usr/bin/zsh
PHP binary:     /usr/bin/php8.2
PHP version:    8.2.4
php.ini used:   /etc/php/8.2/cli/php.ini
MySQL binary:   /usr/bin/mysql
MySQL version:  mysql  Ver 8.0.32-24 for Linux on x86_64 (Percona Server (GPL), Release '24', Revision 'e5c6e9d2')
SQL modes:      ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
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:       /var/www/lucidus.lt
WP-CLI packages dir:
WP-CLI cache dir:       /home/laacz/.wp-cli/cache
WP-CLI global config:
WP-CLI project config:
WP-CLI version: 2.7.1

Provide additional context/Screenshots

I cannot seem to find the problem ir the master branch of this repo, so this might just be a packing issue.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions