Explorar o código

bugfix fiche film hors connexion

François Drouhard %!s(int64=2) %!d(string=hai) anos
pai
achega
726f141716
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,