Grr, missed removing reference to $this in a static method.