Ticket #202 (closed defect: fixed)
Annotation is ignored if other doc comment lines contain parentheses including quotation marks
| Reported by: | rist | Owned by: | mikey |
|---|---|---|---|
| Priority: | critical | Milestone: | 0.15.0 |
| Component: | ReflectionApi | Version: | SVN-trunk |
| Keywords: | Cc: |
Description (last modified by mikey) (diff)
When creating an annotation, the annotation won't be recognized if the doc comment includes additional parentheses in another line containing doc comments like @return and if within these parentheses a string is contained like in the example, which would evaluate to false ... :
$class = new stubReflectionClass('a::b::c::MyClass');
var_dump($class->getMethod('getDsn')->hasAnnotation('DBColumn'));
... given the following:
/**
* Gets the Data Source Name (DSN).
*
* @DBColumn(name='dsn', type='VARCHAR', size=100)
* @return string (e.g. 'mysql://user:password@host/dbName')
*/
public function getDsn() {}
Change History
Note: See
TracTickets for help on using
tickets.
