1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Merge pull request #6610 from Dgame/feature/fix-trim-stub

Fixed trim-stub
This commit is contained in:
orklah 2021-10-07 20:23:04 +02:00 committed by GitHub
commit 71798b4ba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -551,23 +551,23 @@ function strpos($haystack, $needle, int $offset = 0) : int {}
/**
* @psalm-pure
*
* @psalm-flow ($str) -> return
* @psalm-flow ($string) -> return
*/
function trim(string $str, string $character_mask = " \t\n\r\0\x0B") : string {}
function trim(string $string, string $characters = " \t\n\r\0\x0B") : string {}
/**
* @psalm-pure
*
* @psalm-flow ($str) -> return
* @psalm-flow ($string) -> return
*/
function ltrim(string $str, string $character_mask = " \t\n\r\0\x0B") : string {}
function ltrim(string $string, string $characters = " \t\n\r\0\x0B") : string {}
/**
* @psalm-pure
*
* @psalm-flow ($str) -> return
* @psalm-flow ($string) -> return
*/
function rtrim(string $str, string $character_mask = " \t\n\r\0\x0B") : string {}
function rtrim(string $string, string $characters = " \t\n\r\0\x0B") : string {}
/**
* @psalm-pure