Skip to content

Add annotations to remove deprecated warning message on php8.1 - #152

Merged
danielbachhuber merged 1 commit into
wp-cli:masterfrom
aerogus:master
Nov 3, 2022
Merged

Add annotations to remove deprecated warning message on php8.1#152
danielbachhuber merged 1 commit into
wp-cli:masterfrom
aerogus:master

Conversation

@aerogus

@aerogus aerogus commented Oct 1, 2022

Copy link
Copy Markdown
Contributor

added some #[\ReturnTypeWillChange] to suppress message like these :

Deprecated: Return type of cli\arguments\Lexer::current() should either be compatible with Iterator::current(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 36
PHP Deprecated:  Return type of cli\arguments\Lexer::key() should either be compatible with Iterator::key(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in vendor/wp-cli/php-cli-tools/lib/cli/arguments/Lexer.php on line 64

@danielbachhuber danielbachhuber left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @aerogus !

@danielbachhuber
danielbachhuber merged commit c3e2df0 into wp-cli:master Nov 3, 2022
@danielbachhuber danielbachhuber modified the milestones: 0.11.15, 0.11.16 Nov 3, 2022
@danielbachhuber danielbachhuber changed the title remove deprecated warning message on php8.1 Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants