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:
parent
b373c0c7f9
commit
ec7aaa4a47
@ -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) {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user