From a4ffda699f2bcb57d0a0b2aa7bc9fd1d68888412 Mon Sep 17 00:00:00 2001 From: Xavier Fornes Date: Wed, 28 Jan 2015 13:38:43 +0100 Subject: [PATCH] remove by reference on message parameter refs issue #3657 --- src/Composer/IO/ConsoleIO.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/IO/ConsoleIO.php b/src/Composer/IO/ConsoleIO.php index 11623a143..28a2247cd 100644 --- a/src/Composer/IO/ConsoleIO.php +++ b/src/Composer/IO/ConsoleIO.php @@ -98,7 +98,7 @@ class ConsoleIO extends BaseIO if (null !== $this->startTime) { $messages = (array) $messages; $startTime = $this->startTime; - $messages = array_map(function (&$message) use ($startTime) { + $messages = array_map(function ($message) use ($startTime) { return sprintf( '[%.1fMB/%.2fs] %s', memory_get_usage() / 1024 / 1024,