#1200 - removing Yaml::parse()
deprecation errors by passing in file contents instead of file paths
This commit is contained in:
parent
30bf192cf4
commit
d3b1bf571b
@ -788,6 +788,6 @@ class YamlDriver extends FileDriver
|
||||
*/
|
||||
protected function loadMappingFile($file)
|
||||
{
|
||||
return Yaml::parse($file);
|
||||
return Yaml::parse(file_get_contents($file));
|
||||
}
|
||||
}
|
||||
|
@ -77,10 +77,10 @@ class ConvertDoctrine1Schema
|
||||
if (is_dir($path)) {
|
||||
$files = glob($path . '/*.yml');
|
||||
foreach ($files as $file) {
|
||||
$schema = array_merge($schema, (array) Yaml::parse($file));
|
||||
$schema = array_merge($schema, (array) Yaml::parse(file_get_contents($file)));
|
||||
}
|
||||
} else {
|
||||
$schema = array_merge($schema, (array) Yaml::parse($path));
|
||||
$schema = array_merge($schema, (array) Yaml::parse(file_get_contents($file)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user