You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #26387 [Yaml] Fix regression when trying to parse multiline (antograssiot)
This PR was squashed before being merged into the 3.4 branch (closes#26387).
Discussion
----------
[Yaml] Fix regression when trying to parse multiline
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #22967
| License | MIT
| Doc PR |
I think this is the lower impacted branch, it fixes a regression added in the last releases campain some days ago.
As discused on Slack @xabbuh
Commits
-------
e787ecf [Yaml] Fix regression when trying to parse multiline
@trigger_error($this->getDeprecationMessage('Starting an unquoted string with a question mark followed by a space is deprecated since Symfony 3.3 and will throw \Symfony\Component\Yaml\Exception\ParseException in 4.0.'), E_USER_DEPRECATED);
407
407
}
408
408
@@ -427,6 +427,10 @@ private function doParse($value, $flags)
427
427
$value = '';
428
428
429
429
foreach ($this->linesas$line) {
430
+
// If the indentation is not consistent at offset 0, it is to be considered as a ParseError
0 commit comments