Processes the arguments to replace aliases.
array $arguments An array of References:
array An array of References
private function processArguments(array $arguments) {
foreach ($arguments as $k => $argument) {
if (is_array($argument)) {
$arguments[$k] = $this
->processArguments($argument);
}
elseif ($argument instanceof Reference) {
$defId = $this
->getDefinitionId($id = (string) $argument);
if ($defId !== $id) {
$arguments[$k] = new Reference($defId, $argument
->getInvalidBehavior(), $argument
->isStrict());
}
}
}
return $arguments;
}