From 24b813441e8d3b23fea6236012f62e5d81a3d59f Mon Sep 17 00:00:00 2001
From: valleet01 <thibaut.vallee@unicaen.fr>
Date: Wed, 22 Mar 2023 15:25:57 +0100
Subject: [PATCH] correctif d'une coquille engendrant un warning

---
 src/UnicaenAuthentification/Service/UserContext.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/UnicaenAuthentification/Service/UserContext.php b/src/UnicaenAuthentification/Service/UserContext.php
index 59dce65..a501f4a 100644
--- a/src/UnicaenAuthentification/Service/UserContext.php
+++ b/src/UnicaenAuthentification/Service/UserContext.php
@@ -138,7 +138,7 @@ class UserContext extends AbstractService implements EventManagerAwareInterface
             return $user->getUsername();
         }
         if ($user = $this->getLdapUser()) {
-            return $user->getUsername($this->usenamefield);
+            return $user->getUsername($this->usernamefield);
         }
         if ($user = $this->getDbUser()) {
             return $user->getUsername();
@@ -542,4 +542,4 @@ class UserContext extends AbstractService implements EventManagerAwareInterface
             $this->setNextSelectedIdentityRole($role);
         }
     }
-}
\ No newline at end of file
+}
-- 
GitLab