Skip to content

Commit

Permalink
Revert trim changes
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Sep 1, 2020
1 parent 0519487 commit f6b2d0c
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/Psalm/Internal/Stubs/CoreGenericFunctions.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6b2d0c

Please sign in to comment.