diff --git a/CHANGELOG.md b/CHANGELOG.md index 545c9da4..9ddaf4a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Yii Framework 2 apidoc extension Change Log - 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) - Enh #319: Determining types by type hints for properties, methods and params (mspirkov) +- Enh #320: Expand the list of built-in PHP types (mspirkov) - Bug #311: Support `nikic/php-parser` v5 (mspirkov) - Bug #324: Raise minimum PHP version to 7.4 (mspirkov) - Bug #325: Fix deprecation errors `The Default value will become of type Expression by default` (mspirkov) 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[] 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 ( )