mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 23:23:51 +00:00
Resolve phpstan erorrs
This commit is contained in:
@@ -23,7 +23,7 @@ class WorkflowDocumentService
|
||||
$currentUser = $this->security->getUser();
|
||||
|
||||
|
||||
if (null !== $workflow) {
|
||||
if (null != $workflow) {
|
||||
if ($workflow->isFinal()) {
|
||||
return false;
|
||||
}
|
||||
|
@@ -22,14 +22,13 @@ use Doctrine\ORM\EntityManagerInterface;
|
||||
use Doctrine\ORM\EntityRepository;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
|
||||
class AccompanyingCourseDocumentWorkflowHandler implements EntityWorkflowHandlerInterface
|
||||
readonly class AccompanyingCourseDocumentWorkflowHandler implements EntityWorkflowHandlerInterface
|
||||
{
|
||||
|
||||
public function __construct(
|
||||
EntityManagerInterface $em,
|
||||
private readonly TranslatorInterface $translator,
|
||||
private readonly EntityWorkflowRepository $workflowRepository,
|
||||
private readonly AccompanyingCourseDocumentRepository $repository
|
||||
private TranslatorInterface $translator,
|
||||
private EntityWorkflowRepository $workflowRepository,
|
||||
private AccompanyingCourseDocumentRepository $repository
|
||||
) {
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user