diff --git a/src/Symfony/Component/Config/Builder/ConfigBuilderGenerator.php b/src/Symfony/Component/Config/Builder/ConfigBuilderGenerator.php index 0ae8b8623605..cfd2810f7681 100644 --- a/src/Symfony/Component/Config/Builder/ConfigBuilderGenerator.php +++ b/src/Symfony/Component/Config/Builder/ConfigBuilderGenerator.php @@ -286,17 +286,10 @@ public function NAME(string $VAR, TYPE $VALUE): static $paramType = $this->getParamType($noKey ? $nodeParameterTypes : $prototypeParameterTypes); $comment = $this->getComment($node); -<<<<<<< HEAD - if ($hasNormalizationClosures) { - $comment = \sprintf(" * @template TValue\n * @param TValue \$value\n%s", $comment); + if ($hasNormalizationClosures && 'array' !== $paramType) { + $comment = \sprintf(" * @template TValue of %s\n * @param TValue \$value\n%s", $paramType, $comment); $comment .= \sprintf(' * @return %s|$this'."\n", $childClass->getFqcn()); $comment .= \sprintf(' * @psalm-return (TValue is array ? %s : static)'."\n ", $childClass->getFqcn()); -======= - if ($hasNormalizationClosures && 'array' !== $paramType) { - $comment = sprintf(" * @template TValue of %s\n * @param TValue \$value\n%s", $paramType, $comment); - $comment .= sprintf(' * @return %s|$this'."\n", $childClass->getFqcn()); - $comment .= sprintf(' * @psalm-return (TValue is array ? %s : static)'."\n ", $childClass->getFqcn()); ->>>>>>> 100c683018d ([Config] Do not generate unreachable configuration paths) } if ('' !== $comment) { $comment = "/**\n$comment*/\n";
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: