Support the actual #[\SensitiveParameter] attribute in stubs (#8836)

This commit is contained in:
Tim Düsterhus 2022-07-12 12:43:44 +02:00 committed by GitHub
parent f22e0df033
commit 342e18f105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 752 additions and 502 deletions

View file

@ -1623,15 +1623,13 @@ function unpack(string $format, string $string, int $offset = 0): array|false {}
function password_get_info(string $hash): array {}
/**
* @sensitive-param $password
* @refcount 1
*/
function password_hash(string $password, string|int|null $algo, array $options = []): string {}
function password_hash(#[\SensitiveParameter] string $password, string|int|null $algo, array $options = []): string {}
function password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool {}
/** @sensitive-param $password */
function password_verify(string $password, string $hash): bool {}
function password_verify(#[\SensitiveParameter] string $password, string $hash): bool {}
function password_algos(): array {}