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

Amend unionizeIterables to support TList #42

Merged
merged 1 commit into from Dec 17, 2019

Conversation

SignpostMarv
Copy link
Contributor

https://psalm.dev/docs/annotating_code/type_syntax/array_types/#lists

A list type is of the form list, where SomeType is any permitted union type supported by Psalm.

  • list is a subtype of array<int, mixed>
  • list<Foo> is a subtype of array<int, Foo>.

https://psalm.dev/docs/annotating_code/type_syntax/array_types/#lists

> A list type is of the form list<SomeType>, where SomeType is any permitted union type supported by Psalm.
> 
> * `list` is a subtype of `array<int, mixed>`
> * `list<Foo>` is a subtype of `array<int, Foo>`.
@muglug muglug merged commit a577f90 into psalm:master Dec 17, 2019
@muglug
Copy link
Member

muglug commented Dec 17, 2019

Thanks!

@SignpostMarv
Copy link
Contributor Author

you're welcome :)

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.

None yet

3 participants