Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Yii Framework 2 apidoc extension Change Log
- 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)
- Bug #327: Fix deprecation errors `The expression value will become of type Expression by default` (mspirkov)
- Bug #329: Fix getting parameter types from the `@method` annotation (mspirkov)


3.0.7 February 13, 2025
Expand Down
2 changes: 1 addition & 1 deletion models/TypeDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public function __construct($reflector = null, $context = null, $config = [])
'name' => $parameter->getName(),
'typeHint' => $argumentType,
'type' => $argumentType,
'types' => [],
'types' => [$argumentType],
]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,11 +437,17 @@ <h2>Method Details</h2>

<table class="detail-table table table-striped table-bordered table-hover">
<tr><td colspan="3" class="signature">
<span class="signature-defs">public</span> <span class="signature-type"><a href="https://www.php.net/language.types.integer">integer</a></span> <strong><a href="yiiunit-apidoc-data-api-animal-animal.html#getSomething()-detail">getSomething</a></strong> ( <span style="color: #0000BB">$test</span> )</td></tr>
<span class="signature-defs">public</span> <span class="signature-type"><a href="https://www.php.net/language.types.integer">integer</a></span> <strong><a href="yiiunit-apidoc-data-api-animal-animal.html#getSomething()-detail">getSomething</a></strong> ( <span style="color: #0000BB">$test</span>, <span class="signature-type"><a href="https://www.php.net/language.types.integer">integer</a></span> <span style="color: #0000BB">$test2</span> )</td></tr>

<tr>
<td class="param-name-col"><span style="color: #0000BB">$test</span></td>
<td class="param-type-col"></td>
<td class="param-type-col"><a href="https://www.php.net/language.types.mixed">mixed</a></td>
<td class="param-desc-col">
</td>
</tr>
<tr>
<td class="param-name-col"><span style="color: #0000BB">$test2</span></td>
<td class="param-type-col"><a href="https://www.php.net/language.types.integer">integer</a></td>
<td class="param-desc-col">
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,11 +323,17 @@ <h2>Method Details</h2>

<table class="detail-table table table-striped table-bordered table-hover">
<tr><td colspan="3" class="signature">
<span class="signature-defs">public</span> <span class="signature-type"><a href="https://www.php.net/language.types.integer">integer</a></span> <strong><a href="yiiunit-apidoc-data-api-animal-animal.html#getSomething()-detail">getSomething</a></strong> ( <span style="color: #0000BB">$test</span> )</td></tr>
<span class="signature-defs">public</span> <span class="signature-type"><a href="https://www.php.net/language.types.integer">integer</a></span> <strong><a href="yiiunit-apidoc-data-api-animal-animal.html#getSomething()-detail">getSomething</a></strong> ( <span style="color: #0000BB">$test</span>, <span class="signature-type"><a href="https://www.php.net/language.types.integer">integer</a></span> <span style="color: #0000BB">$test2</span> )</td></tr>

<tr>
<td class="param-name-col"><span style="color: #0000BB">$test</span></td>
<td class="param-type-col"></td>
<td class="param-type-col"><a href="https://www.php.net/language.types.mixed">mixed</a></td>
<td class="param-desc-col">
</td>
</tr>
<tr>
<td class="param-name-col"><span style="color: #0000BB">$test2</span></td>
<td class="param-type-col"><a href="https://www.php.net/language.types.integer">integer</a></td>
<td class="param-desc-col">
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,17 @@ <h2>Method Details</h2>

<table class="detail-table table table-striped table-bordered table-hover">
<tr><td colspan="3" class="signature">
<span class="signature-defs">public</span> <span class="signature-type"><a href="https://www.php.net/language.types.integer">integer</a></span> <strong><a href="yiiunit-apidoc-data-api-animal-animal.html#getSomething()-detail">getSomething</a></strong> ( <span style="color: #0000BB">$test</span> )</td></tr>
<span class="signature-defs">public</span> <span class="signature-type"><a href="https://www.php.net/language.types.integer">integer</a></span> <strong><a href="yiiunit-apidoc-data-api-animal-animal.html#getSomething()-detail">getSomething</a></strong> ( <span style="color: #0000BB">$test</span>, <span class="signature-type"><a href="https://www.php.net/language.types.integer">integer</a></span> <span style="color: #0000BB">$test2</span> )</td></tr>

<tr>
<td class="param-name-col"><span style="color: #0000BB">$test</span></td>
<td class="param-type-col"></td>
<td class="param-type-col"><a href="https://www.php.net/language.types.mixed">mixed</a></td>
<td class="param-desc-col">
</td>
</tr>
<tr>
<td class="param-name-col"><span style="color: #0000BB">$test2</span></td>
<td class="param-type-col"><a href="https://www.php.net/language.types.integer">integer</a></td>
<td class="param-desc-col">
</td>
</tr>
Expand Down
2 changes: 1 addition & 1 deletion tests/data/api/animal/Animal.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*
* @property int $age animal age in seconds.
*
* @method int getSomething($test)
* @method int getSomething($test, int $test2)
*
* @author Paul Klimov <klimov.paul@gmail.com>
* @since 1.0
Expand Down
Loading