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:
parent
ee3132a2f9
commit
591abb4620
1 changed files with 10 additions and 2 deletions
|
|
@ -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']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue