Skip to content

Fix PHP 8.2 deprecation warnings#165

Merged
danielbachhuber merged 2 commits intowp-cli:mainfrom
mrsdizzie:php-8.2
Apr 6, 2023
Merged

Fix PHP 8.2 deprecation warnings#165
danielbachhuber merged 2 commits intowp-cli:mainfrom
mrsdizzie:php-8.2

Conversation

@mrsdizzie
Copy link
Member

This fixes the following warnings I saw:

8192: Creation of dynamic property WP_CLI\Tests\Context\FeatureContext::$result is deprecated in /wp-cli-tests/src/Context/WhenStepDefinitions.php line 39

8192: Creation of dynamic property WP_CLI\Tests\Context\FeatureContext::$email_sends is deprecated in /wp-cli-dev/wp-cli-tests/src/Context/WhenStepDefinitions.php line 40

Which cause some behat tests to fail under PHP 8.2

All of the other variables in this class a very well commented, so this needs some input from anybody who has a good description of these two.

This fixes the following warnings:

 8192: Creation of dynamic property WP_CLI\Tests\Context\FeatureContext::$result is deprecated in /wp-cli-tests/src/Context/WhenStepDefinitions.php line 39

8192: Creation of dynamic property WP_CLI\Tests\Context\FeatureContext::$email_sends is deprecated in /wp-cli-dev/wp-cli-tests/src/Context/WhenStepDefinitions.php line 40

Which cause behat tests to fail with PHP 8.2
@mrsdizzie mrsdizzie requested a review from a team as a code owner April 5, 2023 00:53
@danielbachhuber
Copy link
Member

All of the other variables in this class a very well commented, so this needs some input from anybody who has a good description of these two.

@mrsdizzie Or you can install Copilot 😁

image

Thanks for the PR!

@danielbachhuber danielbachhuber added this to the 3.2.2 milestone Apr 5, 2023
@danielbachhuber danielbachhuber added the bug Something isn't working label Apr 5, 2023
@danielbachhuber danielbachhuber merged commit c606e43 into wp-cli:main Apr 6, 2023
@danielbachhuber danielbachhuber changed the title Fix PHP 8.2 deprication warnings Fix PHP 8.2 deprecation warnings Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants