Closed (fixed)
Project:
Coder
Version:
8.x-2.x-dev
Component:
Coder Sniffer
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2016 at 09:48 UTC
Updated:
1 Oct 2016 at 16:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chriscohen commentedComment #3
chriscohen commentedSorry, noticed a bug in that the previous patch REQUIRED you to put the primitive type hint in place. This patch makes that optional but permissible.
Comment #4
klausiMakes sense! Can you file a pull request against https://github.com/klausi/coder so that we see tests and coding standards are passing?
You can also look at upstream https://github.com/squizlabs/PHP_CodeSniffer/blob/master/CodeSniffer/Sta... because they also take care of 'integer' for example. I don't like the PHP version check, so we can ignore that.
Can you also add an example test function to good.php?
Comment #5
chriscohen commentedI really am truly sorry but my workload does not permit me to continue work on this issue: I felt it was important to report it and I filed what code I have, so hopefully this will be enough to get started on a fix here?
Comment #7
klausiChanged the patch a bit and added a test. Thanks for reporting!