Skip to content

Commit fbc1814

Browse files
dependabot[bot]chr-hertel
authored andcommitted
chore(deps): update phpdocumentor/reflection-docblock requirement || ^6.0
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](phpDocumentor/ReflectionDocBlock@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>
1 parent a5a7383 commit fbc1814

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"ext-fileinfo": "*",
2323
"opis/json-schema": "^2.4",
2424
"php-http/discovery": "^1.20",
25-
"phpdocumentor/reflection-docblock": "^5.6",
25+
"phpdocumentor/reflection-docblock": "^5.6 || ^6.0",
2626
"psr/clock": "^1.0",
2727
"psr/container": "^1.0 || ^2.0",
2828
"psr/event-dispatcher": "^1.0",
@@ -37,6 +37,7 @@
3737
},
3838
"require-dev": {
3939
"ext-openssl": "*",
40+
"composer/semver": "^3.0",
4041
"firebase/php-jwt": "^6.10 || ^7.0",
4142
"laminas/laminas-httphandlerrunner": "^2.12",
4243
"nyholm/psr7": "^1.8",

tests/Unit/Capability/Discovery/DocBlockParserTest.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
namespace Mcp\Tests\Unit\Capability\Discovery;
1313

14+
use Composer\InstalledVersions;
15+
use Composer\Semver\VersionParser;
1416
use Mcp\Capability\Discovery\DocBlockParser;
1517
use phpDocumentor\Reflection\DocBlock;
1618
use phpDocumentor\Reflection\DocBlock\Tags\Deprecated;
@@ -78,7 +80,12 @@ public function testGetParamTagsReturnsStructuredParamInfo()
7880

7981
$this->assertInstanceOf(Param::class, $params['$param5']);
8082
$this->assertEquals('param5', $params['$param5']->getVariableName());
81-
$this->assertEquals('array<string,mixed>', $this->parser->getParamTypeString($params['$param5']));
83+
// Remove if when dropping support for phpdocumentor/reflection-docblock:^5.6
84+
if (InstalledVersions::satisfies(new VersionParser(), 'phpdocumentor/reflection-docblock', '^6.0')) {
85+
$this->assertEquals('array<string, mixed>', $this->parser->getParamTypeString($params['$param5']));
86+
} else {
87+
$this->assertEquals('array<string,mixed>', $this->parser->getParamTypeString($params['$param5']));
88+
}
8289
$this->assertEquals('array description', $this->parser->getParamDescription($params['$param5']));
8390

8491
$this->assertInstanceOf(Param::class, $params['$param6']);

0 commit comments

Comments
 (0)