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
@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
@@ -421,7 +421,16 @@ private function doParse($value, $flags)
421
421
}
422
422
423
423
// try to parse the value as a multi-line string as a last resort
424
-
if (0 === $this->currentLineNb && !$this->isNextLineIndented()) {
424
+
if (0 === $this->currentLineNb && 1 < $this->totalNumberOfLines) {
425
+
// If the indentation is not consistent at offset 0, it is to be considered as a ParseError
426
+
if (0 === $this->offset && !$deprecatedUsage) {
427
+
foreach ($this->linesas$line) {
428
+
if (rtrim($line) !== trim($line)) {
429
+
thrownewParseException('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
0 commit comments