At the moment, a class including a method having the same name as the class is being considered as a warning as the tool marks it as a PHP4 style constructor however, if a class includes a namespace this won't work as a constructor and it is quite sure that the method having the same name as the class is not a constructor either (it is a very often pattern when using Value Objects) causing false positives and limiting the developers by avoiding them to use the same name for the method.
At the moment, a class including a method having the same name as the class is being considered as a warning as the tool marks it as a
PHP4 style constructor
however, if a class includes a namespace this won't work as a constructor and it is quite sure that the method having the same name as the class is not a constructor either (it is a very often pattern when using Value Objects) causing false positives and limiting the developers by avoiding them to use the same name for the method.