reactphp / async

Async utilities and fibers for ReactPHP.
https://reactphp.org/async/
MIT License
204 stars 19 forks source link

[3.x] Add PHPStan to test environment with `max` level #77

Closed clue closed 1 year ago

clue commented 1 year ago

This changeset backports #76 from 4.x to 3.x to add PHPStan on max level to the test environment for all supported PHP versions. Most changes have been applied as-is, but v3 requires a number of workarounds to support legacy PHP and PHPUnit versions.

If this PR is merged, we could backport most of the changes from v3 to v2. The changes are somewhat similar across all versions, but v2 still supports legacy PHP, so we would have to resort to type definitions in docblocks instead of native PHP types. Let's continue this discussion outside of this PR.

Builds on top of #76 See also https://github.com/orgs/reactphp/discussions/469