8000 Fixed deprecation version · symfony/symfony@5f13343 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5f13343

Browse files
committed
Fixed deprecation version
1 parent d0d7ae2 commit 5f13343

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Yaml/Yaml.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class Yaml
4646
*
4747
* @throws ParseException If the YAML is not valid
4848
*
49-
* @deprecated The ability to pass file names to Yaml::parse() was deprecated in 2.7 and will be removed in 3.0. Please, pass the contents of the file instead.
49+
* @deprecated The ability to pass file names to Yaml::parse() was deprecated in 2.2 and will be removed in 3.0. Please, pass the contents of the file instead.
5050
*
5151
* @api
5252
*/
@@ -55,7 +55,7 @@ public static function parse($input, $exceptionOnInvalidType = false, $objectSup
5555
// if input is a file, process it
5656
$file = '';
5757
if (strpos($input, "\n") === false && is_file($input)) {
58-
trigger_error('The ability to pass file names to Yaml::parse() was deprecated in 2.7 and will be removed in 3.0. Please, pass the contents of the file instead.', E_USER_DEPRECATED);
58+
trigger_error('The ability to pass file names to Yaml::parse() was deprecated in 2.2 and will be removed in 3.0. Please, pass the contents of the file instead.', E_USER_DEPRECATED);
5959

6060
if (false === is_readable($input)) {
6161
throw new ParseException(sprintf('Unable to parse "%s" as the file is not readable.', $input));

0 commit comments

Comments
 (0)
0