diff --git a/src/FormField/RegisteredMFAMethodListField.php b/src/FormField/RegisteredMFAMethodListField.php index a425b4b..33f6f6b 100644 --- a/src/FormField/RegisteredMFAMethodListField.php +++ b/src/FormField/RegisteredMFAMethodListField.php @@ -70,11 +70,15 @@ public function getSchemaDataDefaults() /** * Get the registered backup method (if any) from the currently logged in user. * + * @param Member|null $member * @return RegisteredMethod|null */ - protected function getBackupMethod($member = null): ?RegisteredMethod + protected function getBackupMethod(Member $member = null): ?RegisteredMethod { $backupMethod = MethodRegistry::singleton()->getBackupMethod(); - return RegisteredMethodManager::singleton()->getFromMember($member ?? Security::getCurrentUser(), $backupMethod); + return RegisteredMethodManager::singleton()->getFromMember( + $member ?? Security::getCurrentUser(), + $backupMethod + ); } }