Explorar el Código

bugfix fiche film hors connexion

François Drouhard hace 2 años
padre
commit
726f141716
Se han modificado 1 ficheros con 1 adiciones y 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,