intelephense
1.14.41.16.1
lib/stub/standard/password.phplib/stub/standard/password.php+5
Index: package/lib/stub/standard/password.php
===================================================================
--- package/lib/stub/standard/password.php
+++ package/lib/stub/standard/password.php
@@ -161,8 +161,9 @@
* @since 5.5
*/
#[ArrayShape(["algo" => "int", "algoName" => "string", "options" => "array"])]
#[LanguageLevelTypeAware(['8.0' => 'array'], default: 'array|null')]
+#[Pure]
function password_get_info(string $hash) {}
/**
* (PHP 5 >= 5.5.0, PHP 5)<br/>
@@ -181,8 +182,9 @@
* @return string|false|null Returns the hashed password, or FALSE on failure, or null if the algorithm is invalid
* @since 5.5
*/
#[LanguageLevelTypeAware(["8.0" => "string"], default: "string|false|null")]
+#[Pure(true)]
function password_hash(string $password, string|int|null $algo, array $options = []) {}
/**
* Checks if the given hash matches the given options.
@@ -192,8 +194,9 @@
* @param array $options [optional] <p> An associative array containing options. See the password algorithm constants for documentation on the supported options for each algorithm.</p>
* @return bool Returns TRUE if the hash should be rehashed to match the given algo and options, or FALSE otherwise.
* @since 5.5
*/
+#[Pure]
function password_needs_rehash(string $hash, string|int|null $algo, array $options = []): bool {}
/**
* Checks if the given hash matches the given options.
@@ -202,13 +205,15 @@
* @param string $hash A hash created by password_hash().
* @return bool Returns TRUE if the password and hash match, or FALSE otherwise.
* @since 5.5
*/
+#[Pure]
function password_verify(string $password, string $hash): bool {}
/**
* Return a complete list of all registered password hashing algorithms.
* @return string[]
* @since 7.4
*/
+#[Pure]
function password_algos(): array {}
// End of password v.