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 36e05e9

Browse filesBrowse files
committed
minor #13212 [Yaml] Update README.md (xelaris)
This PR was merged into the 2.3 branch. Discussion ---------- [Yaml] Update README.md | Q | A | ------------- | --- | Fixed tickets | | License | MIT 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. Commits ------- bab98f0 [Yaml] Update README.md
2 parents 1b1b8e0 + bab98f0 commit 36e05e9
Copy full SHA for 36e05e9

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.