added type hint
hopefully fixed #316 - $this in Closure is only allowed in PHP 5.4
Merge pull request #362 from kevinpapst/fixes-316

Fixes 316