diff --git a/packages/Symfony/src/PhpDocParser/Ast/PhpDoc/SerializerTypeTagValueNode.php b/packages/Symfony/src/PhpDocParser/Ast/PhpDoc/SerializerTypeTagValueNode.php index e54b4d62a082..d0f9767d3636 100644 --- a/packages/Symfony/src/PhpDocParser/Ast/PhpDoc/SerializerTypeTagValueNode.php +++ b/packages/Symfony/src/PhpDocParser/Ast/PhpDoc/SerializerTypeTagValueNode.php @@ -34,6 +34,16 @@ public function __toString(): string return sprintf('("%s")', $this->name); } + public function changeName(string $newName): void + { + $this->name = $newName; + } + + public function getName(): string + { + return $this->name; + } + public function replaceName(string $oldName, string $newName): bool { $oldNamePattern = '#\b' . preg_quote($oldName, '#') . '\b#';