summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMáté Kocsis <kocsismate@woohoolabs.com>2020-09-14 11:46:14 +0200
committerMáté Kocsis <kocsismate@woohoolabs.com>2020-09-14 11:46:14 +0200
commiteb86d0812867833d4f9c8a82997cd54249549027 (patch)
tree75307275e25b6273f9085edde2cde2e6f0b8ed94
parent7e0631e5eed471bce5ecedcdb4c1c7d9c8da7cd7 (diff)
downloadphp-git-eb86d0812867833d4f9c8a82997cd54249549027.tar.gz
Fix a few stub parameter types in ext/standard
-rwxr-xr-xext/standard/basic_functions.stub.php4
-rwxr-xr-xext/standard/basic_functions_arginfo.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php
index 92406e22be..8e3996e072 100755
--- a/ext/standard/basic_functions.stub.php
+++ b/ext/standard/basic_functions.stub.php
@@ -1151,7 +1151,7 @@ function password_get_info(string $hash): ?array {}
function password_hash(string $password, string|int|null $algo, array $options = []): string {}
-function password_needs_rehash(string $hash, string|int $algo, array $options = []): bool {}
+function password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool {}
function password_verify(string $password, string $hash): bool {}
@@ -1349,7 +1349,7 @@ function stream_get_wrappers(): array|false {}
function stream_get_transports(): array|false {}
-/** @param mixed $stream */
+/** @param resource|string $stream */
function stream_is_local($stream): bool {}
/** @param resource $stream */
diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h
index fe4c07518c..5943429517 100755
--- a/ext/standard/basic_functions_arginfo.h
+++ b/ext/standard/basic_functions_arginfo.h
@@ -1773,7 +1773,7 @@ ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_password_needs_rehash, 0, 2, _IS_BOOL, 0)
ZEND_ARG_TYPE_INFO(0, hash, IS_STRING, 0)
- ZEND_ARG_TYPE_MASK(0, algo, MAY_BE_STRING|MAY_BE_LONG, NULL)
+ ZEND_ARG_TYPE_MASK(0, algo, MAY_BE_STRING|MAY_BE_LONG|MAY_BE_NULL, NULL)
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 0, "[]")
ZEND_END_ARG_INFO()