浏览代码

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,