1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Revert trim changes

This commit is contained in:
Brown 2020-09-01 17:41:55 -04:00 committed by Daniil Gentili
parent 3fcc28618e
commit bc040945ca
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

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