Parcourir la source

Fix usage of deprecated method Yaml::load

Lukas Botsch il y a 14 ans
Parent
commit
58112c8278
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      lib/Gedmo/Sortable/Mapping/Driver/Yaml.php

+ 1 - 1
lib/Gedmo/Sortable/Mapping/Driver/Yaml.php

@@ -81,7 +81,7 @@ class Yaml extends File implements Driver
      */
     protected function _loadMappingFile($file)
     {
-        return \Symfony\Component\Yaml\Yaml::load($file);
+        return \Symfony\Component\Yaml\Yaml::parse($file);
     }
 
     /**