Closed shochdoerfer closed 5 years ago
Please re-open, the pull request does not look right to me. ActionInterface
allowed only execute()
method. What if we use ActionInterface
different than Framework\App\ActionInterface
such as:
@nntoan feel free to create a new issue regarding this particular case. Now MEQP rules do not allow dynamic code check, so all we can rely is a class (interface) name string. This is the reason why this sniff is marked with severity 8 , not 10. In theory it can return false-positive finding.
When running EQP against our Force Login module the warning "The use of public non-interface method in ACTION is discouraged" shows up for this piece of code. The method in question is part of an interface implemented by the class our class is extending from thus the warning does not seem correct to me.
The warning can be avoided by letting our class implement the interface in question. This means the sniff does not check interfaces implemented by all parent classes but just the interfaces by the class in question.