function JsonConfigSource::arrayUnshiftRef
Prepend a reference to an element to the beginning of an array.
Parameters
mixed[] $array:
mixed $value:
1 call to JsonConfigSource::arrayUnshiftRef()
- JsonConfigSource::manipulateJson in vendor/
composer/ composer/ src/ Composer/ Config/ JsonConfigSource.php
File
-
vendor/
composer/ composer/ src/ Composer/ Config/ JsonConfigSource.php, line 292
Class
- JsonConfigSource
- JSON Configuration Source
Namespace
Composer\ConfigCode
private function arrayUnshiftRef(array &$array, &$value) : int {
$return = array_unshift($array, '');
$array[0] =& $value;
return $return;
}