Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Empty statement sniff ? #975
function_call( $something );;
function_call( $something ); ;
function_call( $something );
Should we add a sniff for this typo which won't cause a parse error ?
Came across this at least once so far when visually reviewing the core auto-fixes though can't find the relevant file ATM.
@JDGrimes Thanks for finding that upstream issue! I did recall seeing something about this before but couldn't recall where.
Considering there is an upstream feature request for this, I suggest creating a new sniff which in due time can be pulled upstream (would not be accepted in PHPCS 2.x anymore anyhow).
Regarding #465, while loosely related, it is a distinctly separate issue as the logic needed to detect this would be completely different.