Skip to content
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.

Commit

Permalink
Pass YAML contents to Yaml::parse
Browse files Browse the repository at this point in the history
Make the call compatible with future Symfony version, and avoid
E_USER_DEPRECATED as thrown by the current 2.7.0-beta2:

The ability to pass file names to the Symfony\Component\Yaml\Yaml::parse
method is deprecated since version 2.2 and will be removed in 3.0. Pass
the YAML contents of the file instead.
  • Loading branch information
DavidPrevot committed May 18, 2015
1 parent ef2231c commit adfbc28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PHPUnit/Extensions/Database/DataSet/SymfonyYamlParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
class PHPUnit_Extensions_Database_DataSet_SymfonyYamlParser implements PHPUnit_Extensions_Database_DataSet_IYamlParser {

public function parseYaml($yamlFile) {
return Symfony\Component\Yaml\Yaml::parse($yamlFile);
return Symfony\Component\Yaml\Yaml::parse(file_get_contents($yamlFile));
}
}

0 comments on commit adfbc28

Please sign in to comment.