Skip to content

Commit a436568

Browse files
committed
[Yaml] deprecated the possibility to pass a file name to Yaml::parse()
1 parent edec5d7 commit a436568

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Yaml.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ public static function enablePhpParsing()
4141
* print_r($array);
4242
* </code>
4343
*
44+
* As this method accepts both plain strings and file names as an input,
45+
* you must validate the input before calling this method. Passing a file
46+
* as an input is a deprecated feature and will be removed in 3.0.
47+
*
4448
* @param string $input Path to a YAML file or a string containing YAML
4549
*
4650
* @return array The YAML converted to a PHP array

0 commit comments

Comments
 (0)