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:
commit
f381fba070
@ -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
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user