Skip to content

Conversation

@yoeunes
Copy link
Contributor

@yoeunes yoeunes commented Dec 2, 2025

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #62581
License MIT

This PR fixes a regression introduced in #62359 regarding unquoted multiline scalars.

A check for blank lines was incorrectly added, causing the parser to bypass indentation checks and consume trailing newlines. This resulted in incorrect line numbers being reported in exceptions (e.g. when a colon is used in an unquoted value).

@yoeunes yoeunes requested a review from xabbuh as a code owner December 2, 2025 01:46
@carsonbot carsonbot added this to the 6.4 milestone Dec 2, 2025
@yoeunes yoeunes changed the title [Yaml] Fix exception line number and blank line handling for unquoted scalars [Yaml] Fix regression handling blank lines in unquoted scalars Dec 2, 2025
@yoeunes yoeunes force-pushed the yaml-exception-line-numbers branch from f9c589e to 6bfe64e Compare December 2, 2025 01:56
@yoeunes yoeunes force-pushed the yaml-exception-line-numbers branch from 6bfe64e to 1480a23 Compare December 2, 2025 11:52
@nicolas-grekas
Copy link
Member

Thank you @yoeunes.

@nicolas-grekas nicolas-grekas merged commit 42a2f1d into symfony:6.4 Dec 4, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants