Index: tests/Zend/Reflection/_files/TestZF6961Class.php =================================================================== --- tests/Zend/Reflection/_files/TestZF6961Class.php (revision 0) +++ tests/Zend/Reflection/_files/TestZF6961Class.php (revision 0) @@ -0,0 +1,11 @@ +assertEquals($returnTag->getType(), 'mixed'); } + public function testZF6961() + { + /** + * This will trhow an exception unless ZF-6961 is fixed + */ + $classReflection = new Zend_Reflection_Class('Zend_Reflection_TestZF6961Class'); + + $classReflection->getMethod('doSomething')->getDocblock()->getTags(); + } + public function testDocblockLines() { $classReflection = new Zend_Reflection_Class('Zend_Reflection_TestSampleClass5'); Index: library/Zend/Reflection/Docblock/Tag/Param.php =================================================================== --- library/Zend/Reflection/Docblock/Tag/Param.php (revision 15950) +++ library/Zend/Reflection/Docblock/Tag/Param.php (working copy) @@ -49,7 +49,7 @@ { $matches = array(); - if (!preg_match('#^@(\w+)\s(\w+)(?:\s(\$\S+))?(?:\s(.*))?#s', $tagDocblockLine, $matches)) { + if (!preg_match('#^@(\w+)\s+(\w+)(?:\s(\$\S+))?(?:\s(.*))?#s', $tagDocblockLine, $matches)) { require_once 'Zend/Reflection/Exception.php'; throw new Zend_Reflection_Exception('Provided docblock line is does not contain a valid tag'); }