Creates a new AnnotationException describing a constant semantical error.
@since 2.3
string $identifier:
string $context:
public static function semanticalErrorConstants($identifier, $context = null) {
return self::semanticalError(sprintf("Couldn't find constant %s%s", $identifier, $context ? ", {$context}." : "."));
}