Skip to content
Snippets Groups Projects

Fix PHP 8.4 deprecation warnings

Open Ryan Olsen requested to merge issue/change_pwd_page-3502605:8.x-1.x into 8.x-1.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -65,7 +65,7 @@ class ChangePasswordForm extends FormBase {
* @param \Drupal\user\UserInterface $user
* The user object.
*/
public function buildForm(array $form, FormStateInterface $form_state, UserInterface $user = NULL) {
public function buildForm(array $form, FormStateInterface $form_state, ?UserInterface $user = NULL) {
/** @var \Drupal\user\UserInterface $account */
$this->userProfile = $account = $user;
$user = $this->currentUser();
Loading