You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
static variables can contain constant scalar expressions on declaration since PHP 5.6.
While the VariableAnalysisSniff::checkForStaticDeclaration() takes some of that into account, it's incomplete and doesn't account for all possible syntaxes allowed.
I haven't been able to come up with unit tests which would fail properly as the variable are now just treated as ordinary assignments, not static variable declarations, but I know there is an issue with this.