mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Phpstan error for unused parameter fixed
This commit is contained in:
parent
511c0af5fa
commit
d3390ca334
@ -34,9 +34,6 @@ use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
*/
|
||||
class ListCSPerson extends ListPerson implements ListInterface, ExportElementValidatedInterface
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
public const CSPERSON = [
|
||||
'ressource__label' => CSPerson::RESSOURCES,
|
||||
'moyen_transport__label' => CSPerson::MOBILITE_MOYEN_TRANSPORT,
|
||||
@ -47,19 +44,11 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
|
||||
'neet_eligibility__label' => CSPerson::NEET_ELIGIBILITY,
|
||||
];
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $personIds = [];
|
||||
|
||||
/** EntityManagerInterface $em */
|
||||
protected $em;
|
||||
/** TranslatorInterface $translator */
|
||||
protected $translator;
|
||||
/** TranslatableStringHelper $translatableStringHelper */
|
||||
protected $translatableStringHelper;
|
||||
/** CustomFieldProvider $customFieldProvider */
|
||||
protected $customFieldProvider;
|
||||
protected array $personIds = [];
|
||||
protected EntityManagerInterface $em;
|
||||
protected TranslatorInterface $translator;
|
||||
protected TranslatableStringHelper $translatableStringHelper;
|
||||
protected CustomFieldProvider $customFieldProvider;
|
||||
|
||||
public function __construct(
|
||||
TranslatorInterface $translator,
|
||||
@ -70,6 +59,7 @@ class ListCSPerson extends ListPerson implements ListInterface, ExportElementVal
|
||||
ParameterBagInterface $parameterBag
|
||||
) {
|
||||
parent::__construct($customFieldProvider, $listPersonHelper, $em, $translatableStringHelper, $parameterBag);
|
||||
$this->translator = $translator;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -23,10 +23,8 @@ use Chill\PersonBundle\Entity\Person;
|
||||
use Chill\PersonBundle\Export\Declarations;
|
||||
use Chill\PersonBundle\Export\Helper\ListPersonHelper;
|
||||
use Chill\PersonBundle\Security\Authorization\PersonVoter;
|
||||
use DateTimeImmutable;
|
||||
use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\Query;
|
||||
use PhpOffice\PhpSpreadsheet\Shared\Date;
|
||||
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user