Merge pull request #17179 from alisalehi1380/patch-2

add return type in wrapInDatabaseTransaction to Register page
This commit is contained in:
Dan Harrin
2025-08-04 08:58:45 +01:00
committed by GitHub
+1 -1
View File
@@ -70,7 +70,7 @@ class Register extends SimplePage
return null;
}
$user = $this->wrapInDatabaseTransaction(function () {
$user = $this->wrapInDatabaseTransaction(function (): Model {
$this->callHook('beforeValidate');
$data = $this->form->getState();