mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Resolve phpstan erorrs
This commit is contained in:
parent
c19c597ba0
commit
a9f4f8c973
@ -23,7 +23,7 @@ class WorkflowDocumentService
|
|||||||
$currentUser = $this->security->getUser();
|
$currentUser = $this->security->getUser();
|
||||||
|
|
||||||
|
|
||||||
if (null !== $workflow) {
|
if (null != $workflow) {
|
||||||
if ($workflow->isFinal()) {
|
if ($workflow->isFinal()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -22,14 +22,13 @@ use Doctrine\ORM\EntityManagerInterface;
|
|||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||||
|
|
||||||
class AccompanyingCourseDocumentWorkflowHandler implements EntityWorkflowHandlerInterface
|
readonly class AccompanyingCourseDocumentWorkflowHandler implements EntityWorkflowHandlerInterface
|
||||||
{
|
{
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityManagerInterface $em,
|
private TranslatorInterface $translator,
|
||||||
private readonly TranslatorInterface $translator,
|
private EntityWorkflowRepository $workflowRepository,
|
||||||
private readonly EntityWorkflowRepository $workflowRepository,
|
private AccompanyingCourseDocumentRepository $repository
|
||||||
private readonly AccompanyingCourseDocumentRepository $repository
|
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ declare(strict_types=1);
|
|||||||
namespace Chill\EventBundle\Form\ChoiceLoader;
|
namespace Chill\EventBundle\Form\ChoiceLoader;
|
||||||
|
|
||||||
use Chill\EventBundle\Entity\Event;
|
use Chill\EventBundle\Entity\Event;
|
||||||
|
use Chill\EventBundle\Repository\EventRepository;
|
||||||
use Doctrine\ORM\EntityRepository;
|
use Doctrine\ORM\EntityRepository;
|
||||||
use Symfony\Component\Form\ChoiceList\ChoiceListInterface;
|
use Symfony\Component\Form\ChoiceList\ChoiceListInterface;
|
||||||
use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
|
use Symfony\Component\Form\ChoiceList\Loader\ChoiceLoaderInterface;
|
||||||
@ -26,9 +27,6 @@ class EventChoiceLoader implements ChoiceLoaderInterface
|
|||||||
*/
|
*/
|
||||||
protected $centers = [];
|
protected $centers = [];
|
||||||
|
|
||||||
/**
|
|
||||||
* @var EntityRepository
|
|
||||||
*/
|
|
||||||
protected $eventRepository;
|
protected $eventRepository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -40,7 +38,7 @@ class EventChoiceLoader implements ChoiceLoaderInterface
|
|||||||
* EventChoiceLoader constructor.
|
* EventChoiceLoader constructor.
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
EntityRepository $eventRepository,
|
EventRepository $eventRepository,
|
||||||
?array $centers = null
|
?array $centers = null
|
||||||
) {
|
) {
|
||||||
$this->eventRepository = $eventRepository;
|
$this->eventRepository = $eventRepository;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user