New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive on php4 constructors #28
Comments
Hello. Which version of Elastica you tried? |
The last one, 6.0.2.
|
Oh, I see. Really, phpcf is syntax-level checker with few improvements. It does not check other methods or class namespace right now. May be I'll find time to rewrite and make it more intelligent, but this requires a lot of changes in internal structure. |
I'm having the same issue, so if you don't mind I'd fix this. |
Try phpcf dev-master version now |
Hi,
I tried running PhpCodeFixer on the Elastica library (https://github.com/ruflin/Elastica).
There are a lot of false positive related to usage of php4 constructors.
This library already uses php5 constructors but, in addition, some classes also have a method having the same name.
I think the detection of php4 could be improved by using the same rules written in the RFC that deprecated php4 constructors:
Source: https://wiki.php.net/rfc/remove_php4_constructors
The text was updated successfully, but these errors were encountered: