Answer the question
In order to leave comments, you need to log in
How to remove the error Some of public methods are not part of the class contracts. Perhaps a contract is incomplete?
There is an interface with two methods and there is a class that implements this interface.
But in the class, in addition to the methods that are described in the interface (read as mandatory methods), there are other methods. PHPStorm swears with an error: Some of public methods (methods that are not in the interface are listed in brackets) are not part of the class contracts. Perhaps a contract is incomplete?
Please help me figure out the best way to resolve this error.
Answer the question
In order to leave comments, you need to log in
This is a guess, not a statement, but such an error has its roots in the @contracts annotation in the intellij idea ( link ). Perhaps there is an annotation in the interface that causes this - this has never happened with ordinary interfaces
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question