Fix pipeline phpstan, rector, php-cs-fixer

This commit is contained in:
Julie Lenaerts 2024-11-05 15:43:22 +01:00
parent bc4c2c1471
commit ba3fe6af8c
2 changed files with 4 additions and 5 deletions

View File

@ -21,9 +21,7 @@ use Symfony\Contracts\Translation\TranslatorInterface;
class DocumentCategoryType extends AbstractType 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) public function buildForm(FormBuilderInterface $builder, array $options)
{ {
@ -32,8 +30,8 @@ class DocumentCategoryType extends AbstractType
]; ];
$documentClasses = [ $documentClasses = [
$this->translator->trans('Accompanying period document') => "Chill\DocStoreBundle\Entity\AccompanyingCourseDocument", $this->translator->trans('Accompanying period document') => \Chill\DocStoreBundle\Entity\AccompanyingCourseDocument::class,
$this->translator->trans('Person document') => "Chill\DocStoreBundle\Entity\PersonDocument", $this->translator->trans('Person document') => \Chill\DocStoreBundle\Entity\PersonDocument::class,
]; ];
$builder $builder

View File

@ -12,6 +12,7 @@ declare(strict_types=1);
namespace Chill\EventBundle\Entity; namespace Chill\EventBundle\Entity;
use Doctrine\ORM\Mapping as ORM; use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/** /**
* Class Status. * Class Status.