aik099 / CodingStandard

The PHP_CodeSniffer coding standard I'm using on all of my projects
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Allow PHP4 constructors in "WrongParentCall" sniff #41

Closed aik099 closed 9 years ago

aik099 commented 9 years ago

Right now following code is reported as error:

<?php

class ClassC extends ClassA {

    function ClassC() {
        parent::ClassB();
    }

}

I think that we should totally ignore parent:: call validation, that happens from function having same name as class name.

aik099 commented 9 years ago

Doesn't matter because we already have sniff, that forbids PHP4 constructor usage.