added docblock for anonymous function, and added an allowed_warnings count