“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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)