Changeset 392
- Timestamp:
- 03/16/07 21:51:32 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/main/php/net/stubbles/reflection/stubAnnotationFactory.php
r223 r392 56 56 57 57 $annotation = new $annotationClass(); 58 58 59 59 if (($annotation instanceof stubAnnotation) == false) { 60 60 throw new ReflectionException('The annotation: ' . $annotationName . ' is not an instance of reflection.stubAnnotation.'); … … 110 110 111 111 // 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 } 113 116 if ($params === '') { 114 117 return array($annotationClass, array());
