password_hash() can't return false

This commit is contained in:
Nikita Popov 2019-11-15 12:43:22 +01:00
parent bb41a1b7e7
commit 40dcf2bd3d
2 changed files with 2 additions and 2 deletions

View File

@ -991,7 +991,7 @@ function unpack(string $format, string $data, int $offset = 0): array|false {}
function password_get_info(string $hash): ?array {}
function password_hash(string $password, $algo, array $options = []): string|false|null {}
function password_hash(string $password, $algo, array $options = []): ?string {}
function password_needs_rehash(string $hash, $algo, array $options = []): bool {}

View File

@ -1476,7 +1476,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_password_get_info, 0, 1, IS_ARRA
ZEND_ARG_TYPE_INFO(0, hash, IS_STRING, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_password_hash, 0, 2, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_password_hash, 0, 2, IS_STRING, 1)
ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
ZEND_ARG_INFO(0, algo)
ZEND_ARG_TYPE_INFO(0, options, IS_ARRAY, 0)