1
0
Fork 0

fix implementation for php 5.3

refs issue #3657
pull/3685/head
Xavier Fornes 2015-01-28 11:50:54 +01:00
parent 8ba8580a28
commit 3f59c007f7
1 changed files with 3 additions and 2 deletions

View File

@ -97,11 +97,12 @@ class ConsoleIO extends BaseIO
{
if (null !== $this->startTime) {
$messages = (array) $messages;
$messages = array_map(function (&$message) {
$startTime = $this->startTime;
$messages = array_map(function (&$message) use ($startTime) {
return sprintf(
'[%.1fMB/%.2fs] %s',
memory_get_usage() / 1024 / 1024,
microtime(true) - $this->startTime,
microtime(true) - $startTime,
$message
);
}, $messages);