Skip to content

Commit

Permalink
minor #77 updated deprecated use of Yaml::parse (sgilberg)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.1.x-dev branch.

Discussion
----------

updated deprecated use of Yaml::parse

Per [Symfony documentation] (http://symfony.com/doc/current/components/yaml/introduction.html): "Passing a filename is deprecated in Symfony 2.2, and will be removed in Symfony 3.0."

Updated use:
`Yaml::parse(file_get_contents('/path/to/file.yml'));`

Commits
-------

5bff259 updated deprecated use of Yaml::parse
  • Loading branch information
stof committed Jun 3, 2015
2 parents 8f9608d + 5bff259 commit e5d11f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/ProcessorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function testParameterHandling($testCaseName)
'environment' => array(),
'interactive' => false,
),
(array) Yaml::parse($dataDir.'/setup.yml')
(array) Yaml::parse(file_get_contents($dataDir.'/setup.yml'))
);

$workingDir = sys_get_temp_dir() . '/incenteev_parameter_handler';
Expand Down

0 comments on commit e5d11f5

Please # to comment.