doctrine/doctrine2 — pull request #1145 by BenMorel (2014-09-23 13:46:43+00:00)
Title: Minor performance tweaks

Function calls are expensive in PHP, this PR just removes unnecessary calls to `call_user_func()` when a direct `$variable()` call is possible.