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

Do not let string subtypes subsume class-strings #5497

Merged
merged 1 commit into from
Mar 29, 2021

Conversation

weirdan
Copy link
Collaborator

@weirdan weirdan commented Mar 29, 2021

Previously, Psalm would treat unions like class-string|numeric-string as numeric-string, while the only case when string should subsumeclass-string is when we're combining class-string with non-specific string.

Fixes #5491

Previously, Psalm would treat unions like `class-string|numeric-string`
as `numeric-string`, while the only case when string should subsume
`class-string` is when we're combining `class-string` with non-specific
`string`.

Fixes vimeo#5491
@muglug muglug merged commit ec7de89 into vimeo:master Mar 29, 2021
@muglug
Copy link
Collaborator

muglug commented Mar 29, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

class-string|trait-string does not accept class-string
2 participants