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

[Yaml] Update README.md #13212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 3, 2015
Merged

[Yaml] Update README.md #13212

merged 1 commit into from
Jan 3, 2015

Conversation

xelaris
Copy link
Contributor

@xelaris xelaris commented Jan 3, 2015

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.

@@ -6,7 +6,8 @@ YAML implements most of the YAML 1.2 specification.
```php
use Symfony\Component\Yaml\Yaml;

$array = Yaml::parse($file);
$yamlStr = file_get_contents(filename);
$array = Yaml::parse($yamlStr);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about: $array = Yaml::parse(file_get_contents(filename));?

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.
@xelaris
Copy link
Contributor Author

xelaris commented Jan 3, 2015

@fabpot that's right. So it's simpler.

@fabpot
Copy link
Member

fabpot commented Jan 3, 2015

Thank you @xelaris.

@fabpot fabpot merged commit bab98f0 into symfony:2.3 Jan 3, 2015
fabpot added a commit that referenced this pull request Jan 3, 2015
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.