Skip to content

Commit 3cbb465

Browse files
committed
fix tests
ref #967
1 parent be76e08 commit 3cbb465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ux.symfony.com/src/Twig/RegistrationForm.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function instantiateForm(): FormInterface
2929

3030
public function hasValidationErrors(): bool
3131
{
32-
return $this->getFormInstance()->isSubmitted() && !$this->getFormInstance()->isValid();
32+
return $this->getForm()->isSubmitted() && !$this->getForm()->isValid();
3333
}
3434

3535
#[LiveAction]
@@ -42,7 +42,7 @@ public function saveRegistration()
4242
// to a normal controller: that's even better.
4343
// $newUser = $this->getFormInstance()->getData();
4444

45-
$this->newUserEmail = $this->getFormInstance()
45+
$this->newUserEmail = $this->getForm()
4646
->get('email')
4747
->getData();
4848
$this->isSuccessful = true;

0 commit comments

Comments
 (0)