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
thrownewParseException(sprintf('The string "%s" could not be parsed as it uses an unsupported built-in tag.', $scalar), self::$parsedLineNumber, $scalar, self::$parsedFilename);
// if next line is less indented or equal, then it means that the current value is null
312
312
if (!$this->isNextLineIndented() && !$this->isNextLineUnIndentedCollection()) {
@@ -453,7 +453,7 @@ private function doParse(string $value, int $flags)
453
453
thrownewParseException('Unable to parse.', $this->getRealCurrentLineNb() + 1, $this->currentLine, $this->filename);
454
454
}
455
455
456
-
if (str_contains($line, ': ')) {
456
+
if (false !== strpos($line, ': ')) {
457
457
@trigger_error('Support for mapping keys in multi-line blocks is deprecated since Symfony 4.3 and will throw a ParseException in 5.0.', \E_USER_DEPRECATED);
458
458
}
459
459
@@ -463,7 +463,7 @@ private function doParse(string $value, int $flags)
463
463
$value .= '';
464
464
}
465
465
466
-
if ('' !== trim($line) && str_ends_with($line, '\\')) {
466
+
if ('' !== trim($line) && '\\' === substr($line, -1)) {
467
467
$value .= ltrim(substr($line, 0, -1));
468
468
} elseif ('' !== trim($line)) {
469
469
$value .= trim($line);
@@ -472,7 +472,7 @@ private function doParse(string $value, int $flags)
472
472
if ('' === trim($line)) {
473
473
$previousLineWasNewline = true;
474
474
$previousLineWasTerminatedWithBackslash = false;
475
-
} elseif (str_ends_with($line, '\\')) {
475
+
} elseif ('\\' === substr($line, -1)) {
476
476
$previousLineWasNewline = false;
477
477
$previousLineWasTerminatedWithBackslash = true;
478
478
} else {
@@ -716,7 +716,7 @@ private function moveToPreviousLine(): bool
0 commit comments