From 851082e9f48097211a5c683d223301ca6c9361ca Mon Sep 17 00:00:00 2001 From: Dawid Nowak Date: Fri, 16 May 2014 03:48:30 +0200 Subject: [PATCH] JsonConfigSource->array_unshift_ref() set private and changed name to arrayUnshiftRef() --- src/Composer/Config/JsonConfigSource.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Config/JsonConfigSource.php b/src/Composer/Config/JsonConfigSource.php index 1c12aadcf..6a92131bd 100644 --- a/src/Composer/Config/JsonConfigSource.php +++ b/src/Composer/Config/JsonConfigSource.php @@ -120,7 +120,7 @@ class JsonConfigSource implements ConfigSourceInterface } else { // on failed clean update, call the fallback and rewrite the whole file $config = $this->file->read(); - $this->array_unshift_ref($args, $config); + $this->arrayUnshiftRef($args, $config); call_user_func_array($fallback, $args); $this->file->write($config); } @@ -137,7 +137,7 @@ class JsonConfigSource implements ConfigSourceInterface * @param mixed $value * @return array */ - function array_unshift_ref(&$array, &$value) + private function arrayUnshiftRef(&$array, &$value) { $return = array_unshift($array, ''); $array[0] =& $value;