fix php warning static method called statically