You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A magic property can be declared several time without error.
With inheritance, a magic property can't be overridden, it's just duplicated.
Expected behavior
If a magic property is defined twice, there should be a warning.
If a magic property is overridden, the override should replace instead of just being added.
Actual behavior
A magic property can be documented several times.
Steps to reproduce the problem
In an empty folder create the four following classes in respectively BaseClass.php, BaseValueClass.php, HeirClass.php, and HeirValueClass.php.
@jaapio thank you for your reply. I understand that validation is outside phpDocumentor scope/purpose. In fact, having a duplicated element in the doc block rendered as a duplicate element in the HTML doc is kind of logical, like a writer's choice.
A magic property can be declared several time without error.
With inheritance, a magic property can't be overridden, it's just duplicated.
Expected behavior
If a magic property is defined twice, there should be a warning.
If a magic property is overridden, the override should replace instead of just being added.
Actual behavior
A magic property can be documented several times.
Steps to reproduce the problem
BaseClass.php
,BaseValueClass.php
,HeirClass.php
, andHeirValueClass.php
.HeirClass
documentation (./.phpdoc/build/classes/HeirClass.html) and see the issues:There is 3
$value
in the Properties section:Two problems:
$value
in BaseClass is just replicated in the documentation. No related warning was thrown during the built.$value
inHeirClass
is added to the existing properties instead of overriding them.Your environment
The text was updated successfully, but these errors were encountered: