1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Fix range return type to always non-empty lists

This commit is contained in:
Matt Brown 2020-11-27 20:09:53 -05:00
parent 53c5e52ef2
commit 0ea4a702ed

View File

@ -426,17 +426,17 @@ function abs($number) {}
* @param TStep $step
* @return (
* T is int
* ? (TStep is int ? list<int> : list<int|float>)
* ? (TStep is int ? non-empty-list<int> : non-empty-list<int|float>)
* : (
* T is float
* ? list<float>
* ? non-empty-list<float>
* : (
* T is string
* ? list<string>
* ? non-empty-list<string>
* : (
* T is int|float
* ? list<int|float>
* : list<int|float|string>
* ? non-empty-list<int|float>
* : non-empty-list<int|float|string>
* )
* )
* )