1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix return-type

This commit is contained in:
Tim van Dijen 2021-09-07 23:02:28 +02:00 committed by GitHub
parent 0a0ae4bbf4
commit 417ea9c43d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -889,7 +889,7 @@ function str_word_count(string $string, int $format = 0, string|null $characters
* @param string|array<string|int|float> $replacement
* @param string|array<string|int|float> $subject
* @param int $count
* @return ($subject is array ? array<string> : string)
* @return ($subject is array ? array<string> : string|null)
*
* @psalm-flow ($replacement, $subject) -> return
*/