This repository has been archived by the owner on Apr 12, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 35
$this in Return-Annotation #376
Comments
The |
Hi @aik099,
|
@scrutinizer-ci Would you consider implementing |
I would also like to see this! |
It seems that there was no answer yet. If @scrutinizer-ci is kind of occupied with other work, is there a way where I can implement this feature and create a PR? I appreciate feedback if I may be of help to Scrutinizer. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
During My work on a PR for a PHP library I found a strange behaviour when it comes to Abstract classes using
@return $this
in a method's annotation.is extended by 2 other classes:
My\Namespace\Class
andMy\Namespace\OtherClass
. In a builder for commands, I have the following code:I get this message from Scrutinizer:
maybe because it is expected that
My\Namespace\OtherClass
should also containmethodName()
.Shouldn't
$this
in the annotation only refer to the instance wheresetHandler()
was invoked?The text was updated successfully, but these errors were encountered: