1
0
Fork 0

remove by reference on message parameter

refs issue #3657
pull/3685/head
Xavier Fornes 2015-01-28 13:38:43 +01:00
parent 3f59c007f7
commit a4ffda699f
1 changed files with 1 additions and 1 deletions

View File

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