|
|
|
@ -10,6 +10,7 @@
|
|
|
|
|
|
|
|
|
|
namespace Symfony\Component\Yaml; |
|
|
|
|
|
|
|
|
|
use Symfony\Component\Yaml\Inline; |
|
|
|
|
use Symfony\Component\Yaml\Exception\ParseException; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -90,7 +91,7 @@ class Parser
|
|
|
|
|
// array |
|
|
|
|
if (!isset($values['value']) || '' == trim($values['value'], ' ') || 0 === strpos(ltrim($values['value'], ' '), '#')) { |
|
|
|
|
$c = $this->getRealCurrentLineNb() + 1; |
|
|
|
|
$parser = new Parser($c); |
|
|
|
|
$parser = new self($c); |
|
|
|
|
$parser->refs =& $this->refs; |
|
|
|
|
$data[] = $parser->parse($this->getNextEmbedBlock(), $exceptionOnInvalidType, $objectSupport); |
|
|
|
|
} else { |
|
|
|
@ -100,7 +101,7 @@ class Parser
|
|
|
|
|
) { |
|
|
|
|
// this is a compact notation element, add to next block and parse |
|
|
|
|
$c = $this->getRealCurrentLineNb(); |
|
|
|
|
$parser = new Parser($c); |
|
|
|
|
$parser = new self($c); |
|
|
|
|
$parser->refs =& $this->refs; |
|
|
|
|
|
|
|
|
|
$block = $values['value']; |
|
|
|
@ -143,7 +144,7 @@ class Parser
|
|
|
|
|
$value = $this->getNextEmbedBlock(); |
|
|
|
|
} |
|
|
|
|
$c = $this->getRealCurrentLineNb() + 1; |
|
|
|
|
$parser = new Parser($c); |
|
|
|
|
$parser = new self($c); |
|
|
|
|
$parser->refs =& $this->refs; |
|
|
|
|
$parsed = $parser->parse($value, $exceptionOnInvalidType, $objectSupport); |
|
|
|
|
|
|
|
|
@ -180,7 +181,7 @@ class Parser
|
|
|
|
|
$data[$key] = null; |
|
|
|
|
} else { |
|
|
|
|
$c = $this->getRealCurrentLineNb() + 1; |
|
|
|
|
$parser = new Parser($c); |
|
|
|
|
$parser = new self($c); |
|
|
|
|
$parser->refs =& $this->refs; |
|
|
|
|
$data[$key] = $parser->parse($this->getNextEmbedBlock(), $exceptionOnInvalidType, $objectSupport); |
|
|
|
|
} |
|
|
|
|