If a case statement terminates with a return, and if the return has multiple lines, then it produces an error -- "Case breaking statements must be followed by a single blank line" -- even if there is a blank line.

I've posted an example at https://gist.github.com/totten/5f14b5a941e5a9daeafe . (I tried posting here, but the preview comes out a little wonky.)

Comments

klausi’s picture

Status: Active » Postponed

  • klausi committed d6e6e05 on 8.x-2.x
    Issue #2408907: Fixed case statements which terminate with multi-line...
klausi’s picture

Status: Postponed » Fixed

The fix has landed upstream, I updated the minimum PHPCS dependency to 2.2.0.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.