Procházet zdrojové kódy

bugfix fiche film hors connexion

François Drouhard před 2 roky
rodič
revize
726f141716
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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,