Skip to content

Commit 0af40df

Browse files
committed
sync ControllerHelper docblock with latest AbstractController changes
1 parent 1af6c23 commit 0af40df

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

Controller/AbstractController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
1818
use Symfony\Component\DependencyInjection\ParameterBag\ContainerBagInterface;
1919
use Symfony\Component\Form\Extension\Core\Type\FormType;
20+
use Symfony\Component\Form\Flow\FormFlowInterface;
21+
use Symfony\Component\Form\Flow\FormFlowTypeInterface;
2022
use Symfony\Component\Form\FormBuilderInterface;
2123
use Symfony\Component\Form\FormFactoryInterface;
2224
use Symfony\Component\Form\FormInterface;
23-
use Symfony\Component\Form\Flow\FormFlowInterface;
24-
use Symfony\Component\Form\Flow\FormFlowTypeInterface;
2525
use Symfony\Component\HttpFoundation\BinaryFileResponse;
2626
use Symfony\Component\HttpFoundation\Exception\SessionNotFoundException;
2727
use Symfony\Component\HttpFoundation\JsonResponse;
@@ -351,7 +351,7 @@ protected function createAccessDeniedException(string $message = 'Access Denied.
351351

352352
/**
353353
* Creates and returns a Form instance from the type of the form.
354-
*
354+
*
355355
* @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
356356
*/
357357
protected function createForm(string $type, mixed $data = null, array $options = []): FormInterface

Controller/ControllerHelper.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
1818
use Symfony\Component\DependencyInjection\ParameterBag\ContainerBagInterface;
1919
use Symfony\Component\Form\Extension\Core\Type\FormType;
20+
use Symfony\Component\Form\Flow\FormFlowInterface;
21+
use Symfony\Component\Form\Flow\FormFlowTypeInterface;
2022
use Symfony\Component\Form\FormBuilderInterface;
2123
use Symfony\Component\Form\FormFactoryInterface;
2224
use Symfony\Component\Form\FormInterface;
@@ -342,6 +344,8 @@ public function createAccessDeniedException(string $message = 'Access Denied.',
342344

343345
/**
344346
* Creates and returns a Form instance from the type of the form.
347+
*
348+
* @return ($type is class-string<FormFlowTypeInterface> ? FormFlowInterface : FormInterface)
345349
*/
346350
public function createForm(string $type, mixed $data = null, array $options = []): FormInterface
347351
{

0 commit comments

Comments
 (0)