- /**
- * Resolves instances arguments
- *
- * @param array $argument
- * @return array
- */
- private function resolveArguments(&$argument)
- {
- if (!is_array($argument)) {
- return;
- }
-
- foreach ($argument as $key => &$value) {
- if (in_array($key, ['_i_', '_ins_'], true)) {
- $value = ltrim($value, '\\');
- continue;
- }
-
- if (is_array($value)) {
- $this->resolveArguments($value);
- }
- }
- return;
- }