Skip to content

Commit f95a4d4

Browse files
committed
resolve conflict
1 parent 97429b7 commit f95a4d4

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)