Of course there are ways to let Bar.test() return ‘Bar’ here.

I wanted to point out, that PHP resolves $this as the caller(!) when a method is called statically.