Skip to content

Commit

Permalink
fix: ltrim may return class-string vimeo#8218
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofandel committed Jul 6, 2022
1 parent b156892 commit 6c49dad
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 6c49dad

Please sign in to comment.