Skip to content

Amend unionizeIterables to support TList#42

Merged
muglug merged 1 commit intopsalm:masterfrom
SignpostMarv:patch-2
Dec 17, 2019
Merged

Amend unionizeIterables to support TList#42
muglug merged 1 commit intopsalm:masterfrom
SignpostMarv:patch-2

Conversation

@SignpostMarv
Copy link
Copy Markdown
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
Copy Markdown
Member

muglug commented Dec 17, 2019

Thanks!

@SignpostMarv
Copy link
Copy Markdown
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.

3 participants