Skip to content

Commit

Permalink
[Yaml] deprecated the possibility to pass a file name to Yaml::parse()
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 17, 2013
1 parent edec5d7 commit a436568
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Yaml.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public static function enablePhpParsing()
* print_r($array);
* </code>
*
* As this method accepts both plain strings and file names as an input,
* you must validate the input before calling this method. Passing a file
* as an input is a deprecated feature and will be removed in 3.0.
*
* @param string $input Path to a YAML file or a string containing YAML
*
* @return array The YAML converted to a PHP array
Expand Down

0 comments on commit a436568

Please sign in to comment.