RemovedPHP4StyleConstructors: should not apply to interfaces by jrfnl · Pull Request #921 · PHPCompatibility/PHPCompatibility

@jrfnl

Introduced in 751 / 9.1.0.

While interfaces can declare methods with the same name as the interface, as the class in which the method will be implemented will be called differently, those methods will never be seen as constructors, so shouldn't trigger this error.

Mea culpa.

Related: squizlabs/PHP_CodeSniffer 2663

wimg

wimg approved these changes Nov 4, 2019

@wimg wimg deleted the feature/php4constructors-should-not-apply-to-interfaces branch

November 4, 2019 14:32