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

Support PHP_VERSION_ID in conditional types #6783

Merged
merged 2 commits into from
Oct 29, 2021

Conversation

sad-spirit
Copy link
Contributor

As suggested by @weirdan in #6755 considering return type changes in PHP 8.1

I wouldn't claim that I completely understand all the changes I made, but I used 42802e1 as a reference.

@weirdan weirdan merged commit 6fa2da0 into vimeo:master Oct 29, 2021
@weirdan
Copy link
Collaborator

weirdan commented Oct 29, 2021

Thanks!

@weirdan weirdan added the release:feature The PR will be included in 'Features' section of the release notes label Oct 29, 2021
@weirdan weirdan changed the title Add a means to switch return types based on PHP_VERSION_ID Support PHP_VERSION_ID in conditional types Oct 29, 2021
sad-spirit added a commit to sad-spirit/pg-wrapper that referenced this pull request Nov 18, 2021
This fixes most of the PossiblyInvalidArgument issues in psalm, we suppress the remaining ones and similar phpstan issues
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:feature The PR will be included in 'Features' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants