Skip to content

Commit 40dcf2b

Browse files
committed
password_hash() can't return false
1 parent bb41a1b commit 40dcf2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ function unpack(string $format, string $data, int $offset = 0): array|false {}
991991

992992
function password_get_info(string $hash): ?array {}
993993

994-
function password_hash(string $password, $algo, array $options = []): string|false|null {}
994+
function password_hash(string $password, $algo, array $options = []): ?string {}
995995

996996
function password_needs_rehash(string $hash, $algo, array $options = []): bool {}
997997

ext/standard/basic_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_password_get_info, 0, 1, IS_ARRA
14761476
ZEND_ARG_TYPE_INFO(0, hash, IS_STRING, 0)
14771477
ZEND_END_ARG_INFO()
14781478

1479-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_password_hash, 0, 2, MAY_BE_STRING|MAY_BE_FALSE|MAY_BE_NULL)
1479+
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_password_hash, 0, 2, IS_STRING, 1)
14801480
ZEND_ARG_TYPE_INFO(0, password, IS_STRING, 0)
14811481
ZEND_ARG_INFO(0, algo)
14821482
ZEND_ARG_TYPE_INFO(0, options, IS_ARRAY, 0)

0 commit comments

Comments
 (0)