-
-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should @method augment inherited methods #943
Comments
IMHO, This addresses the scenario, without potentially causing side effects (if by "augment" you mean "merge, with |
@ashnazg and I had discussed this idea on IRC and indeed; the gist is that This means that, given a sub and super class, that the chain of inheritance would be:
The same rules with regards to what gets inherited and what not will apply for the whole inheritence chain and do not need to change. The above goes for properties as well |
But consider a scenario where you have a real method... but you want to declare an alternative prototype that it may accept. Take XSLTProcessor::setParameter() as an example. You'd want to have the first prototype being the "real" one (since it has the most arguments), but you'll also want to document the secondary prototype. If either definition overrides the other one, you can't have both prototypes documented. |
That is an unsupported scenario at the moment and, at the moment, I think we should not solve that with the |
So... maybe allow |
I don't know whether |
Closing as this is just a discussion between maintainers. I didn't see any linked issues so I assume this isn't requested anymore after 11 years./ |
@cweiske pointed out the following scenario:
Given the code http://p.cweiske.de/49, he wanted to show in FooResponse's DocBlock what the correct return type would be. The best solution we could come up with was to have an @method call augment the inherited definifion.
Research should be done to see whether it is feasable and if so, implement it
The text was updated successfully, but these errors were encountered: