8000 small fix · symfony/symfony@f4b57c9 · GitHub
[go: up one dir, main page]

Skip to content

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

Commit f4b57c9

Browse files
committed
small fix
1 parent cf20383 commit f4b57c9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Symfony/Component/Yaml/Parser.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ private function getCurrentLineIndentation(): int
567567
*
568568
* @throws ParseException When indentation problem are detected
569569
*/
570-
private function getNextEmbedBlock(int $indentation = null, bool $inSequence = false, $isInlineFirstChild = false): string
570+
private function getNextEmbedBlock(int $indentation = null, bool $inSequence = false, bool $isInlineFirstChild = false): string
571571
{
572572
$oldLineIndentation = $this->getCurrentLineIndentation();
573573

@@ -608,9 +608,8 @@ private function getNextEmbedBlock(int $indentation = null, bool $inSequence = f
608608
}
609609

610610
$data = [];
611-
if ($isInlineFirstChild) {
612-
$data[] = substr($this->currentLine, $newIndent);
613-
} elseif ($this->getCurrentLineIndentation() >= $newIndent) {
611+
612+
if ($isInlineFirstChild || $this->getCurrentLineIndentation() >= $newIndent) {
614613
$data[] = substr($this->currentLine, $newIndent);
615614
} elseif ($this->isCurrentLineEmpty() || $this->isCurrentLineComment()) {
616615
$data[] = $this->currentLine;

0 commit comments

Comments
 (0)
0