diff --git a/reference/reflection/reflectionproperty/getdoccomment.xml b/reference/reflection/reflectionproperty/getdoccomment.xml index f826bde565..cfea70d153 100644 --- a/reference/reflection/reflectionproperty/getdoccomment.xml +++ b/reference/reflection/reflectionproperty/getdoccomment.xml @@ -59,6 +59,38 @@ var_dump($prop->getDocComment()); string(53) "/** * @var int The length of the string */" +]]> + + + + + + + Multiple property declarations + + If multiple property declarations are preceeded by a single doc comment, + the doc comment refers to the first property only. + + +getProperties() as $property) { + echo $property->getName() . ': ' . var_export($property->getDocComment(), true) . PHP_EOL; +} +?> +]]> + + &example.outputs; + +