chore(deps): update phpdocumentor/reflection-docblock requirement || ^6.0 (#256)

Updates the requirements on [phpdocumentor/reflection-docblock](https://github.com/phpDocumentor/ReflectionDocBlock) to permit the latest version.
- [Release notes](https://github.com/phpDocumentor/ReflectionDocBlock/releases)
- [Commits](https://github.com/phpDocumentor/ReflectionDocBlock/compare/5.6.0...6.0.2)

---
updated-dependencies:
- dependency-name: phpdocumentor/reflection-docblock
  dependency-version: 6.0.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2026-03-10 23:52:01 +01:00 • committed by GitHub
commit 591abb4620
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,8 @@
namespace Mcp\Tests\Unit\Capability\Discovery;
use Composer\InstalledVersions;
use Composer\Semver\VersionParser;
use Mcp\Capability\Discovery\DocBlockParser;
use phpDocumentor\Reflection\DocBlock;
use phpDocumentor\Reflection\DocBlock\Tags\Deprecated;
@ -78,7 +80,12 @@ class DocBlockParserTest extends TestCase
$this->assertInstanceOf(Param::class, $params['$param5']);
$this->assertEquals('param5', $params['$param5']->getVariableName());
$this->assertEquals('array<string,mixed>', $this->parser->getParamTypeString($params['$param5']));
// Remove if when dropping support for phpdocumentor/reflection-docblock:^5.6
if (InstalledVersions::satisfies(new VersionParser(), 'phpdocumentor/reflection-docblock', '^6.0')) {
$this->assertEquals('array<string, mixed>', $this->parser->getParamTypeString($params['$param5']));
} else {
$this->assertEquals('array<string,mixed>', $this->parser->getParamTypeString($params['$param5']));
}
$this->assertEquals('array description', $this->parser->getParamDescription($params['$param5']));
$this->assertInstanceOf(Param::class, $params['$param6']);