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

Update stubs/CoreGenericFunctions.phpstub

Co-authored-by: Bruce Weirdan <weirdan@gmail.com>
This commit is contained in:
elnoro 2021-07-09 23:25:12 +05:00 committed by GitHub
parent b373c0c7f9
commit ec7aaa4a47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -846,10 +846,15 @@ function strrev(string $string): string {}
/**
* @psalm-pure
*
* @psalm-return (
* $format is positive-int
* ? array<string>
* : int
* @param 0|1|2 $format
* @return (
* $format is 0 ?
* int :
* (
* $format is 1 ?
* list<string> :
* array<int, string>
* )
* )
*/
function str_word_count(string $string, int $format = 0, string|null $characters = null) {}