diff --git a/src/Schema/Result/ListResourcesResult.php b/src/Schema/Result/ListResourcesResult.php index a6be7559..aa005639 100644 --- a/src/Schema/Result/ListResourcesResult.php +++ b/src/Schema/Result/ListResourcesResult.php @@ -14,20 +14,20 @@ use Mcp\Exception\InvalidArgumentException; use Mcp\Schema\JsonRpc\Response; use Mcp\Schema\JsonRpc\ResultInterface; -use Mcp\Schema\Resource; +use Mcp\Schema\Resource as ResourceSchema; /** * The server's response to a resources/list request from the client. * - * @phpstan-import-type ResourceData from Resource + * @phpstan-import-type ResourceData from ResourceSchema * * @author Kyrian Obikwelu */ class ListResourcesResult implements ResultInterface { /** - * @param array $resources the list of resource definitions - * @param string|null $nextCursor An opaque token representing the pagination position after the last returned result. + * @param array $resources the list of resource definitions + * @param string|null $nextCursor An opaque token representing the pagination position after the last returned result. * * If present, there may be more results available. */ @@ -50,14 +50,14 @@ public static function fromArray(array $data): self } return new self( - array_map(fn (array $resource) => Resource::fromArray($resource), $data['resources']), + array_map(fn (array $resource) => ResourceSchema::fromArray($resource), $data['resources']), $data['nextCursor'] ?? null ); } /** * @return array{ - * resources: array, + * resources: array, * nextCursor?: string, * } */