Skip to content

Commit a9063b8

Browse files
committed
Fix closure for php 5.4
Fix #26
1 parent 55f846c commit a9063b8

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)