`$this` wasn't available in anonymous functions until PHP 5.4 (notice [the tests failing](https://travis-ci.org/symfony/symfony/jobs/23857670#L616)).