“public static” or “static public”?

From PSR-2:

Visibility MUST be declared on all properties and methods; abstract
and final MUST be declared before the visibility; static MUST be
declared after the visibility. [reference]

…if you are one to care about the PHP Framework Interop Group standard and conventions.

So public static not static public according to them.

Leave a Comment