mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
Fix some stubs
This commit is contained in:
parent
8ede667cad
commit
27b7de285e
@ -513,7 +513,7 @@ function strtoupper(string $str) : string {}
|
||||
*
|
||||
* @psalm-flow ($string, $replacement) -> return
|
||||
*/
|
||||
function substr_replace($string, $replacement, $start, $length) {}
|
||||
function substr_replace($string, $replacement, $start, $length = null) {}
|
||||
|
||||
/**
|
||||
* @psalm-pure
|
||||
@ -771,20 +771,23 @@ function stristr(string $haystack, string $needle, bool $before_needle = false):
|
||||
|
||||
/**
|
||||
* @psalm-pure
|
||||
* @return string|false
|
||||
*
|
||||
* @psalm-flow ($haystack) -> return
|
||||
*/
|
||||
function strchr(string $haystack, string $needle, bool $before_needle = false): string {}
|
||||
function strchr(string $haystack, string $needle, bool $before_needle = false) {}
|
||||
|
||||
/**
|
||||
* @psalm-pure
|
||||
* @return string|false
|
||||
*
|
||||
* @psalm-flow ($haystack) -> return
|
||||
*/
|
||||
function strpbrk(string $haystack, string $char_list): string {}
|
||||
function strpbrk(string $haystack, string $char_list) {}
|
||||
|
||||
/**
|
||||
* @psalm-pure
|
||||
* @return string|false
|
||||
*
|
||||
* @psalm-flow ($haystack) -> return
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user