Skip to content

Commit e53b8b6

Browse files
committed
Merge branch '3.4' into 4.4
* 3.4: remove superfluous cast Change 'cache_key' to AbstractRendererEngine::CACHE_KEY_VAR Upgrade PHPUnit to 8.5 (php 7.2) and 9.3 (php >= 7.3).
2 parents defb343 + e6f16d8 commit e53b8b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ private function parseValue(string $value, int $flags, string $context)
720720
if (\in_array($value[0], ['!', '|', '>'], true) && self::preg_match('/^(?:'.self::TAG_PATTERN.' +)?'.self::BLOCK_SCALAR_HEADER_PATTERN.'$/', $value, $matches)) {
721721
$modifiers = isset($matches['modifiers']) ? $matches['modifiers'] : '';
722722

723-
$data = $this->parseBlockScalar($matches['separator'], preg_replace('#\d+#', '', $modifiers), (int) abs((int) $modifiers));
723+
$data = $this->parseBlockScalar($matches['separator'], preg_replace('#\d+#', '', $modifiers), abs((int) $modifiers));
724724

725725
if ('' !== $matches['tag'] && '!' !== $matches['tag']) {
726726
if ('!!binary' === $matches['tag']) {

0 commit comments

Comments
 (0)