PhpStorm 2017.3.3 EAP
Build #PS-173.4301.15, built on January 10, 2018
Licensed to Intacct / Dan Wilks
You have a perpetual fallback license for this version
Subscription is active until April 6, 2019
JRE: 1.8.0_152-release-1024-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.2
Correctly reports the undefined variable in the else/if clause.
Suppress for statement.
Now you get "Missing or empty conditionals group statement: Wrap constructs' body within a block" and "Statement has empty body"
It's possible to suppress those and now the else/if looks like this:
PhpStorm 2017.3.3 EAP Build #PS-173.4301.15, built on January 10, 2018 Licensed to Intacct / Dan Wilks You have a perpetual fallback license for this version Subscription is active until April 6, 2019 JRE: 1.8.0_152-release-1024-b11 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.13.2
Php Inspections (EA Extended) 2.3.15.1