From 1ac9d32565367f05947b97d1b407162490dd75fb Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 5 Nov 2024 15:43:22 +0100 Subject: [PATCH] Fix pipeline phpstan, rector, php-cs-fixer --- .../ChillDocStoreBundle/Form/DocumentCategoryType.php | 8 +++----- src/Bundle/ChillEventBundle/Entity/Status.php | 1 + 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Bundle/ChillDocStoreBundle/Form/DocumentCategoryType.php b/src/Bundle/ChillDocStoreBundle/Form/DocumentCategoryType.php index 7de35191b..e51d124e1 100644 --- a/src/Bundle/ChillDocStoreBundle/Form/DocumentCategoryType.php +++ b/src/Bundle/ChillDocStoreBundle/Form/DocumentCategoryType.php @@ -21,9 +21,7 @@ use Symfony\Contracts\Translation\TranslatorInterface; class DocumentCategoryType extends AbstractType { - public function __construct(private readonly TranslatorInterface $translator) - { - } + public function __construct(private readonly TranslatorInterface $translator) {} public function buildForm(FormBuilderInterface $builder, array $options) { @@ -32,8 +30,8 @@ class DocumentCategoryType extends AbstractType ]; $documentClasses = [ - $this->translator->trans('Accompanying period document') => "Chill\DocStoreBundle\Entity\AccompanyingCourseDocument", - $this->translator->trans('Person document') => "Chill\DocStoreBundle\Entity\PersonDocument", + $this->translator->trans('Accompanying period document') => \Chill\DocStoreBundle\Entity\AccompanyingCourseDocument::class, + $this->translator->trans('Person document') => \Chill\DocStoreBundle\Entity\PersonDocument::class, ]; $builder diff --git a/src/Bundle/ChillEventBundle/Entity/Status.php b/src/Bundle/ChillEventBundle/Entity/Status.php index 89ec9e8b9..a47011203 100644 --- a/src/Bundle/ChillEventBundle/Entity/Status.php +++ b/src/Bundle/ChillEventBundle/Entity/Status.php @@ -12,6 +12,7 @@ declare(strict_types=1); namespace Chill\EventBundle\Entity; use Doctrine\ORM\Mapping as ORM; +use Symfony\Component\Validator\Constraints as Assert; /** * Class Status.