When refactoring, sometimes you wish to change your methods to be static, while this isn't the best practice in the world, it's possible you'll be in a position where pragmatism will take priority over great design. If you are 100% percent certain that you won't need to mock something, then use the new Make Static refactoring tool in PhpStorm 11 to ruin your future `self::`'s day.
(more…)
“Make Static” Refactoring Tool in PhpStorm 11
by