Changeset 392

Show
Ignore:
Timestamp:
03/16/07 21:51:32 (1 year ago)
Author:
schst
Message:

Do not remove ( and ) in annotation parameters

Files:

Legend:

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

    r223 r392  
    5656 
    5757        $annotation = new $annotationClass(); 
    58          
     58 
    5959        if (($annotation instanceof stubAnnotation) == false) { 
    6060            throw new ReflectionException('The annotation: ' . $annotationName . ' is not an instance of reflection.stubAnnotation.'); 
     
    110110 
    111111            // check for empty annotation 
    112             $params = trim(str_replace(array('*', '(', ')'), '', $params)); 
     112            $params = trim(str_replace('*', '', $params)); 
     113            if ($params{0} === '(') { 
     114                $params = substr($params, 1, strlen($params)-2); 
     115            } 
    113116            if ($params === '') { 
    114117                return array($annotationClass, array());