Fix slim 2.0 Backward incompatible syntax change
Merge pull request #1174 from WaYdotNET/fix-slim2

Fix slim 2.0 Backward incompatible syntax change
Merge branch 'master' into all-custom-error

* master:
  Fix slim 2.0 Backward incompatible syntax change