Adjust $this reference in anonfunc for PHP5.3