fix type-hints

This commit is contained in:
Julien Fastré 2023-10-05 11:17:42 +02:00
parent 58e189ee07
commit 4e13b2ae3a
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
2 changed files with 3 additions and 4 deletions

View File

@ -17,6 +17,7 @@ use Doctrine\ORM\QueryBuilder;
use Exception; use Exception;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use function array_merge; use function array_merge;
/** /**
@ -143,10 +144,8 @@ class EntityPersonCRUDController extends CRUDController
/** /**
* @param mixed $entity * @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'); $next = $request->request->get('submit', 'save-and-close');

View File

@ -50,7 +50,7 @@ interface AccompanyingPeriodACLAwareRepositoryInterface
* @param array|Location[] $administrativeLocations * @param array|Location[] $administrativeLocations
* @return list<AccompanyingPeriod> * @return list<AccompanyingPeriod>
*/ */
public function findByUnDispatched(array $jobs, array $services, array $administrativeAdministrativeLocations, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array; public function findByUnDispatched(array $jobs, array $services, array $administrativeLocations, ?array $orderBy = null, ?int $limit = null, ?int $offset = null): array;
/** /**
* @param array|PostalCode[] $postalCodes * @param array|PostalCode[] $postalCodes