Skip to content

Commit 09e4e49

Browse files
committed
minor symfony#19802 [Yaml] Remove legacy code (Ener-Getick)
This PR was merged into the 2.7 branch. Discussion ---------- [Yaml] Remove legacy code | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | It looks like these lines were forgotten during the transition to 2.0 as references are already [managed in `Inline`](https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Yaml/Inline.php#L542-L559). Commits ------- a88dff3 [Yaml] Remove legacy code
2 parents ac9ac83 + a88dff3 commit 09e4e49

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Symfony/Component/Yaml/Parser.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -259,17 +259,6 @@ public function parse($value, $exceptionOnInvalidType = false, $objectSupport =
259259
throw $e;
260260
}
261261

262-
if (is_array($value)) {
263-
$first = reset($value);
264-
if (is_string($first) && 0 === strpos($first, '*')) {
265-
$data = array();
266-
foreach ($value as $alias) {
267-
$data[] = $this->refs[substr($alias, 1)];
268-
}
269-
$value = $data;
270-
}
271-
}
272-
273262
if (isset($mbEncoding)) {
274263
mb_internal_encoding($mbEncoding);
275264
}

0 commit comments

Comments
 (0)