SyntaxFix
Write A Post
Hire A Developer
Questions
In a nutshell, you don't have the object as $this in the second case, as the static method is a function/method of the class not the object instance.