merged branch lyrixx/cleanup (PR #433)
Commits ------- f618014e Remove use of the `use` in closure Discussion ---------- Remove use of the `use` in closure See https://github.com/fabpot/Pimple/blob/master/lib/Pimple.php#L81 : Pimple give to the closure (as first argument) the container/application, so we do not need to use `use($app)`. Note : * I did not test on php 5.4. But tests are OK on 5.3 * I think it is cleaner to use php default arguments than the use of `use` * I fixed the CS : `function()` -> `function ()` (added a space before `(`)
Showing
Please register or sign in to comment