Using $this inside a static function fails Using $this inside a static function fails php php