From f4c1d6975e17391635d897ffd5af492417d3f0fe Mon Sep 17 00:00:00 2001 From: Vincent Date: Fri, 15 Jan 2021 10:48:45 +0100 Subject: [PATCH] Exclude missing annotations from coverage --- src/Config/Parser/AnnotationParser.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Config/Parser/AnnotationParser.php b/src/Config/Parser/AnnotationParser.php index 5ab3d9102..f988d5411 100644 --- a/src/Config/Parser/AnnotationParser.php +++ b/src/Config/Parser/AnnotationParser.php @@ -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');