1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

Added more fine grained strpos stub (#4101)

* Added strpos stub

* Update CoreGenericFunctions.phpstub

* Update CoreGenericFunctions.phpstub
This commit is contained in:
Markus Staab 2020-09-01 15:17:57 +02:00 committed by Daniil Gentili
parent 472c2839ad
commit c2ee9700b0
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -481,6 +481,13 @@ function strtolower(string $str) : string {}
*/
function strtoupper(string $str) : string {}
/**
* @psalm-pure
*
* @psalm-return positive-int|0|false
*/
function strpos(string $haystack, $needle, int $offset = 0) : int {}
/**
* @psalm-pure
*