Skip to content

Commit

Permalink
Exclude missing annotations from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincz committed Jan 15, 2021
1 parent 805bd21 commit f4c1d69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Config/Parser/AnnotationParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ protected static function getAnnotationReader(): AnnotationReader
if (null === self::$annotationReader) {
if (!class_exists(AnnotationReader::class) ||
!class_exists(AnnotationRegistry::class)) {
// @codeCoverageIgnoreStart
throw new RuntimeException('In order to use graphql annotation, you need to require doctrine annotations');
// @codeCoverageIgnoreEnd
}

AnnotationRegistry::registerLoader('class_exists');
Expand Down

0 comments on commit f4c1d69

Please sign in to comment.