Skip to content

Commit 19f64f9

Browse files
committed
Merge branch 'feature/#65-fix-ParamTag-documentation-examples' into 4.1.x
Fixes #65
2 parents a5a506c + afc1228 commit 19f64f9

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

docs/book/generator/examples.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,14 @@ $foo->setName('Foo')
153153
'shortDescription' => 'Set the bar property',
154154
'longDescription' => null,
155155
'tags' => [
156-
new Tag\ParamTag([
157-
'paramName' => 'bar',
158-
'datatype' => 'string'
159-
]),
156+
new Tag\ParamTag(
157+
'bar',
158+
[
159+
'string',
160+
'array'
161+
],
162+
'parameter description'
163+
),
160164
new Tag\ReturnTag([
161165
'datatype' => 'string',
162166
]),
@@ -207,8 +211,7 @@ class Foo
207211
/**
208212
* Set the bar property
209213
*
210-
* @param string bar
211-
* @return string
214+
* @param string|array $bar parameter description
212215
*/
213216
public function setBar($bar)
214217
{

0 commit comments

Comments
 (0)