Skip to content

Commit

Permalink
Merge pull request #8219 from Tofandel/patch-2
Browse files Browse the repository at this point in the history
fix: ltrim may return class-string #8218
  • Loading branch information
orklah committed Jul 6, 2022
2 parents 65ffac2 + 6c49dad commit 6e27c23
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stubs/CoreGenericFunctions.phpstub
Expand Up @@ -557,6 +557,8 @@ function trim(string $string, string $characters = " \t\n\r\0\x0B") : string {}
/**
* @psalm-pure
*
* @return ($string is class-string ? ($characters is '\\' ? class-string : string) : string)
*
* @psalm-flow ($string) -> return
*/
function ltrim(string $string, string $characters = " \t\n\r\0\x0B") : string {}
Expand Down

0 comments on commit 6e27c23

Please sign in to comment.