---
title: "tangwei/apidocs v4.0.0 Breaking Changes on Packagist"
description: "What each tangwei/apidocs release removed, renamed or changed: 9 breaking changes in 1 version on Packagist, each with its source."
canonical_url: https://since.dev/packages/packagist/tangwei/apidocs
last_updated: 2026-12-04
---

# tangwei/apidocs breaking changes

tangwei/apidocs v4.0.0 (November 25, 2026) is its newest release with breaking changes, 9 of them. The first: Removed Hyperf\\ApiDocs\\Swagger\\GenerateResponses::getJsonContent. Every breaking API change we have recorded in tangwei/apidocs on Packagist: 9 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `v4.0.0`, released November 25, 2026. MIT license. [Source repository](https://github.com/tw2066/api-docs)

Packages on Packagist run on PHP. [PHP end of life dates](https://since.dev/calendar/php.md).

## tangwei/apidocs v4.0.0 breaking changes

tangwei/apidocs v4.0.0, released November 25, 2026: 9 breaking changes.

- **Removed** `Hyperf\ApiDocs\Swagger\GenerateResponses::getJsonContent`  

Hyperf\\ApiDocs\\Swagger\\GenerateResponses::getJsonContent was removed in tangwei/apidocs v4.0.0 [packagist.org](https://packagist.org/packages/tangwei/apidocs#v4.0.0)
- **Signature changed** `Hyperf\ApiDocs\Annotation\ApiResponse::__construct`  

Was public function \_\_construct(null|string|object|array $returnType = null, public string|int|null $response = '200', public string $description = 'success'); now public function \_\_construct(null|array|object|string $returnType = null... [packagist.org](https://packagist.org/packages/tangwei/apidocs#v4.0.0)
- **Signature changed** `Hyperf\ApiDocs\Ast\ResponseVisitor::__construct`  

Was public function \_\_construct(protected object $generateClass, protected string $generateClassName, protected array $propertyArr); now public function \_\_construct(protected string $generateClassName, protected array $propertyArr, string... [packagist.org](https://packagist.org/packages/tangwei/apidocs#v4.0.0)
- **Signature changed** `Hyperf\ApiDocs\Swagger\GenerateParameters::getJsonContent`  

Was protected function getJsonContent(string $className, ?Property $property = null): OA\\JsonContent; now protected function getJsonContent(string $className, ?Property $property = null): Schema. [packagist.org](https://packagist.org/packages/tangwei/apidocs#v4.0.0)
- **Signature changed** `Hyperf\ApiDocs\Swagger\GenerateProxyClass::phpParser`  

Was protected function phpParser(object $generateClass, $filePath, $propertyArr): array; now protected function phpParser(string $classname, $filePath, $propertyArr): array. [packagist.org](https://packagist.org/packages/tangwei/apidocs#v4.0.0)
- **Signature changed** `Hyperf\ApiDocs\Swagger\GenerateResponses::getContent`  

Was protected function getContent(array|object|string $returnTypeClassName): array; now protected function getContent(array|object|string $returnTypeClassName, array $types = \[\]): array. [packagist.org](https://packagist.org/packages/tangwei/apidocs#v4.0.0)
- **Signature changed** `Hyperf\ApiDocs\Swagger\SwaggerCommon::getSwaggerType`  

Was public function getSwaggerType(mixed $phpType): string; now public function getSwaggerType(mixed $phpType): ?string. [packagist.org](https://packagist.org/packages/tangwei/apidocs#v4.0.0)
- **Signature changed** `Hyperf\ApiDocs\Swagger\SwaggerComponents::buildPropertyFromReflection`  

Was protected function buildPropertyFromReflection(\\ReflectionProperty $reflectionProperty): Property; now protected function buildPropertyFromReflection(ReflectionProperty $reflectionProperty): Property. [packagist.org](https://packagist.org/packages/tangwei/apidocs#v4.0.0)
- **Signature changed** `Hyperf\ApiDocs\Swagger\SwaggerLlms::getSchemas`  

Was protected function getSchemas($data = \[\], array $components = \[\]): array; now protected function getSchemas(array $data, array $components, array &$visited = \[\]): array. [packagist.org](https://packagist.org/packages/tangwei/apidocs#v4.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
