Answer the question
In order to leave comments, you need to log in
How to enable return value checking for an interface?
Hello, I have an interface in PHPDoc which has a return type defined.
In the implementation of this interface, the return type differs from that specified in the interface's PHPDoc, PhpStorm does not highlight this as a possible error.
The PHPDoc interface works correctly for autocompletion.
If you copy the PHPDoc of the interface into the implementation then a warning is displayed.
I want this warning to be displayed without copying the PHPDoc, is that possible?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question