From 725add8ae048e67ad74b3fa9071a2ecee586dbfe Mon Sep 17 00:00:00 2001 From: fluffycondor <7ionmail@gmail.com> Date: Sun, 18 Dec 2022 22:21:45 +0600 Subject: [PATCH] Make md5 return type more precise --- stubs/CoreGenericFunctions.phpstub | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index 4ce4136f01e..f65f7725475 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -1471,3 +1471,8 @@ function mb_convert_encoding(array|string $string, string $to_encoding, array|st * @psalm-suppress ReferenceConstraintViolation */ function stream_select(null|array &$read, null|array &$write, null|array &$except, null|int $seconds, null|int $microseconds = null) : bool|int {} + +/** + * @return non-falsy-string + */ +function md5(string $string, bool $binary = false): string {}