SyntaxFix
Write A Post
Hire A Developer
Questions
You could create an instance of the class you want to call the method on, e.g.
new Foo().nonStaticMethod();