8000 [Yaml] Update README.md · symfony/symfony@bab98f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit bab98f0

Browse files
committed
[Yaml] Update README.md
The ability to pass file names to Yaml::parse() was deprecated in 2.2 and will be removed in 3.0. So show an up-to-date example.
1 parent 2ecf45c commit bab98f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Yaml/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ YAML implements most of the YAML 1.2 specification.
66
```php
77
use Symfony\Component\Yaml\Yaml;
88

9-
$array = Yaml::parse($file);
9+
$array = Yaml::parse(file_get_contents(filename));
1010

1111
print Yaml::dump($array);
1212
```

0 commit comments

Comments
 (0)
0