From 2aa596491c1ade315cb9ac14a29788e7466c8444 Mon Sep 17 00:00:00 2001 From: Farhad Safarov Date: Fri, 14 Apr 2023 21:04:54 +0300 Subject: [PATCH] [framework] abstractcontroller - fix createForm method visibility (#315) --- .../FrameworkBundle/Controller/AbstractController.stubphp | 4 ++-- .../FrameworkBundle/Controller/AbstractController.stubphp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Stubs/5/Bundle/FrameworkBundle/Controller/AbstractController.stubphp b/src/Stubs/5/Bundle/FrameworkBundle/Controller/AbstractController.stubphp index 9dd5b346..8bf41530 100644 --- a/src/Stubs/5/Bundle/FrameworkBundle/Controller/AbstractController.stubphp +++ b/src/Stubs/5/Bundle/FrameworkBundle/Controller/AbstractController.stubphp @@ -7,7 +7,7 @@ use Psr\Container\ContainerInterface; use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormTypeInterface; -class AbstractController implements ServiceSubscriberInterface +abstract class AbstractController implements ServiceSubscriberInterface { /** * @var ContainerInterface @@ -23,5 +23,5 @@ class AbstractController implements ServiceSubscriberInterface * * @psalm-return FormInterface */ - public function createForm(string $type, $data = null, array $options = []): FormInterface {} + protected function createForm(string $type, $data = null, array $options = []): FormInterface {} } diff --git a/src/Stubs/6/Bundle/FrameworkBundle/Controller/AbstractController.stubphp b/src/Stubs/6/Bundle/FrameworkBundle/Controller/AbstractController.stubphp index bdf1c0bd..8bf41530 100644 --- a/src/Stubs/6/Bundle/FrameworkBundle/Controller/AbstractController.stubphp +++ b/src/Stubs/6/Bundle/FrameworkBundle/Controller/AbstractController.stubphp @@ -7,7 +7,7 @@ use Psr\Container\ContainerInterface; use Symfony\Component\Form\FormInterface; use Symfony\Component\Form\FormTypeInterface; -class AbstractController implements ServiceSubscriberInterface +abstract class AbstractController implements ServiceSubscriberInterface { /** * @var ContainerInterface