Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit bab98f0

Browse filesBrowse 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
Copy full SHA for bab98f0

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Yaml/README.md

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/README.md
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.