Improve test suite to declare and validate helper variables and support running from meta repository (PHP 8.1) #242
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This changeset updates the test suite to declare and validate helper variables (for future PHP 8.2+ compatibility and because these variables may report an
E_DEPRECATED
in tests for PHP 8.1+). This only affects the test suite and is a bit harder to reproduce in this repository itself, but I've stumbled over this while updating ReactPHP's combined test suite that runs all tests of all components and happens to report saidE_DEPRECATED
on PHP 8.1+.I'll link the downstream PR against this one, a failed test run reported a bunch of these messages:
Builds on top of #238, #232 and reactphp/reactphp#445
Refs reactphp/http#440 for a similar test update
Refs reactphp/dns#186 for a similar PHP 8.2+ changeset