Annotation @%s is not allowed to be declared on %s. You may only use this annotation on these code elements: %s.
EXCEPTION
,
$originalName,
$this->context,
self::
$annotationMetadata[$name]['targets_literal'
] ) );
} $arguments =
$this->
MethodCall();
$values =
$this->
resolvePositionalValues($arguments,
$name);
if (isset(self::
$annotationMetadata[$name]['enum'
])) { // checks all declared attributes
foreach (self::
$annotationMetadata[$name]['enum'
] as $property =>
$enum) { // checks if the attribute is a valid enumerator
if (isset($values[$property]) && !
in_array($values[$property],
$enum['value'
])) { throw AnnotationException::
enumeratorError( $property,
$name,
$this->context,
$enum['literal'
],