8000 minor #38216 Patch YAML superfluous cast (ktomk) · symfony/symfony@6b8857c · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b8857c

Browse files
committed
minor #38216 Patch YAML superfluous cast (ktomk)
This PR was merged into the 3.4 branch. Discussion ---------- Patch YAML superfluous cast | Q | A | ------------- | --- | Branch? | master for features / 3.4, 4.4 or 5.1 for bug fixes <!-- see below --> - 3.4 as branch to patch against as documented | Bug fix? | yes | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | -/- <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT Commits ------- 05a9660 remove superfluous cast
2 parents d486f4a + 05a9660 commit 6b8857c

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
6F11
@@ -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