8000 remove superfluous cast · symfony/symfony@05a9660 · GitHub
[go: up one dir, main page]

Skip to content

Commit 05a9660

Browse files
committed
remove superfluous cast
in YAML component. minor.
1 parent d486f4a commit 05a9660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Yaml/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ private function parseValue($value, $flags, $context)
725725
if (self::preg_match('/^(?:'.self::TAG_PATTERN.' +)?'.self::BLOCK_SCALAR_HEADER_PATTERN.'$/', $value, $matches)) {
726726
$modifiers = isset($matches['modifiers']) ? $matches['modifiers'] : '';
727727

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

730730
if ('' !== $matches['tag']) {
731731
if ('!!binary' === $matches['tag']) {

0 commit comments

Comments
 (0)
0