Fixes @return type
Fixes the bug that occurs in PHP 5.3 when $this is used inside a closure in a method