Skip to content

Commit 47a5a5e

Browse files
committed
minor #61244 [Config] resolve conflict (xabbuh)
This PR was merged into the 6.4 branch. Discussion ---------- [Config] resolve conflict | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #61243 | License | MIT Commits ------- f95a4d4 resolve conflict
2 parents 97429b7 + f95a4d4 commit 47a5a5e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/Symfony/Component/Config/Builder/ConfigBuilderGenerator.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -286,17 +286,10 @@ public function NAME(string $VAR, TYPE $VALUE): static
286286
$paramType = $this->getParamType($noKey ? $nodeParameterTypes : $prototypeParameterTypes);
287287

288288
$comment = $this->getComment($node);
289-
<<<<<<< HEAD
290-
if ($hasNormalizationClosures) {
291-
$comment = \sprintf(" * @template TValue\n * @param TValue \$value\n%s", $comment);
289+
if ($hasNormalizationClosures && 'array' !== $paramType) {
290+
$comment = \sprintf(" * @template TValue of %s\n * @param TValue \$value\n%s", $paramType, $comment);
292291
$comment .= \sprintf(' * @return %s|$this'."\n", $childClass->getFqcn());
293292
$comment .= \sprintf(' * @psalm-return (TValue is array ? %s : static)'."\n ", $childClass->getFqcn());
294-
=======
295-
if ($hasNormalizationClosures && 'array' !== $paramType) {
296-
$comment = sprintf(" * @template TValue of %s\n * @param TValue \$value\n%s", $paramType, $comment);
297-
$comment .= sprintf(' * @return %s|$this'."\n", $childClass->getFqcn());
298-
$comment .= sprintf(' * @psalm-return (TValue is array ? %s : static)'."\n ", $childClass->getFqcn());
299-
>>>>>>> 100c683018d ([Config] Do not generate unreachable configuration paths)
300293
}
301294
if ('' !== $comment) {
302295
$comment = "/**\n$comment*/\n";

0 commit comments

Comments
 (0)