Show
Ignore:
Timestamp:
11/28/07 14:45:02 (1 year ago)
Author:
mikey
Message:

implemented enhancement #111 for all reflection classes constructing other reflection classes
fixed bug in stubReflectionMethod

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/main/php/net/stubbles/reflection/stubReflectionMethod.php

    r1082 r1083  
    126126        $refClass = parent::getDeclaringClass(); 
    127127        if ($refClass->getName() === $this->className) { 
    128             if (null !== $this->refClass) { 
     128            if (null === $this->refClass) { 
    129129                $this->refClass = new stubReflectionClass($this->className); 
    130130            } 
     
    147147        $stubParameters = array(); 
    148148        foreach ($parameters as $parameter) { 
    149             $stubParameters[] = new stubReflectionParameter(array($this->className, $this->methodName), $parameter->getName()); 
     149            $stubParameters[] = new stubReflectionParameter($this, $parameter->getName()); 
    150150        } 
    151151