From a6c73a9a0da841151cfcada5e7e25f142860eb17 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Mon, 12 Oct 2020 19:16:13 -0400 Subject: [PATCH] Improve preg_split return more --- stubs/CoreGenericFunctions.phpstub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index 90a8ea7b24c..adec2461b37 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -607,7 +607,7 @@ function explode(string $delimiter, string $string, int $limit = -1) : array {} * * @psalm-flow ($subject) -(array-assignment)-> return * - * @return ($flags is 1|3|5|7 ? list|false : non-empty-list|false) + * @return ($flags is 0 ? non-empty-list|false : list|list>|false) * * @psalm-ignore-falsable-return */