소스 검색

bugfix fiche film hors connexion

François Drouhard 2 년 전
부모
커밋
726f141716
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Service/CommentaireManager.php

+ 1 - 1
src/Service/CommentaireManager.php

@@ -13,7 +13,7 @@ use Symfony\Component\Security\Core\User\UserInterface;
  */
 class CommentaireManager {
 
-    protected UserInterface $user;
+    protected ?UserInterface $user;
 
     public function __construct(
         protected EntityManagerInterface $em,