function AnnotationException::semanticalErrorConstants
Creates a new AnnotationException describing a constant semantical error.
Return value
2 calls to AnnotationException::semanticalErrorConstants()
- DocParser::Constant in vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ DocParser.php - Constant ::= integer | string | float | boolean
- DocParser::Constant in core/
lib/ Drupal/ Component/ Annotation/ Doctrine/ DocParser.php - Constant ::= integer | string | float | boolean
File
-
vendor/
doctrine/ annotations/ lib/ Doctrine/ Common/ Annotations/ AnnotationException.php, line 65
Class
- AnnotationException
- Description of AnnotationException
Namespace
Doctrine\Common\AnnotationsCode
public static function semanticalErrorConstants(string $identifier, ?string $context = null) {
return self::semanticalError(sprintf("Couldn't find constant %s%s.", $identifier, $context ? ', ' . $context : ''));
}