8000 minor #13212 [Yaml] Update README.md (xelaris) · symfony/symfony@36e05e9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 36e05e9

Browse 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

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