1 | <?php |
||
2 | |||
3 | declare(strict_types=1); |
||
4 | |||
5 | namespace JMS\Serializer\Metadata\Driver; |
||
6 | |||
7 | use Doctrine\Common\Annotations\Reader; |
||
8 | use JMS\Serializer\Expression\CompilableExpressionEvaluatorInterface; |
||
9 | use JMS\Serializer\Naming\PropertyNamingStrategyInterface; |
||
10 | use JMS\Serializer\Type\ParserInterface; |
||
11 | |||
12 | /** |
||
13 | * @deprecated |
||
14 | */ |
||
15 | class AnnotationDriver extends AnnotationOrAttributeDriver |
||
16 | { |
||
17 | /** |
||
18 | * @var Reader |
||
19 | */ |
||
20 | private $reader; |
||
21 | |||
22 | public function __construct(Reader $reader, PropertyNamingStrategyInterface $namingStrategy, ?ParserInterface $typeParser = null, ?CompilableExpressionEvaluatorInterface $expressionEvaluator = null) |
||
23 | { |
||
24 | parent::__construct($namingStrategy, $typeParser, $expressionEvaluator, $reader); |
||
25 | |||
26 | $this->reader = $reader; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * @return list<object> |
||
0 ignored issues
–
show
|
|||
31 | */ |
||
32 | protected function getClassAnnotations(\ReflectionClass $class): array |
||
33 | { |
||
34 | return $this->reader->getClassAnnotations($class); |
||
0 ignored issues
–
show
|
|||
35 | } |
||
36 | |||
37 | /** |
||
38 | * @return list<object> |
||
39 | */ |
||
40 | protected function getMethodAnnotations(\ReflectionMethod $method): array |
||
41 | { |
||
42 | return $this->reader->getMethodAnnotations($method); |
||
0 ignored issues
–
show
|
|||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @return list<object> |
||
47 | */ |
||
48 | protected function getPropertyAnnotations(\ReflectionProperty $property): array |
||
49 | { |
||
50 | return $this->reader->getPropertyAnnotations($property); |
||
0 ignored issues
–
show
|
|||
51 | } |
||
52 | } |
||
53 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths