diff --git a/pam/pam.php b/pam/pam.php index deef9dc6a..2b54240b2 100644 --- a/pam/pam.php +++ b/pam/pam.php @@ -11,7 +11,7 @@ * @param string $password

* The user-supplied password to check. *

- * @param string $error

+ * @param string|null &$error

* Output parameter to put any error messages in. *

* @param bool $check_account_management

@@ -23,7 +23,7 @@ * @return bool Returns a bool when complete. If false, $error contains any error messages generated. */ #[Pure] -function pam_auth(string $username, string $password, string $error, bool $check_account_management = true, string $service_name = 'php') {} +function pam_auth(string $username, string $password, ?string &$error = null, bool $check_account_management = true, string $service_name = 'php') {} /** * Change a password for a PAM unix account. @@ -37,7 +37,7 @@ function pam_auth(string $username, string $password, string $error, bool $check * @param string $new_password

* The new password for the account. *

- * @param string $error

+ * @param string|null &$error

* Output parameter to put any error messages in. *

* @param string $service_name

@@ -46,4 +46,4 @@ function pam_auth(string $username, string $password, string $error, bool $check * @return bool Returns a bool when complete. If false, $error contains any error messages generated. */ #[Pure] -function pam_chpass(string $username, string $old_password, string $new_password, string $error, string $service_name = 'php') {} +function pam_chpass(string $username, string $old_password, string $new_password, string &$error = null, string $service_name = 'php') {}