Issue #3240192 by andypost, Berdir: \Drupal\user\AccountForm::buildEntity() causing deprecations in PHP 8.1

merge-requests/1279/head
Alex Pott 2021-10-01 09:24:59 +01:00
parent b99ec61915
commit 1cdc36bcb4
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 1 additions and 1 deletions

View File

@ -374,7 +374,7 @@ abstract class AccountForm extends ContentEntityForm implements TrustedCallbackI
}
// Set existing password if set in the form state.
$current_pass = trim($form_state->getValue('current_pass'));
$current_pass = trim($form_state->getValue('current_pass', ''));
if (strlen($current_pass) > 0) {
$account->setExistingPassword($current_pass);
}