Repository: phpDocumentor/phpDocumentor (language: php)

Issue:
Inline @see tags are being stripped in long descriptions
When using the current version `v3.3.1` and parsing using the `xml` template, inline `@see` tags are being stripped for long descriptions. According to [the docs](https://docs.phpdoc.org/3.0/guide/references/phpdoc/tags/see.html), the @see tag is valid as inline tags in long descriptions.

## Expected behavior
The contents of the `@see` tags are not stripped, and their contents are preserved in `structure.xml`


## Actual behavior
The contents are stripped

## Steps to reproduce the problem

1. Create a file with inline `@see` tags in the long description
```php
class Test
{
    /**
     * An inline see tag in the description works. {@see Test::foo()}.
     *
     * An inline see tag in the long description does not work. {@see Test::bar()}.
     */
    public function foo()
    {
    }
}
```
2. Run `phpdoc --template xml`
3. Notice that the second `@see` reference has been stripped in `structure.xml` and replaced with `{@see}`:
```xml
<method final="false" abstract="false" static="false" namespace="" line="10" visibility="public" returnByReference="false">
    <name>foo</name>
    <full_name>\Test::foo()</full_name>
    <value></value>
    <docblock line="10">
        <description>An inline see tag in the description works. {@see Test::foo()}.</description>
        <long-description>An inline see tag in the long description does not work. {@see}.</long-description>
    </docblock>
</method>
```

## Your environment

<!--
Include as many relevant details about the environment you experienced the bug in.
Because many issues only occur on a specific code base, please add a link to your project, or attach the project code that is involved to this issue report.
-->

* Version used: v3.3.1
* Install method: phar
* PHP version:  7.4.29
* Operating system and version (e.g. Ubuntu 20.04, Windows 10): Mac OSX 12.4



Discussion / hints:

Fix patch:
diff --git a/src/phpDocumentor/Descriptor/Tag/LinkDescriptor.php b/src/phpDocumentor/Descriptor/Tag/LinkDescriptor.php
index eb88a8c56b..c82e3e0be4 100644
--- a/src/phpDocumentor/Descriptor/Tag/LinkDescriptor.php
+++ b/src/phpDocumentor/Descriptor/Tag/LinkDescriptor.php
@@ -41,4 +41,9 @@ public function getLink(): string
     {
         return $this->link;
     }
+
+    public function __toString(): string
+    {
+        return (string) $this->link;
+    }
 }
diff --git a/src/phpDocumentor/Descriptor/Tag/SeeDescriptor.php b/src/phpDocumentor/Descriptor/Tag/SeeDescriptor.php
index f3cc610aac..30a6d928ee 100644
--- a/src/phpDocumentor/Descriptor/Tag/SeeDescriptor.php
+++ b/src/phpDocumentor/Descriptor/Tag/SeeDescriptor.php
@@ -34,4 +34,9 @@ public function getReference(): Reference
     {
         return $this->reference;
     }
+
+    public function __toString(): string
+    {
+        return (string) $this->reference;
+    }
 }
diff --git a/src/phpDocumentor/Descriptor/Tag/UsesDescriptor.php b/src/phpDocumentor/Descriptor/Tag/UsesDescriptor.php
index 576b16cc7b..8182830773 100644
--- a/src/phpDocumentor/Descriptor/Tag/UsesDescriptor.php
+++ b/src/phpDocumentor/Descriptor/Tag/UsesDescriptor.php
@@ -47,4 +47,9 @@ public function setReference(?object $reference): void
     {
         $this->reference = $reference;
     }
+
+    public function __toString(): string
+    {
+        return (string) $this->reference;
+    }
 }


Test patch: