From a9063b89b3b309016403925d710d9aad9c4f4cdd Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 21 Mar 2016 17:33:27 +0100 Subject: [PATCH] Fix closure for php 5.4 Fix https://github.com/php-pm/php-pm-httpkernel/issues/26 --- Bootstraps/Symfony.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Bootstraps/Symfony.php b/Bootstraps/Symfony.php index 6d53392..3514d64 100644 --- a/Bootstraps/Symfony.php +++ b/Bootstraps/Symfony.php @@ -71,13 +71,14 @@ public function getApplication() public function preHandle($app) { //resets Kernels startTime, so Symfony can correctly calculate the execution time - \Closure::bind( + $func = \Closure::bind( function () { $this->startTime = microtime(true); }, $app, 'AppKernel' - )->call($app); + ); + $func($app); } /**