From 03a236790855e1680009f99669e8d48ca817ca41 Mon Sep 17 00:00:00 2001
From: valleet01 <thibaut.vallee@unicaen.fr>
Date: Wed, 9 Apr 2025 14:25:50 +0200
Subject: [PATCH] =?UTF-8?q?Correctif=20sur=20le=20type=20de=20param=C3=A9t?=
 =?UTF-8?q?re=20envoy=C3=A9e=20par=20Runtime=20Exception?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../Provider/Identity/DbServiceFactory.php                      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/UnicaenAuthentification/Provider/Identity/DbServiceFactory.php b/src/UnicaenAuthentification/Provider/Identity/DbServiceFactory.php
index bd2e218..fc12009 100644
--- a/src/UnicaenAuthentification/Provider/Identity/DbServiceFactory.php
+++ b/src/UnicaenAuthentification/Provider/Identity/DbServiceFactory.php
@@ -44,7 +44,7 @@ class DbServiceFactory implements FactoryInterface
                 throw new RuntimeException(
                     "Impossible de se connecter à l'annuaire LDAP. Si aucune connexion LDAP n'est nécessaire, veuillez " .
                     "commenter les paramètres de config (connection > default > params).",
-                    $e
+                    $e->getCode()
                 );
             }
             $identityProvider->setLdap($ldap);
-- 
GitLab