Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WPCS-Extra: enable the
Generic.CodeAnalysis.UnusedFunctionParameter
…
… sniff The reason why the sniff was disabled up to now was that WP uses callbacks a lot and the hooked in functions may not use all parameters passed to them. This concern was previously raised in #382 (comment), also see 522b35f To this end, I've send in a [PR upstream](squizlabs/PHP_CodeSniffer#1318) to address these concerns, which has subsequently been merged. The adjusted version of the sniff was released in PHPCS 3.4.0, which means the sniff can now be added. Note: the sniff has since then also been adjusted to handle arrow functions correctly, as well as constructor property promotion. Fixes 1510
- Loading branch information