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

Merge pull request #6069 from elnoro/str-word-count-stub

This commit is contained in:
Bruce Weirdan 2021-07-09 23:47:43 +03:00 committed by GitHub
commit f381fba070
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -843,6 +843,22 @@ function strrchr(string $haystack, string $needle) {}
*/
function strrev(string $string): string {}
/**
* @psalm-pure
*
* @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) {}
/**
* @psalm-pure
*