-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Yaml] Regression in object support parser fix #17190
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
Comments
@IngwiePhoenix Can you please check if #17197 completely fixes the issue for you? |
@xabbuh It seems to work. I had to learn how to pull in PRs, but I found ways to get there. I used this as a test: <?php
require "vendor/autload.php";
use Symfony\Component\Yaml\Yaml;
print_r(Yaml::parse("foo: bar\nbaz: derp", false, false, true)); and it does print an |
Success. Works like a charm now. :) |
@IngwiePhoenix Great, thanks for confirming. Next time I would just make the changes locally in your ping @symfony/deciders |
…xabbuh) This PR was merged into the 2.8 branch. Discussion ---------- [Yaml] cast arrays to objects after parsing has finished | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #17190 | License | MIT | Doc PR | Casting arrays to objects must happen after the complete YAML string has been parsed to avoid errors when parsing subsequent lines. Commits ------- 8251d67 cast arrays to objects after parsing has finished
The fix for #17075 done in #17079 introduced a regression.
The following example:
Is failing with the following exception:
The text was updated successfully, but these errors were encountered: