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 committed by Daniil Gentili
parent 5cf5aecb2f
commit 1c48258fe2
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

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>
* )
* )
* )