From e303bce1e603401eb0610eb9bded55c008bb4c9d Mon Sep 17 00:00:00 2001
From: Bertrand GAUTHIER <bertrand.gauthier@unicaen.fr>
Date: Tue, 4 Jan 2022 15:28:06 +0100
Subject: [PATCH] =?UTF-8?q?Remplacement=20d'une=20classe=20d=C3=A9pr=C3=A9?=
 =?UTF-8?q?ci=C3=A9e?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/UnicaenDbImport/Connection/ApiConnection.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/UnicaenDbImport/Connection/ApiConnection.php b/src/UnicaenDbImport/Connection/ApiConnection.php
index fe58916..890d797 100644
--- a/src/UnicaenDbImport/Connection/ApiConnection.php
+++ b/src/UnicaenDbImport/Connection/ApiConnection.php
@@ -2,7 +2,7 @@
 
 namespace UnicaenDbImport\Connection;
 
-use Laminas\Hydrator\ClassMethods;
+use Laminas\Hydrator\ClassMethodsHydrator;
 
 class ApiConnection
 {
@@ -45,7 +45,7 @@ class ApiConnection
     {
         $inst = new static();
 
-        $h = new ClassMethods();
+        $h = new ClassMethodsHydrator();
         $h->hydrate($config, $inst);
 
         return $inst;
@@ -56,7 +56,7 @@ class ApiConnection
      */
     public function toArray(): array
     {
-        $h = new ClassMethods();
+        $h = new ClassMethodsHydrator();
 
         return $h->extract($this);
     }
-- 
GitLab