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

Use Promise v3 template types #183

Merged
merged 1 commit into from
Nov 9, 2023

Conversation

clue
Copy link
Contributor

@clue clue commented Nov 8, 2023

This simple changeset adds proper Promise v3 template types to describe API arguments and return values. The change is pretty straightforward, as most of the work was done upstream and in previous PRs linked below.

Note that this project doesn't currently use PHPStan itself, so this is a bit harder to reproduce on its own. I've tested this in a number of downstream projects and it appears this is the minimal changeset required to make downstream projects work that depend on these functions. I'll link relevant PRs against this one for reference.

I'd vote to get this in as is for now to make sure we unblock any downstream projects. Note that this doesn't preclude how and/or whether we're going to integrate PHPStan into pre-v3 components like this one as already discussed in reactphp/async#77.

Builds on top of reactphp/promise#247 and #157

@clue clue added this to the v0.6.0 milestone Nov 8, 2023
@WyriHaximus WyriHaximus merged commit 800e32e into friends-of-reactphp:0.6.x Nov 9, 2023
13 checks passed
@clue clue deleted the template-types branch November 9, 2023 09:54
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.

3 participants