From 568fe5020a679adee1d3ca71d01c18bf6b27325c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=BF=D0=B8?= =?UTF-8?q?=D1=80=D0=BA=D0=BE=D0=B2?= Date: Tue, 11 Nov 2025 16:31:24 +0400 Subject: [PATCH 1/3] Expanded the list of built-in PHP types --- CHANGELOG.md | 1 + renderers/BaseRenderer.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3a3cd8f6..36e627ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Yii Framework 2 apidoc extension Change Log - Bug #313: Fix deprecation error `Method deprecated, use ::getParameters()` (mspirkov) - Bug #317: Fix `trim` deprecation errors `Passing null to parameter #1 ($string) of type string is deprecated` (mspirkov) - Bug #318: Fix deprecation errors `mb_convert_encoding(): Handling HTML entities via mbstring is deprecated` (mspirkov) +- Bug #320: Expanded the list of built-in PHP types (mspirkov) 3.0.7 February 13, 2025 diff --git a/renderers/BaseRenderer.php b/renderers/BaseRenderer.php index fa5c2fa0..bc668833 100644 --- a/renderers/BaseRenderer.php +++ b/renderers/BaseRenderer.php @@ -69,6 +69,10 @@ abstract class BaseRenderer extends Component 'null', 'false', 'true', + 'iterable', + 'mixed', + 'never', + 'void', ]; /** * @var string[] From 26cd866a646b8aedb7b4c3e9ff25db8867f3762a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=BF=D0=B8?= =?UTF-8?q?=D1=80=D0=BA=D0=BE=D0=B2?= Date: Tue, 11 Nov 2025 16:32:17 +0400 Subject: [PATCH 2/3] changelog --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36e627ed..147f5eec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ Yii Framework 2 apidoc extension Change Log - Bug #313: Fix deprecation error `Method deprecated, use ::getParameters()` (mspirkov) - Bug #317: Fix `trim` deprecation errors `Passing null to parameter #1 ($string) of type string is deprecated` (mspirkov) - Bug #318: Fix deprecation errors `mb_convert_encoding(): Handling HTML entities via mbstring is deprecated` (mspirkov) -- Bug #320: Expanded the list of built-in PHP types (mspirkov) +- Enh #320: Expanded the list of built-in PHP types (mspirkov) 3.0.7 February 13, 2025 From 8d639cdfff61e5609b30a89e9fa2cebbf4eadc76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A1=D0=BF=D0=B8?= =?UTF-8?q?=D1=80=D0=BA=D0=BE=D0=B2?= Date: Thu, 13 Nov 2025 18:46:03 +0400 Subject: [PATCH 3/3] update snap --- .../ApiControllerTest__testGenerateBootstrap__2.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/commands/__snapshots__/ApiControllerTest__testGenerateBootstrap__2.html b/tests/commands/__snapshots__/ApiControllerTest__testGenerateBootstrap__2.html index abd75e2d..d2064fef 100644 --- a/tests/commands/__snapshots__/ApiControllerTest__testGenerateBootstrap__2.html +++ b/tests/commands/__snapshots__/ApiControllerTest__testGenerateBootstrap__2.html @@ -372,7 +372,7 @@

Method Details

+publicmixedmethodWithoutDocAndTypeHints ( )
-public mixed methodWithoutDocAndTypeHints ( )