Skip to content

Commit eb86d08

Browse files
committed
Fix a few stub parameter types in ext/standard
1 parent 7e0631e commit eb86d08

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1151,7 +1151,7 @@ function password_get_info(string $hash): ?array {}
11511151

11521152
function password_hash(string $password, string|int|null $algo, array $options = []): string {}
11531153

1154-
function password_needs_rehash(string $hash, string|int $algo, array $options = []): bool {}
1154+
function password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool {}
11551155

11561156
function password_verify(string $password, string $hash): bool {}
11571157

@@ -1349,7 +1349,7 @@ function stream_get_wrappers(): array|false {}
13491349

13501350
function stream_get_transports(): array|false {}
13511351

1352-
/** @param mixed $stream */
1352+
/** @param resource|string $stream */
13531353
function stream_is_local($stream): bool {}
13541354

13551355
/** @param resource $stream */

ext/standard/basic_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1773,7 +1773,7 @@ ZEND_END_ARG_INFO()
17731773

17741774
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_password_needs_rehash, 0, 2, _IS_BOOL, 0)
17751775
ZEND_ARG_TYPE_INFO(0, hash, IS_STRING, 0)
1776-
ZEND_ARG_TYPE_MASK(0, algo, MAY_BE_STRING|MAY_BE_LONG, NULL)
1776+
ZEND_ARG_TYPE_MASK(0, algo, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_NULL, NULL)
17771777
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
17781778
ZEND_END_ARG_INFO()
17791779

0 commit comments

Comments
 (0)