fix type-hints

This commit is contained in:
2023-10-05 11:17:42 +02:00
parent 58e189ee07
commit 4e13b2ae3a
2 changed files with 3 additions and 4 deletions

View File

@@ -17,6 +17,7 @@ use Doctrine\ORM\QueryBuilder;
use Exception;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use function array_merge;
/**
@@ -143,10 +144,8 @@ class EntityPersonCRUDController extends CRUDController
/**
* @param mixed $entity
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse
*/
protected function onBeforeRedirectAfterSubmission(string $action, $entity, \Symfony\Component\Form\FormInterface $form, Request $request)
protected function onBeforeRedirectAfterSubmission(string $action, $entity, \Symfony\Component\Form\FormInterface $form, Request $request): ?Response
{
$next = $request->request->get('submit', 'save-and-close');