diff --git a/src/Definition/CompilerDefinition.php b/src/Definition/CompilerDefinition.php index 04881b6a..24db5e56 100644 --- a/src/Definition/CompilerDefinition.php +++ b/src/Definition/CompilerDefinition.php @@ -200,8 +200,6 @@ protected function processParams(&$def, Reflection\ClassReflection $rClass, Refl /** @var $p \ReflectionParameter */ $actualParamName = $p->getName(); - $paramName = $this->createDistinctParameterName($actualParamName, $rClass->getName()); - $fqName = $rClass->getName() . '::' . $rMethod->getName() . ':' . $p->getPosition(); $def['parameters'][$methodName][$fqName] = array(); @@ -214,30 +212,6 @@ protected function processParams(&$def, Reflection\ClassReflection $rClass, Refl } - protected function createDistinctParameterName($paramName, $class) - { - $currentParams = array(); - if ($this->classes[$class]['parameters'] === array()) { - return $paramName; - } - foreach ($this->classes as $cdata) { - foreach ($cdata['parameters'] as $mdata) { - $currentParams = array_merge($currentParams, array_keys($mdata)); - } - } - - if (!in_array($paramName, $currentParams)) { - return $paramName; - } - - $alt = 2; - while (in_array($paramName . (string) $alt, $currentParams)) { - $alt++; - } - - return $paramName . (string) $alt; - } - // public function processClass($className) // { // $strategy = $this->introspectionStrategy;