mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Merge pull request #7073 from weirdan/strlen-no-negative-returns
This commit is contained in:
commit
056497e73d
@ -739,9 +739,13 @@ function htmlspecialchars_decode(string $string, ?int $flags = null) : string {}
|
||||
* @psalm-pure
|
||||
*
|
||||
* @psalm-return (
|
||||
* $string is non-empty-string
|
||||
* ? positive-int
|
||||
* : int
|
||||
* $string is ''
|
||||
* ? 0
|
||||
* : (
|
||||
* $string is non-empty-string
|
||||
* ? positive-int
|
||||
* : (0|positive-int)
|
||||
* )
|
||||
* )
|
||||
*/
|
||||
function strlen(string $string) : int {}
|
||||
|
Loading…
Reference in New Issue
Block a user