1
0
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:
Matt Brown 2020-11-24 10:44:33 -05:00
parent 8ede667cad
commit 27b7de285e

View File

@ -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
*/