Skip to content

Commit 99a1e18

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: resolve conflict
2 parents ae1ceaa + f9df75b commit 99a1e18

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
@@ -285,17 +285,10 @@ public function NAME(string $VAR, TYPE $VALUE): static
285285
$paramType = $this->getParamType($noKey ? $nodeParameterTypes : $prototypeParameterTypes);
286286

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

0 commit comments

Comments
 (0)