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

added str_word_count to the stub file (fix #6016)

This commit is contained in:
Ruslan Karimov 2021-07-09 21:40:55 +05:00
parent 0196afc758
commit b373c0c7f9

View File

@ -843,6 +843,17 @@ function strrchr(string $haystack, string $needle) {}
*/
function strrev(string $string): string {}
/**
* @psalm-pure
*
* @psalm-return (
* $format is positive-int
* ? array<string>
* : int
* )
*/
function str_word_count(string $string, int $format = 0, string|null $characters = null) {}
/**
* @psalm-pure
*