Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve test suite to declare and validate helper variables and support running from meta repository (PHP 8.1) #242

Merged
merged 2 commits into from
Feb 5, 2022

Conversation

clue
Copy link
Member

@clue clue commented Feb 4, 2022

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 said E_DEPRECATED on PHP 8.1+.

I'll link the downstream PR against this one, a failed test run reported a bunch of these messages:

Deprecated: file_exists(): Passing null to parameter #1 ($filename) of type string is deprecated in /data/vendor/react/event-loop/tests/ExtLibeventLoopTest.php on line 29

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

@clue clue added this to the v1.3.0 milestone Feb 4, 2022
@clue clue requested a review from WyriHaximus February 4, 2022 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants