File tree Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change 1111
1212class AutocompleteService
1313{
14- /**
15- * @var FormFactoryInterface
16- */
17- private $ formFactory ;
18-
19- /**
20- * @var ManagerRegistry
21- */
22- private $ doctrine ;
23-
24- /**
25- * @param FormFactoryInterface $formFactory
26- * @param ManagerRegistry $doctrine
27- */
14+ private FormFactoryInterface $ formFactory ;
15+
16+ private ManagerRegistry $ doctrine ;
17+
2818 public function __construct (FormFactoryInterface $ formFactory , ManagerRegistry $ doctrine )
2919 {
3020 $ this ->formFactory = $ formFactory ;
3121 $ this ->doctrine = $ doctrine ;
3222 }
3323
34- /**
35- * @param Request $request
36- * @param string|FormTypeInterface $type
37- *
38- * @return array
39- */
40- public function getAutocompleteResults (Request $ request , $ type )
24+ public function getAutocompleteResults (Request $ request , string |FormTypeInterface $ type ): array
4125 {
4226 $ form = $ this ->formFactory ->create ($ type );
4327 $ fieldOptions = $ form ->get ($ request ->get ('field_name ' ))->getConfig ()->getOptions ();
You can’t perform that action at this time.
0 commit comments