Skip to content

Commit 53302ba

Browse files
committed
Merge pull request #27 from php-pm/andig-patch-1
Fix closure for php 5.4
2 parents 55f846c + a9063b8 commit 53302ba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Bootstraps/Symfony.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,14 @@ public function getApplication()
7171
public function preHandle($app)
7272
{
7373
//resets Kernels startTime, so Symfony can correctly calculate the execution time
74-
\Closure::bind(
74+
$func = \Closure::bind(
7575
function () {
7676
$this->startTime = microtime(true);
7777
},
7878
$app,
7979
'AppKernel'
80-
)->call($app);
80+
);
81+
$func($app);
8182
}
8283

8384
/**

0 commit comments

Comments
 (0)