1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Improve preg_split return more

This commit is contained in:
Matt Brown 2020-10-12 19:16:13 -04:00 committed by Daniil Gentili
parent 23d1571d2a
commit e999728892
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -607,7 +607,7 @@ function explode(string $delimiter, string $string, int $limit = -1) : array {}
* *
* @psalm-flow ($subject) -(array-assignment)-> return * @psalm-flow ($subject) -(array-assignment)-> return
* *
* @return ($flags is 1|3|5|7 ? list<string>|false : non-empty-list<string>|false) * @return ($flags is 0 ? non-empty-list<string>|false : list<string>|list<list<string|int>>|false)
* *
* @psalm-ignore-falsable-return * @psalm-ignore-falsable-return
*/ */