Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0-BETA4
-
Fix Version/s: None
-
Component/s: Annotations
-
Labels:None
-
Environment:PHP 5.3.2, Linux Ubuntu 10.04
Description
The EBNF allows passing multiple comma-separated annotations to an annotation:
Annotation ::= "@" AnnotationName ["(" [Values] ")"] Values ::= Array | Value {"," Value}* Value ::= PlainValue | FieldAssignment PlainValue ::= integer | string | float | boolean | Array | Annotation
Therefore the following should be possible.
/** @Name(@Foo, @Bar) */
This results in an error though.
IMO,
/** @Name(@Foo, @Bar) */
should be equivalent to
/** @Name({@Foo, @Bar}) */
just like
/** @Name(foo = "foo", bar = "bar") */
is equivalent to
/** @Name({foo = "foo", bar = "bar"}) */
Fixed in http://github.com/bschussek/doctrine-common/tree/DCOM-10