1
0
Fork 0

JsonConfigSource->array_unshift_ref() set private and changed name to arrayUnshiftRef()

pull/2994/head
Dawid Nowak 2014-05-16 03:48:30 +02:00
parent 0c343f925a
commit 851082e9f4
1 changed files with 2 additions and 2 deletions

View File

@ -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;