Anonymous function rewritten as static one to maintain compatibility with PHP 5.2
Merge pull request #293 from mhujer/fix-anonymous-f

Fixes #292 - Anonymous function rewritten as static one to maintain compatibility with PHP 5.2