Fix php by making methods static