Closed thomasnordquist closed 6 years ago
I don't think we should have two different rulesets. Can't we subclass that array syntax sniff and enable/disable it conditionally? That way we could add the php compatibility to the plugin's composer.json and read it upon loading the sniff.
Since we use different syntax for different php versions it would be nice if we could configure our phpcs.xml
Problem:
I always mix it up, or at least need to look it up
New phpcs.xml
Result: