Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 1, 2018

While this will be solved better in the future by a dedicated sniff to check function declarations (see #1101) , in the mean time, return type declarations should not be removed by the fixer in this sniff.

And as the placement of the opening brace for function declarations is also checked for by the Generic.Functions.OpeningFunctionBraceKernighanRitchie sniff, let's ignore this error for function declarations in this sniff and leave the fixing up to the upstream sniff.

Fixes #1202

…e declarations While this will be solved better in the future by a dedicated sniff to check function declarations, in the mean time, return type declarations should not be removed by the fixer in this sniff. And as the placement of the opening brace for function declarations is also checked for by the `Generic.Functions.OpeningFunctionBraceKernighanRitchie` sniff, let's ignore this error for function declarations in this sniff and leave the fixing up to the upstream sniff. Fixes 1202
@JDGrimes JDGrimes merged commit 62a24fd into develop Mar 1, 2018
@JDGrimes JDGrimes deleted the feature/1202-fix-fixer-removing-return-type branch March 1, 2018 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment