From 417ea9c43d323cbcdb0de17df2204e4876d19cf1 Mon Sep 17 00:00:00 2001 From: Tim van Dijen Date: Tue, 7 Sep 2021 23:02:28 +0200 Subject: [PATCH] Fix return-type --- stubs/CoreGenericFunctions.phpstub | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index 994391d0f..1618ae149 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -889,7 +889,7 @@ function str_word_count(string $string, int $format = 0, string|null $characters * @param string|array $replacement * @param string|array $subject * @param int $count - * @return ($subject is array ? array : string) + * @return ($subject is array ? array : string|null) * * @psalm-flow ($replacement, $subject) -> return */