We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
35 | protected static function getAnnotationReader(): AnnotationReader |
||
36 | { |
||
37 | if (null === self::$annotationReader) { |
||
38 | if (!class_exists(AnnotationReader::class) || |
||
39 | !class_exists(AnnotationRegistry::class)) { |
||
40 | throw new RuntimeException('In order to use graphql annotation, you need to require doctrine annotations'); |
||
41 | } |
||
42 | |||
43 | AnnotationRegistry::registerLoader('class_exists'); |
||
|
|||
44 | self::$annotationReader = new AnnotationReader(); |
||
45 | } |
||
46 | |||
47 | return self::$annotationReader; |
||
48 | } |
||
50 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.