Răsfoiți Sursa

bugfix fiche film hors connexion

François Drouhard 2 ani în urmă
părinte
comite
726f141716
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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,